2
0
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:
Jarrod Johnson 2017-10-02 16:56:17 -04:00
parent b5e4d302f9
commit e95b5da8b7

View File

@ -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