mirror of
https://github.com/xcat2/confluent.git
synced 2026-10-20 06:35:33 +00:00
Enable aggressive rescan to specifically note Lenovo XCC
This commit is contained in:
@@ -1790,6 +1790,10 @@ async def generic_eval(address, hwaddr=None):
|
||||
if 443 in ports:
|
||||
resdata = await ssdp.check_fish(('/redfish/v1/', peerdata))
|
||||
if resdata:
|
||||
if resdata.get('vendor') == 'Lenovo':
|
||||
maybedata = await ssdp.check_fish(('/DeviceDescription.json', peerdata))
|
||||
if maybedata:
|
||||
return safe_detected(maybedata)
|
||||
return safe_detected(resdata)
|
||||
peerdata['services'] = ['generic-https']
|
||||
if 22 in ports:
|
||||
|
||||
@@ -587,6 +587,7 @@ async def check_fish(urldata, port=443, verifycallback=None):
|
||||
if 'UUID' in peerinfo:
|
||||
vendor = peerinfo.get('Vendor', '')
|
||||
# NOTE: Specific path for EUREKA MEGWARE Chassis
|
||||
data['vendor'] = vendor
|
||||
if vendor == 'Megware':
|
||||
data['services'] = ['megware-chassis']
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user