Skip to content

Commit

Permalink
op-mode: T5904: add "show ipv6 route vrf all <prefix>" command
Browse files Browse the repository at this point in the history
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 all
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>
  • Loading branch information
c-po committed Jan 6, 2024
1 parent da65cbf commit 20e25f7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion op-mode-definitions/show-ipv6-route.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 20e25f7

Please sign in to comment.