From 45d0193ad16f69f64685576ba8190a5b1c35ce04 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 16 Jan 2023 16:19:42 +0000 Subject: opmode: T4837: add VRF option for route summary --- op-mode-definitions/show-ip-route.xml.in | 7 ++++++- op-mode-definitions/show-ipv6-route.xml.in | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-ip-route.xml.in b/op-mode-definitions/show-ip-route.xml.in index 63b04fcd0..681aa089f 100644 --- a/op-mode-definitions/show-ip-route.xml.in +++ b/op-mode-definitions/show-ip-route.xml.in @@ -77,6 +77,12 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + Summary of all routes in the VRF + + ${vyos_op_scripts_dir}/route.py show_summary --family inet --vrf $5 + #include #include #include @@ -84,7 +90,6 @@ #include #include #include - #include #include #include diff --git a/op-mode-definitions/show-ipv6-route.xml.in b/op-mode-definitions/show-ipv6-route.xml.in index 30ea208c1..7df1a873a 100644 --- a/op-mode-definitions/show-ipv6-route.xml.in +++ b/op-mode-definitions/show-ipv6-route.xml.in @@ -76,6 +76,12 @@ ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + + + Summary of all routes in the VRF + + ${vyos_op_scripts_dir}/route.py show_summary --family inet6 --vrf $5 + #include #include #include @@ -83,7 +89,6 @@ #include #include #include - #include #include #include #include -- cgit v1.2.3