2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Abort traversing gap in SMM chain

Once there is a gap, the next hop in the chain will be ambiguous.
Discovery must always precede from the front-most chassis.
This commit is contained in:
Jarrod Johnson 2018-04-12 15:45:07 -04:00
parent 39ee0da879
commit 008f8e22ae

View File

@ -695,6 +695,9 @@ def get_chained_smm_name(nodename, cfg, handler, nl=None, checkswitch=True):
smmaddr = cd[nodename]['hardwaremanagement.manager']['value']
pkey = cd[nodename].get('pubkeys.tls_hardwaremanager', {}).get(
'value', None)
if not pkey:
# We cannot continue through a break in the chain
return None, False
if pkey:
cv = util.TLSCertVerifier(
cfg, nodename, 'pubkeys.tls_hardwaremanager').verify_cert