-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Using the latest git checkout and in venv
i try to register a new X11 chassis (Node in QuadServer Chassis):
- it is recognized as Blade ?!?
- Import stops at PowerSupply creation (there is no in the Node, it is in the quadchassis)
Traceback (most recent call last):
File "/root/nba/bin/netbox_agent", line 8, in <module>
sys.exit(main())
^^^^^^
File "/root/nba/lib/python3.11/site-packages/netbox_agent/cli.py", line 63, in main
return run(config)
^^^^^^^^^^^
File "/root/nba/lib/python3.11/site-packages/netbox_agent/cli.py", line 56, in run
server.netbox_create_or_update(config)
File "/root/nba/lib/python3.11/site-packages/netbox_agent/server.py", line 435, in netbox_create_or_update
self.power = PowerSupply(server=self)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/nba/lib/python3.11/site-packages/netbox_agent/power.py", line 14, in __init__
self.device_id = self.netbox_server.parent_device.id if self.netbox_server else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'id'
- Is there a way to tell the register it has no power supply ?
- what steps need to be added to netbox before ? or let just register the device with
/etc/qualification:
datacenter: DC1
racklocation: 123
Please advise.
dimm0
Metadata
Metadata
Assignees
Labels
No labels