From fdd5b644ec566b75e58a45478c94364858ac053e Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 29 May 2023 09:54:48 +0200 Subject: T5234: add op-mode command "force netns" to change shell into any given namespace --- op-mode-definitions/force-netns.xml.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 op-mode-definitions/force-netns.xml.in diff --git a/op-mode-definitions/force-netns.xml.in b/op-mode-definitions/force-netns.xml.in new file mode 100644 index 000000000..b9dc2c1e8 --- /dev/null +++ b/op-mode-definitions/force-netns.xml.in @@ -0,0 +1,16 @@ + + + + + + + Execute shell in given Network Namespace + + netns name + + + sudo ip netns exec $3 su - $(whoami) + + + + -- cgit v1.2.3