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:
parent
67fba987bd
commit
303bf53eec
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue