summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-ip-route.xml.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2023-01-12 13:12:25 +0000
committerDaniil Baturin <daniil@baturin.org>2023-01-12 20:03:45 +0000
commit65fa4e55074652ec65b21eff457faa8f4adc9a1a (patch)
tree596a6e449c2cab0cdda1882124181ebe35a16794 /op-mode-definitions/show-ip-route.xml.in
parent0e5ea5a63ab9db9ae04ab09e3af42a6e8e1c4c55 (diff)
downloadvyos-1x-65fa4e55074652ec65b21eff457faa8f4adc9a1a.tar.gz
vyos-1x-65fa4e55074652ec65b21eff457faa8f4adc9a1a.zip
opmode: T4837: add family and table arguments for ShowRoute
Diffstat (limited to 'op-mode-definitions/show-ip-route.xml.in')
-rw-r--r--op-mode-definitions/show-ip-route.xml.in15
1 files changed, 14 insertions, 1 deletions
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/show-route-ospf.xml.i>
#include <include/show-route-rip.xml.i>
#include <include/show-route-static.xml.i>
- #include <include/show-route-summary.xml.i>
#include <include/show-route-supernets-only.xml.i>
#include <include/show-route-table.xml.i>
#include <include/show-route-tag.xml.i>
+ <node name="summary">
+ <properties>
+ <help>Summary of all routes</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/route.py show_summary --family inet</command>
+ <children>
+ <tagNode name="table">
+ <properties>
+ <help>Summary of routes in a particular table</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/route.py show_summary --family inet --table $6</command>
+ </tagNode>
+ </children>
+ </node>
<tagNode name="vrf">
<properties>
<help>Show IP routes in VRF</help>