mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
a5ee865634
commit
f9f0472ba5
1 changed files with 5 additions and 0 deletions
|
@ -137,6 +137,11 @@ def map_config_to_obj(module):
|
||||||
for r in match.group(1).splitlines():
|
for r in match.group(1).splitlines():
|
||||||
splitted_line = r.split()
|
splitted_line = r.split()
|
||||||
|
|
||||||
|
code = splitted_line[0]
|
||||||
|
|
||||||
|
if code != 'M':
|
||||||
|
continue
|
||||||
|
|
||||||
cidr = ip_network(to_text(splitted_line[1]))
|
cidr = ip_network(to_text(splitted_line[1]))
|
||||||
prefix = str(cidr.network_address)
|
prefix = str(cidr.network_address)
|
||||||
mask = str(cidr.netmask)
|
mask = str(cidr.netmask)
|
||||||
|
|
Loading…
Reference in a new issue