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:
parent
785d7d40fa
commit
5a935d99fc
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user