Open warmfire540 opened 5 months ago
Here's talk on an update but doesn't involve other named connection, just the standard physical ones.
There is a pull request for that too.
So if you can figure out a way to add VPN, it would need to be generic as your is just one naming type.
Also a way to split them up from physical?
Or even split them up in the attributes and to thier own sensors?
@bsimmo can we remove | /bin/egrep " eth| wlan"
from the getNetworkIFsUsingIP
func? the rest of the func would need to stop assuming 2 entries and just pass the whole list back in the attributes
for me then all my interfaces are returned regardless of naming
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DORMANT group default qlen 1000
5: nordlynx: <POINTOPOINT,UP,LOWER_UP> mtu 1420 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
playing w/ the code it now shows my 2 connected ones, I haven't played w/ just showing them all yet - maybe next.
networking:
eth0:
IP: 192.168.68.131
mac: dc:a6:32:31:9f:19
rx_data: 981420
tx_data: 321488
nordlynx:
IP: 10.5.0.2
rx_data: 81495
tx_data: 58768
Checklist:
Release with the issue: v1.8.5
Last working release (if known): not sure - only used this version
Hardware, Operating System, Python version: RPi 3 Model B r1.2 py 2.7.16
Description of problem:
Run our report script 'genBugInfo' on your failing device and include the output here:
Python errors shown in the logs (if applicable):
Additional information: