summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-07 09:30:52 +0200
committerGitHub <noreply@github.com>2024-01-07 09:30:52 +0200
commit20b77b392105fc23a71481833b3bd1d442728e31 (patch)
treead249c4f828156176d61e7820f18ee9803fc0c02
parentde5ca2100d6bd45d3e6d522510aec1e7af8f0599 (diff)
parent32f8c45b556d615914c9dabfdf94db1bdfee0e3c (diff)
downloadvyos-1x-20b77b392105fc23a71481833b3bd1d442728e31.tar.gz
vyos-1x-20b77b392105fc23a71481833b3bd1d442728e31.zip
Merge pull request #2766 from vyos/mergify/bp/sagitta/pr-2765
op-mode: T5904: add "show ipv6 route vrf <name> <prefix>" command (backport #2765)
-rw-r--r--op-mode-definitions/show-ipv6-route.xml.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/op-mode-definitions/show-ipv6-route.xml.in b/op-mode-definitions/show-ipv6-route.xml.in
index 7df1a873a..d73fb46b4 100644
--- a/op-mode-definitions/show-ipv6-route.xml.in
+++ b/op-mode-definitions/show-ipv6-route.xml.in
@@ -82,6 +82,23 @@
</properties>
<command>${vyos_op_scripts_dir}/route.py show_summary --family inet6 --vrf $5</command>
</node>
+ <node name="node.tag">
+ <properties>
+ <help>Show IPv6 routes of given address or prefix</help>
+ <completionHelp>
+ <list>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ <node name="longer-prefixes">
+ <properties>
+ <help>Show longer prefixes of routes for given prefix</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </node>
+ </children>
+ </node>
#include <include/show-route-bgp.xml.i>
#include <include/show-route-connected.xml.i>
#include <include/show-route-isis.xml.i>
@@ -103,6 +120,7 @@
<list>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
</completionHelp>
</properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
<children>
<node name="longer-prefixes">
<properties>
@@ -111,7 +129,6 @@
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
</node>
</children>
- <command>vtysh -c "show ipv6 route $4"</command>
</tagNode>
</children>
</node>