summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-16 21:16:18 +0100
committerChristian Breunig <christian@breunig.cc>2023-03-16 21:16:50 +0100
commit689d6f077708bb011f00c703dbed75e5d0893418 (patch)
tree764dee567d0921b049471c2888f97a5f596276bf
parentfa174bf8e42bda194b7886470eceeca0683782cd (diff)
downloadvyos-1x-689d6f077708bb011f00c703dbed75e5d0893418.tar.gz
vyos-1x-689d6f077708bb011f00c703dbed75e5d0893418.zip
opmode: T4837: support ip route display for specific prefixes inside VRF
-rw-r--r--op-mode-definitions/show-ip-route.xml.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in
index 681aa089f..c878bf712 100644
--- a/op-mode-definitions/show-ip-route.xml.in
+++ b/op-mode-definitions/show-ip-route.xml.in
@@ -92,6 +92,23 @@
#include <include/show-route-static.xml.i>
#include <include/show-route-supernets-only.xml.i>
#include <include/show-route-tag.xml.i>
+ <node name="node.tag">
+ <properties>
+ <help>Show IP routes of specified IP address or prefix</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt; &lt;x.x.x.x/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <leafNode name="longer-prefixes">
+ <properties>
+ <help>Show longer prefixes of routes for specified prefix</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </node>
</children>
</tagNode>
</children>