From edc64e7fb63757a3779df12945ecefca9c462952 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 25 Jun 2025 17:35:01 +0100 Subject: op-mode: T7560: add support for virtual tag nodes for cases when commands need both fixed and variable arguments --- op-mode-definitions/show-ip-route.xml.in | 56 +++++++++++++++----------------- 1 file changed, 26 insertions(+), 30 deletions(-) (limited to 'op-mode-definitions/show-ip-route.xml.in') diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in index 37279d3d2..bbac433c7 100644 --- a/op-mode-definitions/show-ip-route.xml.in +++ b/op-mode-definitions/show-ip-route.xml.in @@ -13,13 +13,24 @@ vtysh -c "show ip route" - #include - + - Show kernel route cache + Show IP routes of specified IP address or prefix + + <x.x.x.x> <x.x.x.x/x> + - ip -s route list cache - + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + Show longer prefixes of routes for specified prefix + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + + #include Show kernel route cache for a given route @@ -27,15 +38,13 @@ <x.x.x.x> <x.x.x.x/x> + + Show kernel route cache + ip -s route list cache + ip -s route list cache $5 #include - - - Show kernel route table - - ip route list - Show kernel route table for a given route @@ -43,6 +52,10 @@ <x.x.x.x> <x.x.x.x/x> + + Show kernel route table + ip route list + ip -s route list $5 #include @@ -93,7 +106,7 @@ #include #include #include - + Show IP routes of specified IP address or prefix @@ -109,28 +122,11 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - + - - - Show IP routes of specified IP address or prefix - - <x.x.x.x> <x.x.x.x/x> - - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - - Show longer prefixes of routes for specified prefix - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - - -- cgit v1.2.3