do not override lldp neighbors nxos_facts (#48087)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 27075ab7dd)
pull/49749/head
Trishna Guha 6 years ago committed by Matt Clay
parent 67fba987bd
commit 303bf53eec

@ -377,6 +377,7 @@ class Interfaces(FactsBase):
def populate(self):
self.facts['all_ipv4_addresses'] = list()
self.facts['all_ipv6_addresses'] = list()
self.facts['neighbors'] = {}
data = None
data = self.run('show interface', output='json')
@ -412,6 +413,7 @@ class Interfaces(FactsBase):
self.facts['neighbors'].pop(None, None) # Remove null key
def populate_structured_interfaces(self, data):
interfaces = dict()
for item in data['TABLE_interface']['ROW_interface']:

Loading…
Cancel
Save