handle network cards #10
No reviewers
Labels
No labels
help wanted
need testing
status: accepted
status: discussing
type: bug
type: documentation
type: duplicate
type: enhancement
type:hardware
type: invalid
type: major feature
type: minor feature
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/netbox-agent#10
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feature/network"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #2
@ -0,0 +34,4 @@
# Regex to match base interface name
# Doesn't match vlan interfaces and other loopback etc
INTERFACE_REGEX = re.compile('^(eth[0-9]+|ens[0-9]+|enp[0-9]+s[0-9]f[0-9])$')
No WiFi support ? :D
@ -0,0 +45,4 @@
self.scan()
def scan(self):
for interface in os.listdir('/sys/class/net/'):
Unless I'm mistaken,
/sys
is linux specific, is that ok ?@ -0,0 +45,4 @@
self.scan()
def scan(self):
for interface in os.listdir('/sys/class/net/'):
We should add BSD support later