pyroute2
pyroute2 copied to clipboard
IPRoute.link_lookup('some-alt-name') does not work.
What I think:
ipr.link_lookup(ifname='xxx')
- should lookup by iface name (works OK)
This one gives nothing:
ipr.link_lookup(alt_ifname='xxx')
- should lookup by alternative name (IFLA_ALT_IFNAME)
This one works partly:
ipr.link_lookup('xxx')
- should lookup EITHER by alternative name or ifname (like in ip
command)
This one, works OK:
ipr.link("get", alt_ifname=altname)