handle network cards #10

Merged
Solvik merged 6 commits from feature/network into master 2019-08-04 23:42:51 +02:00
Solvik commented 2019-08-04 14:38:31 +02:00 (Migrated from github.com)

Fixes #2

Fixes #2
blotus (Migrated from github.com) reviewed 2019-08-04 19:04:05 +02:00
@ -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])$')
blotus (Migrated from github.com) commented 2019-08-04 19:04:04 +02:00

No WiFi support ? :D

No WiFi support ? :D
blotus (Migrated from github.com) reviewed 2019-08-04 21:55:44 +02:00
@ -0,0 +45,4 @@
self.scan()
def scan(self):
for interface in os.listdir('/sys/class/net/'):
blotus (Migrated from github.com) commented 2019-08-04 21:55:44 +02:00

Unless I'm mistaken, /sys is linux specific, is that ok ?

Unless I'm mistaken, `/sys` is linux specific, is that ok ?
Solvik (Migrated from github.com) reviewed 2019-08-04 23:18:14 +02:00
@ -0,0 +45,4 @@
self.scan()
def scan(self):
for interface in os.listdir('/sys/class/net/'):
Solvik (Migrated from github.com) commented 2019-08-04 23:18:14 +02:00

We should add BSD support later

We should add BSD support later
Sign in to join this conversation.
No description provided.