diff --git a/netbox_agent/network.py b/netbox_agent/network.py index c37a891..78f7090 100644 --- a/netbox_agent/network.py +++ b/netbox_agent/network.py @@ -60,6 +60,7 @@ class Network(): continue ip_addr = netifaces.ifaddresses(interface).get(netifaces.AF_INET) + ip_addr += netifaces.ifaddresses(interface).get(netifaces.AF_INET6) if NETWORK_IGNORE_IPS and ip_addr: for i, ip in enumerate(ip_addr): if re.match(NETWORK_IGNORE_IPS, ip['addr']):