Guess primary address #23
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#23
Loading…
Add table
Add a link
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?
Netbox has the ability to flag an IP as
Primary address
for aDevice
Since it's tied to the user workflow, I'd say we could enable this guess with a config argument and use the following workflow
Primary adresss
interface = netifaces.gateways()['default'][netifaces.AF_INET][1]
will tell you which interface has the default route.
Doesn't seem to handle every case:
In my case IP are announced via exabgp