Handle IPv6 addresses #26

Closed
opened 2019-08-07 18:42:04 +02:00 by Solvik · 0 comments
Solvik commented 2019-08-07 18:42:04 +02:00 (Migrated from github.com)

The project uses the Python netifaces library
Right now we use netifaces like this:

netifaces.ifaddresses(interface).get(netifaces.AF_INET)

We also need to query netifaces.AF_INET6 to get IPv6 addresses
It should work out of the box for Netbox as it handles IPv4 and IPv6 the same way in the API

The project uses the Python `netifaces` library Right now we use netifaces like this: ``` netifaces.ifaddresses(interface).get(netifaces.AF_INET) ``` We also need to query `netifaces.AF_INET6` to get IPv6 addresses It should work out of the box for Netbox as it handles IPv4 and IPv6 the same way in the API
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: DGNum/netbox-agent#26
No description provided.