do not override lldp neighbors nxos_facts (#48087)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 27075ab7dd)
This commit is contained in:
Trishna Guha 2018-11-08 10:45:25 +05:30 committed by Matt Clay
parent 67fba987bd
commit 303bf53eec

View file

@ -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']: