2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-27 03:19:56 +00:00

Fix chained discovery of DWC SMMv2

SMMv2 for DWC has more ports. Make the code
not care about which port is which for checking
for matching smm fingerprints.
This commit is contained in:
Jarrod Johnson 2021-02-27 20:53:33 -05:00
parent 7eb06f2722
commit b3857f8d33

View File

@ -814,10 +814,10 @@ def get_smm_neighbor_fingerprints(smmaddr, cv):
neighs = wc.grab_json_response('/scripts/neighdata.json')
if not neighs:
return
for idx in (4, 5):
if 'sha256' not in neighs[idx]:
for neigh in neighs:
if 'sha256' not in neigh:
continue
yield 'sha256$' + b64tohex(neighs[idx]['sha256'])
yield 'sha256$' + b64tohex(neigh['sha256'])
def get_nodename(cfg, handler, info):