Skip to content

Commit

Permalink
Merge pull request #62 from cisagov/Dbones202-patch-1
Browse files Browse the repository at this point in the history
Update spreadsheet_tools.py
  • Loading branch information
Dbones202 authored Feb 22, 2024
2 parents a2ebf7f + da16610 commit 82d2216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/navv/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""This file defines the version of this module."""
__version__ = "3.3.3"
__version__ = "3.3.4"
4 changes: 2 additions & 2 deletions src/navv/spreadsheet_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,13 @@ def handle_ip(ip_to_check, dns_data, inventory, segments, ext_IPs, unk_int_IPs):
else:
resolution = f"Unknown device in {segments[x].name} network"
unk_int_IPs.add(ip_to_check)
if not netaddr.IPAddress(ip_to_check).is_private():
if not netaddr.IPAddress(ip_to_check).is_ipv4_private_use():
resolution = resolution + " {Non-Priv IP}"
desc_to_change = (
resolution,
segments[x].color,
)
elif netaddr.IPAddress(ip_to_check).is_private():
elif netaddr.IPAddress(ip_to_check).is_ipv4_private_use():
if ip_to_check in dns_data:
desc_to_change = (dns_data[ip_to_check], INTERNAL_NETWORK_CELL_COLOR)
elif ip_to_check in inventory:
Expand Down

0 comments on commit 82d2216

Please sign in to comment.