summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include/show-route-supernets-only.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-12-13 21:06:47 +0100
committerChristian Poessinger <christian@poessinger.com>2021-12-13 21:08:15 +0100
commit3f2173873e0519ea253759e7e119b2bcaea596bb (patch)
treeeed586a3e466f5c32563c58630e62f0b9ef3df80 /op-mode-definitions/include/show-route-supernets-only.xml.i
parent88c38dda4b872d2108156b56538302f4c5058a7e (diff)
downloadvyos-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-supernets-only.xml.i')
-rw-r--r--op-mode-definitions/include/show-route-supernets-only.xml.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/op-mode-definitions/include/show-route-supernets-only.xml.i b/op-mode-definitions/include/show-route-supernets-only.xml.i
new file mode 100644
index 000000000..4d1e7c51f
--- /dev/null
+++ b/op-mode-definitions/include/show-route-supernets-only.xml.i
@@ -0,0 +1,8 @@
+<!-- included start from show-route-supernets-only.xml.i -->
+<leafNode name="supernets-only">
+ <properties>
+ <help>Show supernet entries only</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+</leafNode>
+<!-- included end -->