Skip to content

Commit

Permalink
add ipv6 addresses (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Solvik authored Aug 26, 2019
1 parent 5b5eb8f commit 8de682f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox_agent/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def scan(self):
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']):
Expand Down

0 comments on commit 8de682f

Please sign in to comment.