python-ifcfg
python-ifcfg copied to clipboard
Python cross-platform network interface discovery (ifconfig/ipconfig/ip)
Hello, If I use slcand to use a RS232 to Can adapter ifcfg find the can0 device, even if not up. Ifconfig don't show it from `for name, interface in...
I am trying to get IP/subnet using the code in this repo, but I am getting NOne as result in the Netmask, even though I can confirm the subnet mask...
I'm getting the following error when polling interfaces via `ifcfg`: ``` Traceback (most recent call last): . . . File "/usr/local/lib/python3.8/dist-packages/ifcfg/__init__.py", line 70, in interfaces return Parser(ifconfig=ifconfig).interfaces File "/usr/local/lib/python3.8/dist-packages/ifcfg/parser.py", line...
I have a interface named "wg0_BSSIntranet" this is listed via ifconfig but not from ifcfg I assume the '_' might be the problem but from linux side it is a...
Use the correct regex named group identifiers: `prefixlen`->`prefixlens`, `broadcast`->`broadcasts`, `netmask`->`netmasks`
Hi @benjaoming, I'm trying to get interfaces details using the code in this repo in the Linux machine, where in that linux machine "ifconfig" command is deprecated, only "ip" command...
This library can easily support FreeBSD, I think. Waht do you say?
When i launch a command like : ` sudo ifconfig eth0 down ` and after I run ifcfg.interfaces() in a new python interpreter the eth0 interface still appears. Is it...
class UnixParser(Parser): @classmethod def get_command(cls): ifconfig_cmd = 'ifconfig' for path in ['/sbin', '/usr/sbin', '/bin', '/usr/bin']: // PATH variable should be considered if os.path.exists(os.path.join(path, ifconfig_cmd)): ifconfig_cmd = os.path.join(path, ifconfig_cmd) break ifconfig_cmd...
OS: ``` server:~ # more /etc/os-release NAME="SLES" VERSION="12-SP5" VERSION_ID="12.5" PRETTY_NAME="SUSE Linux Enterprise Server 12 SP5" ID="sles" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:suse:sles:12:sp5" ``` ifconfig ``` server:~ # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1...