2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-12 02:52:30 +00:00

Adapt to register XCC3

Handle XCC3 differences in the register scenario.
This commit is contained in:
Jarrod Johnson
2025-03-27 10:00:44 -04:00
parent 72c030995f
commit ce5c1c925e

View File

@@ -533,9 +533,14 @@ def register_remote_addrs(addresses, configmanager):
sd = ssdp.check_fish(('/DeviceDescription.json', nd))
if not sd:
return addr, False
sd['hwaddr'] = sd['attributes']['mac-address']
nh = xcc.NodeHandler(sd, configmanager)
if 'macaddress' in sd['attributes']:
sd['hwaddr'] = sd['attributes']['macaddress']
else:
sd['hwaddr'] = sd['attributes']['mac-address']
if 'lenovo-xcc3' in sd['services']:
nh = xcc3.NodeHandler(sd, configmanager)
elif 'lenovo-xcc' in sd['services']:
nh = xcc.NodeHandler(sd, configmanager)
nh.scan()
detected(nh.info)
except Exception: