Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Convert NLA name into human-friendly name

Example: IFLA_ADDRESS -> address

Requires self.prefix to be set

src/p/y/pyroute2-HEAD/pyroute2/netlink/ipdb/__init__.py   pyroute2(Download)
from pyroute2.netlink.rtnl.tcmsg import tcmsg
 
tc_fields = [tcmsg.nla2name(i[0]) for i in tcmsg.nla_map]
 
 

src/p/y/pyroute2-0.2.8/pyroute2/netlink/ipdb.py   pyroute2(Download)
from pyroute2.netlink.rtnl.tcmsg import tcmsg
 
tc_fields = [tcmsg.nla2name(i[0]) for i in tcmsg.nla_map]