summaryrefslogtreecommitdiff
path: root/op-mode-definitions/force-vrf.xml.in
diff options
context:
space:
mode:
Diffstat (limited to 'op-mode-definitions/force-vrf.xml.in')
-rw-r--r--op-mode-definitions/force-vrf.xml.in16
1 files changed, 16 insertions, 0 deletions
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 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="force">
+ <children>
+ <tagNode name="vrf">
+ <properties>
+ <help>Execute shell in given VRF instance</help>
+ <completionHelp>
+ <path>vrf name</path>
+ </completionHelp>
+ </properties>
+ <command>sudo ip vrf exec $3 su - $(whoami)</command>
+ </tagNode>
+ </children>
+ </node>
+</interfaceDefinition>