pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

IPRoute.link_lookup('some-alt-name') does not work.

Open socketpair opened this issue 1 year ago • 2 comments

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)

socketpair avatar Jan 22 '23 17:01 socketpair