From 32f8c45b556d615914c9dabfdf94db1bdfee0e3c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sat, 6 Jan 2024 22:26:37 +0100 Subject: op-mode: T5904: add "show ipv6 route vrf " 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 Possible completions: Execute the current command Show IPv6 routes of given address or prefix (cherry picked from commit 119d94bdb05d0c88bfc452d903e64000b278c43e) --- op-mode-definitions/show-ipv6-route.xml.in | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 @@ ${vyos_op_scripts_dir}/route.py show_summary --family inet6 --vrf $5 + + + Show IPv6 routes of given address or prefix + + <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show longer prefixes of routes for given prefix + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + #include #include #include @@ -103,6 +120,7 @@ <h:h:h:h:h:h:h:h> <h:h:h:h:h:h:h:h/x> + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ @@ -111,7 +129,6 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - vtysh -c "show ipv6 route $4" -- cgit v1.2.3