To fix ios_l3_interfaces resource module round trip failure (#61642)
* fix 61396 Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * add ios_l3_interfaces rtt tests * remove unnecessary config Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * change test description Signed-off-by: Sumit Jaiswal <sjaiswal@redhat.com> * remove rtt and move to new PR
This commit is contained in:
parent
037401b6e0
commit
f9fd1f3626
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ def validate_ipv6(value, module):
|
|||
def validate_n_expand_ipv4(module, want):
|
||||
# Check if input IPV4 is valid IP and expand IPV4 with its subnet mask
|
||||
ip_addr_want = want.get('address')
|
||||
if len(ip_addr_want.split(' ')) > 1:
|
||||
return ip_addr_want
|
||||
validate_ipv4(ip_addr_want, module)
|
||||
ip = ip_addr_want.split('/')
|
||||
if len(ip) == 2:
|
||||
|
|
Loading…
Reference in a new issue