mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-21 20:30:21 -07:00
routeros_facts: fix crash when ipv6 is disabled (#39)
* routeros_facts: fix crash when ipv6 is disabled * chore: rename fixture file
This commit is contained in:
parent
5c372e0a7c
commit
4fba692c1b
3 changed files with 13 additions and 0 deletions
|
@ -289,6 +289,8 @@ class Interfaces(FactsBase):
|
|||
|
||||
def populate_ipv6_interfaces(self, data):
|
||||
for key, value in iteritems(data):
|
||||
if key is None:
|
||||
break
|
||||
if 'ipv6' not in self.facts['interfaces'][key]:
|
||||
self.facts['interfaces'][key]['ipv6'] = list()
|
||||
addr, subnet = value['address'].split("/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue