Skip to content

Commit

Permalink
To fix ios_l3_interfaces resource module round trip failure (ansible#…
Browse files Browse the repository at this point in the history
…61642)

* fix 61396

Signed-off-by: Sumit Jaiswal <[email protected]>

* add ios_l3_interfaces rtt tests

* remove unnecessary config

Signed-off-by: Sumit Jaiswal <[email protected]>

* change test description

Signed-off-by: Sumit Jaiswal <[email protected]>

* remove rtt and move to new PR
  • Loading branch information
justjais authored Sep 17, 2019
1 parent 037401b commit f9fd1f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/module_utils/network/ios/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f9fd1f3

Please sign in to comment.