mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes#21557-Handled dellos9_facts crash with IPV6 configs (#21652)
This commit is contained in:
parent
1cfaa5caab
commit
cd662efd2b
1 changed files with 8 additions and 7 deletions
|
@ -309,6 +309,7 @@ class Interfaces(FactsBase):
|
|||
|
||||
def populate_ipv6_interfaces(self, data):
|
||||
for key, value in data.items():
|
||||
if key in self.facts['interfaces']:
|
||||
self.facts['interfaces'][key]['ipv6'] = list()
|
||||
addresses = re.findall(r'\s+(.+), subnet', value, re.M)
|
||||
subnets = re.findall(r', subnet is (\S+)', value, re.M)
|
||||
|
|
Loading…
Add table
Reference in a new issue