Error when querying VLANs that are duplicated across datacenters | ValueError: get() returned more than one result #276
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#276
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
We hit the issue noted by the
FIXME
in the code that results from the same VLAN ID existing in Netbox across datacenters:Error raised:
Expected behavior
When querying for the VLANs netbox-agent should include the datacenter as a filter.
We were able to work around this issue with the following edit:
If this approach is a reasonable one, I'd be happy to open a PR for the specific change.
Configuration file
Environment:
Additional context
Thank you for sharing and helping maintaining this wonderful tool!
Hi @eliezerlp
This comment brings back memories!
Over the years I haven't had any network setup with similar VLAN IDs across datacenters, especially since modern networks use BGP/EVPN, so I guess we could finally add this parameter to filter out this.
Would you mind opening a PR ?
As for maintaining, I must confess I wasn't very active these past few months/years ; you should really thank @cyrinux who took over for quite some time :)