From d2681ea5929e7c3272ac74c8e565922db402758b Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 21 May 2023 23:14:52 +0200 Subject: T5234: add op-mode command "force vrf" to change shell into any given VRF --- op-mode-definitions/force-vrf.xml.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 op-mode-definitions/force-vrf.xml.in (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/force-vrf.xml.in b/op-mode-definitions/force-vrf.xml.in new file mode 100644 index 000000000..71f50b0d2 --- /dev/null +++ b/op-mode-definitions/force-vrf.xml.in @@ -0,0 +1,16 @@ + + + + + + + Execute shell in given VRF instance + + vrf name + + + sudo ip vrf exec $3 su - $(whoami) + + + + -- cgit v1.2.3