netns
netns copied to clipboard
Simple network namespace handling for go.
my application when it starts it detect all available netns by looking at `/var/run/netns` but while its running if new netns is created my application won't know anything about it...
Dear maintainer, If the names ns exits, the NewNamed function will still call New() which will call unshare syscall, but in the following os.OpenFile it will return error due to...
Existing functions GetFrom{Pid,Thread}() need the pid/tid argument to be numbered as per the pid namespace of the /proc mount. In some container configurations, this is not suitable: a container with...
Access to namespace specific procfs entries fails occasionally with multiple goroutines switching NS
Hi, We have 2 net namespaces. Let's call it n1 and n2. The golang program is started in n2. n1 has bond interface and we monitor the status of the...
Added a method which returns the name of a namespace. If the target namespace is unnamed, the method returns empty string
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.2.0 to 0.4.0. Commits b60007c unix: add Uvmexp and SysctlUvmexp for NetBSD b751db5 unix: gofmt hurd files after CL 459895 b360406 unix: support TIOCGETA on GNU/Hurd 3086868...
issue severity: fun fact 😀 https://github.com/vishvananda/netns/blob/db3c7e526aae966c4ccfa6c8189b693d6ac5d202/netns_linux.go#L196 ...unfortunately memory cgroup controllers are often disabled on various Raspberry Pi Linux distributions, such as Ubuntu 19.04-20.04. A better bet thus seems to be...
It would be very helpful to have a function that's an equivalent to `ip netns list`. The use case is for things like Telegraf which gather metrics and monitor system...
Is there a way to assign a name to newly created namespace, so it could be later reopened by using `netns.GetFromName(ns1)`?