2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +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 0fbe39690e
commit e24852c480

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):