parent
303bf53eec
commit
413df66ac5
1 changed files with 5 additions and 2 deletions
|
@ -400,9 +400,12 @@ class Interfaces(FactsBase):
|
|||
interfaces = self.parse_interfaces(data)
|
||||
self.populate_ipv6_interfaces(interfaces)
|
||||
|
||||
data = self.run('show lldp neighbors')
|
||||
data = self.run('show lldp neighbors', output='json')
|
||||
if data:
|
||||
self.facts['neighbors'].update(self.populate_neighbors(data))
|
||||
if isinstance(data, dict):
|
||||
self.facts['neighbors'].update(self.populate_structured_neighbors_lldp(data))
|
||||
else:
|
||||
self.facts['neighbors'].update(self.populate_neighbors(data))
|
||||
|
||||
data = self.run('show cdp neighbors detail', output='json')
|
||||
if data:
|
||||
|
|
Loading…
Reference in a new issue