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-connected.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-connected.xml.i')
-rw-r--r-- | op-mode-definitions/include/show-route-connected.xml.i | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/op-mode-definitions/include/show-route-connected.xml.i b/op-mode-definitions/include/show-route-connected.xml.i new file mode 100644 index 000000000..37364de64 --- /dev/null +++ b/op-mode-definitions/include/show-route-connected.xml.i @@ -0,0 +1,8 @@ +<!-- included start from show-route-connected.xml.i --> +<leafNode name="connected"> + <properties> + <help>Connected routes (directly attached subnet or host)</help> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> +</leafNode> +<!-- included end --> |