mirror of
https://github.com/xcat2/confluent.git
synced 2025-08-28 13:58:16 +00:00
Wire up peerid
The entries did not have peerid in them, rectify the oversight.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user