-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Describe the bug
Agent fails when adding a device with a bond interface.
I get the following traceback:
DEBUG:urllib3.connectionpool:[https://<netbox_instance>:443](https://<netbox_instance>/) "PATCH /api/dcim/interfaces/852/ HTTP/1.1" 400 112
Traceback (most recent call last):
File "/opt/netbox-agent/bin/netbox_agent", line 8, in <module>
sys.exit(main())
File "/opt/netbox-agent/lib/python3.9/site-packages/netbox_agent/cli.py", line 63, in main
return run(config)
File "/opt/netbox-agent/lib/python3.9/site-packages/netbox_agent/cli.py", line 56, in run
server.netbox_create_or_update(config)
File "/opt/netbox-agent/lib/python3.9/site-packages/netbox_agent/server.py", line 424, in netbox_create_or_update
self.network.create_or_update_netbox_network_cards()
File "/opt/netbox-agent/lib/python3.9/site-packages/netbox_agent/network.py", line 606, in create_or_update_netbox_network_cards
interface.save()
File "/opt/netbox-agent/lib/python3.9/site-packages/pynetbox/core/response.py", line 571, in save
if req.patch(updates):
File "/opt/netbox-agent/lib/python3.9/site-packages/pynetbox/core/query.py", line 398, in patch
return self._make_call(verb="patch", data=data)
File "/opt/netbox-agent/lib/python3.9/site-packages/pynetbox/core/query.py", line 260, in _make_call
raise RequestError(req)
pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'primary_mac_address': ["Multiple objects match the provided attributes: {'mac_address': 'A0:36:9F:BD:0A:6C'}"]}Expected behavior
Netbox agent runs succesfully adding the right mac addresses.
Configuration file
Paste here your netbox agent configuration file
Environment:
- OS: Gentoo
- Netbox agent version: pip installed version from master branch
Additional context
dimm0 and VergeDX
Metadata
Metadata
Assignees
Labels
No labels