mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
Wire up peerid
The entries did not have peerid in them, rectify the oversight.
This commit is contained in:
parent
b5e4d302f9
commit
e95b5da8b7
@ -161,9 +161,10 @@ def _extract_neighbor_data_b(args):
|
||||
for entry in lldpdata:
|
||||
entry = lldpdata[entry]
|
||||
entry['switch'] = switch
|
||||
peerid = '{0}-{1}'.format(
|
||||
peerid = '{0}--{1}'.format(
|
||||
entry.get('peerchassisid', '').replace(':', '-'),
|
||||
entry.get('peerport', '').replace(':', '-'))
|
||||
entry['peerid'] = peerid
|
||||
_neighbypeerid[peerid] = entry
|
||||
_neighdata[switch] = lldpdata
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user