From e95b5da8b782455e445fd21d262e912419d59e05 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 2 Oct 2017 16:56:17 -0400 Subject: [PATCH] Wire up peerid The entries did not have peerid in them, rectify the oversight. --- confluent_server/confluent/networking/lldp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/confluent_server/confluent/networking/lldp.py b/confluent_server/confluent/networking/lldp.py index 6ff5ce7b..ac41a3c8 100644 --- a/confluent_server/confluent/networking/lldp.py +++ b/confluent_server/confluent/networking/lldp.py @@ -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