diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-21 23:14:52 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-21 23:15:31 +0200 |
commit | d2681ea5929e7c3272ac74c8e565922db402758b (patch) | |
tree | 780a65da5e1f38f55ecb06c7b29e496ea04e569c /op-mode-definitions/force-vrf.xml.in | |
parent | 959b0b111d04e05fda016194c293a3c7ce3a68fd (diff) | |
download | vyos-1x-d2681ea5929e7c3272ac74c8e565922db402758b.tar.gz vyos-1x-d2681ea5929e7c3272ac74c8e565922db402758b.zip |
T5234: add op-mode command "force vrf" to change shell into any given VRF
Diffstat (limited to 'op-mode-definitions/force-vrf.xml.in')
-rw-r--r-- | op-mode-definitions/force-vrf.xml.in | 16 |
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> |