diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-15 22:19:24 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-16 07:35:16 +0000 |
commit | dc80f64212a746fe8ad8fdb989e89bd8fbb27386 (patch) | |
tree | ed92428021732ca56024fdd630313f19934350b5 /op-mode-definitions/show-vrf.xml.in | |
parent | 7b0eaba2d365e5bdf28d74e5b6cca629ff03c5da (diff) | |
download | vyos-1x-dc80f64212a746fe8ad8fdb989e89bd8fbb27386.tar.gz vyos-1x-dc80f64212a746fe8ad8fdb989e89bd8fbb27386.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
(cherry picked from commit 2fb763ffbc5c5babe552ec97c06570c54ea4aad8)
Diffstat (limited to 'op-mode-definitions/show-vrf.xml.in')
-rw-r--r-- | op-mode-definitions/show-vrf.xml.in | 14 |
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> |