Skip to content

Commit

Permalink
Fix MAC comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ribetm committed Jan 21, 2025
1 parent ec7df38 commit 6ba1e1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netbox_agent/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def scan(self):
mac = open("/sys/class/net/{}/address".format(interface), "r").read().strip()
if mac == "00:00:00:00:00:00":
mac = None
if mac:
mac = mac.upper()

mtu = int(open("/sys/class/net/{}/mtu".format(interface), "r").read().strip())
vlan = None
Expand Down

0 comments on commit 6ba1e1f

Please sign in to comment.