Use ifparser to parse output of ifconfig
If you want to parse output of ifconfig with Python, you can use ifconfig. Install: sudo pip install -U ifparser Usage: from ifparser import Ifcfg import commands ifdata = Ifcfg(commands.getoutput(‘ifconfig -a’)) # get all the… Use ifparser to parse output of ifconfig