2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-26 11:30:23 +00:00

Have SMM devices register cleanly

In remote discovery registration, the
SMM path was not fully implemented
This commit is contained in:
Jarrod Johnson 2022-09-13 13:29:42 -04:00
parent 785d7d40fa
commit 5a935d99fc

View File

@ -186,7 +186,14 @@ def handle_request(env, start_response):
rb['addresses'] = [(newhost, newport)]
rb['forwarder_url'] = targurl
rb['forwarder_server'] = nodename
ssdp.check_fish(('/DeviceDescription.json', rb), newport, verify_cert)
if rb['type'] == 'lenovo-xcc':
ssdp.check_fish(('/DeviceDescription.json', rb), newport, verify_cert)
elif rb['type'] == 'lenovo-smm2':
rb['services'] = ['service:lenovo-smm2']
else:
start_response('400 Unsupported Device', [])
yield 'Unsupported device for remote discovery registration'
return
disco.detected(rb)
start_response('200 OK', [])
yield 'Registered'