From 65fa4e55074652ec65b21eff457faa8f4adc9a1a Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 12 Jan 2023 13:12:25 +0000 Subject: opmode: T4837: add family and table arguments for ShowRoute --- op-mode-definitions/include/show-route-summary.xml.i | 8 -------- op-mode-definitions/show-ip-route.xml.in | 15 ++++++++++++++- op-mode-definitions/show-ipv6-route.xml.in | 15 ++++++++++++++- 3 files changed, 28 insertions(+), 10 deletions(-) delete mode 100644 op-mode-definitions/include/show-route-summary.xml.i (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/include/show-route-summary.xml.i b/op-mode-definitions/include/show-route-summary.xml.i deleted file mode 100644 index 471124562..000000000 --- a/op-mode-definitions/include/show-route-summary.xml.i +++ /dev/null @@ -1,8 +0,0 @@ - - - - Summary of all routes - - ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ - - diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in index 1e906672d..63b04fcd0 100644 --- a/op-mode-definitions/show-ip-route.xml.in +++ b/op-mode-definitions/show-ip-route.xml.in @@ -50,10 +50,23 @@ #include #include #include - #include #include #include #include + + + Summary of all routes + + ${vyos_op_scripts_dir}/route.py show_summary --family inet + + + + Summary of routes in a particular table + + ${vyos_op_scripts_dir}/route.py show_summary --family inet --table $6 + + + Show IP routes in VRF diff --git a/op-mode-definitions/show-ipv6-route.xml.in b/op-mode-definitions/show-ipv6-route.xml.in index 2c5024991..30ea208c1 100644 --- a/op-mode-definitions/show-ipv6-route.xml.in +++ b/op-mode-definitions/show-ipv6-route.xml.in @@ -50,9 +50,22 @@ #include #include #include - #include #include #include + + + Summary of all routes + + ${vyos_op_scripts_dir}/route.py show_summary --family inet6 + + + + Summary of routes in a particular table + + ${vyos_op_scripts_dir}/route.py show_summary --family inet6 --table $6 + + + Show IPv6 routes in VRF -- cgit v1.2.3