summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-vrf.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-15 22:19:24 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-15 22:19:24 +0100
commit2fb763ffbc5c5babe552ec97c06570c54ea4aad8 (patch)
tree44dc5fab8d04cb7ae0abaa85987c3d1e8fd0126b /op-mode-definitions/show-vrf.xml.in
parente085f3e6c21a41beee2c23d8525c2029a8e0b250 (diff)
downloadvyos-1x-2fb763ffbc5c5babe552ec97c06570c54ea4aad8.tar.gz
vyos-1x-2fb763ffbc5c5babe552ec97c06570c54ea4aad8.zip
op-mode: vrf: T5150: add "show vrf vni" and "show vrf <name> vni" commands
vyos@vyos:~$ show vrf vni VRF VNI VxLAN IF L3-SVI State Rmac blue 2000 None None Down None green 3000 None None Down None red 1000 None None Down None vyos@vyos:~$ show vrf blue vni VRF VNI VxLAN IF L3-SVI State Rmac blue 2000 None None Down None
Diffstat (limited to 'op-mode-definitions/show-vrf.xml.in')
-rw-r--r--op-mode-definitions/show-vrf.xml.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/op-mode-definitions/show-vrf.xml.in b/op-mode-definitions/show-vrf.xml.in
index 9728eb1fa..c18649844 100644
--- a/op-mode-definitions/show-vrf.xml.in
+++ b/op-mode-definitions/show-vrf.xml.in
@@ -7,6 +7,14 @@
<help>Show VRF (Virtual Routing and Forwarding) information</help>
</properties>
<command>${vyos_op_scripts_dir}/vrf.py show</command>
+ <children>
+ <leafNode name="vni">
+ <properties>
+ <help>Show information on VRF/VXLAN VNI mapping</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
</node>
<tagNode name="vrf">
<properties>
@@ -23,6 +31,12 @@
</properties>
<command>ip vrf pids "$3"</command>
</leafNode>
+ <leafNode name="vni">
+ <properties>
+ <help>Show VXLAN VNI association</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
</children>
</tagNode>
</children>