Skip to content

Commit 119d94b

Browse files
committed
op-mode: T5904: add "show ipv6 route vrf <name> <prefix>" command
We've always had a command to display discrete IPv6 routes/prefixes within the global VRF. This commit also adds support for a discrete VRF. vyos@vyos:~$ show ipv6 route vrf <name> Possible completions: <Enter> Execute the current command <h:h:h:h:h:h:h:h> Show IPv6 routes of given address or prefix <h:h:h:h:h:h:h:h/x>
1 parent da65cbf commit 119d94b

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

op-mode-definitions/show-ipv6-route.xml.in

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,23 @@
8282
</properties>
8383
<command>${vyos_op_scripts_dir}/route.py show_summary --family inet6 --vrf $5</command>
8484
</node>
85+
<node name="node.tag">
86+
<properties>
87+
<help>Show IPv6 routes of given address or prefix</help>
88+
<completionHelp>
89+
<list>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
90+
</completionHelp>
91+
</properties>
92+
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
93+
<children>
94+
<node name="longer-prefixes">
95+
<properties>
96+
<help>Show longer prefixes of routes for given prefix</help>
97+
</properties>
98+
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
99+
</node>
100+
</children>
101+
</node>
85102
#include <include/show-route-bgp.xml.i>
86103
#include <include/show-route-connected.xml.i>
87104
#include <include/show-route-isis.xml.i>
@@ -103,6 +120,7 @@
103120
<list>&lt;h:h:h:h:h:h:h:h&gt; &lt;h:h:h:h:h:h:h:h/x&gt;</list>
104121
</completionHelp>
105122
</properties>
123+
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
106124
<children>
107125
<node name="longer-prefixes">
108126
<properties>
@@ -111,7 +129,6 @@
111129
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
112130
</node>
113131
</children>
114-
<command>vtysh -c "show ipv6 route $4"</command>
115132
</tagNode>
116133
</children>
117134
</node>

0 commit comments

Comments
 (0)