You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
Using Nla::NetNsFd does not seem to work with LinkGetRequest, but it does work with LinkSetRequest. Is there a supported method for getting all interfaces in a specific network namespace without moving the process into the namespace?
For my test case I added a namespace and create a device within that namespace.
ip netns add foo
ip netns exec foo ip link add dev1 up type bridge
The following snippet first gets the links in the root namespace, then attempts to get the links in the "foo" namespace.
let links = handle.link().get().execute();//Dumps links in the root namespacelet f = std::fs::File::open("/var/run/netns/foo")?;letmut get = handle.link().get();
get.message_mut().nlas.push(Nla::NetNsFd(f.as_raw_fd()));let links = get.execute();// Also dumps links in the root namespace, but I expect links from the "foo" namespace
I've also tried using Nla::NetnsId and Nla::IfNetnsId, with similar results.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using Nla::NetNsFd does not seem to work with LinkGetRequest, but it does work with LinkSetRequest. Is there a supported method for getting all interfaces in a specific network namespace without moving the process into the namespace?
For my test case I added a namespace and create a device within that namespace.
The following snippet first gets the links in the root namespace, then attempts to get the links in the "foo" namespace.
I've also tried using
Nla::NetnsId
andNla::IfNetnsId
, with similar results.The text was updated successfully, but these errors were encountered: