Hello all,
I would like to fetch the interface names (like eth0..etc) which are configured in kernel using pyroute2 and IPDB functions.
import pyroute2
ipdb=pyroute2.IPDB()
print ipdb.interfaces
The above code is displaying full information. But I would need only the interfaces names.
Desired Output as:
eth0 eth1 ...
I don't want to use IPRoute() function to fetch. I want to use IPDB to fetch the information.
Thanks
rishi
--
You received this message because you are subscribed to the Google Groups "pyroute2-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyroute2-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.