diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-12-13 21:06:47 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-12-13 21:08:15 +0100 |
commit | 3f2173873e0519ea253759e7e119b2bcaea596bb (patch) | |
tree | eed586a3e466f5c32563c58630e62f0b9ef3df80 /op-mode-definitions/include/show-route-table.xml.i | |
parent | 88c38dda4b872d2108156b56538302f4c5058a7e (diff) | |
download | vyos-1x-3f2173873e0519ea253759e7e119b2bcaea596bb.tar.gz vyos-1x-3f2173873e0519ea253759e7e119b2bcaea596bb.zip |
op-mode: xml: refactor "show ip(v6) route" to use #include building blocks
This change then adds supper to filter for given route types under a VRF
instance. You will have "show ip route bgp" in the global VRF and "show ip route
vrf red bgp" in the red VRF. Same commands apply to IPv6 routes.
Diffstat (limited to 'op-mode-definitions/include/show-route-table.xml.i')
-rw-r--r-- | op-mode-definitions/include/show-route-table.xml.i | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/include/show-route-table.xml.i b/op-mode-definitions/include/show-route-table.xml.i new file mode 100644 index 000000000..c3cf82a86 --- /dev/null +++ b/op-mode-definitions/include/show-route-table.xml.i @@ -0,0 +1,17 @@ +<!-- included start from show-route-table.xml.i --> +<node name="table"> + <properties> + <help>Table to display</help> + </properties> +</node> +<tagNode name="table"> + <properties> + <help>The table number to display</help> + <completionHelp> + <list>all</list> + <path>protocols static table</path> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> +</tagNode> +<!-- included end --> |