|
|
@ -348,14 +348,20 @@ class Interfaces(FactsBase):
|
|
|
|
return objects
|
|
|
|
return objects
|
|
|
|
|
|
|
|
|
|
|
|
def parse_ipv6_interfaces(self, data):
|
|
|
|
def parse_ipv6_interfaces(self, data):
|
|
|
|
data = data['TABLE_intf']
|
|
|
|
try:
|
|
|
|
if isinstance(data, dict):
|
|
|
|
data = data['TABLE_intf']
|
|
|
|
data = [data]
|
|
|
|
if data:
|
|
|
|
for item in data:
|
|
|
|
if isinstance(data, dict):
|
|
|
|
name = item['ROW_intf']['intf-name']
|
|
|
|
data = [data]
|
|
|
|
intf = self.facts['interfaces'][name]
|
|
|
|
for item in data:
|
|
|
|
intf['ipv6'] = self.transform_dict(item, self.INTERFACE_IPV6_MAP)
|
|
|
|
name = item['ROW_intf']['intf-name']
|
|
|
|
self.facts['all_ipv6_addresses'].append(item['ROW_intf']['addr'])
|
|
|
|
intf = self.facts['interfaces'][name]
|
|
|
|
|
|
|
|
intf['ipv6'] = self.transform_dict(item, self.INTERFACE_IPV6_MAP)
|
|
|
|
|
|
|
|
self.facts['all_ipv6_addresses'].append(item['ROW_intf']['addr'])
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
except TypeError:
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Legacy(FactsBase):
|
|
|
|
class Legacy(FactsBase):
|
|
|
|