summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-07-27 13:38:26 +0000
committersever-sever <v.gletenko@vyos.io>2020-07-27 13:38:26 +0000
commited11b28b2f3e20a07cdfed869fcb2d1992c5f7f6 (patch)
tree1be8d2544a5db7a6b356e2ec715e9c8cd50e8dd7
parent789775af9f5e3f9239ef4583eb4ef7538e40b37c (diff)
downloadvyos-1x-ed11b28b2f3e20a07cdfed869fcb2d1992c5f7f6.tar.gz
vyos-1x-ed11b28b2f3e20a07cdfed869fcb2d1992c5f7f6.zip
op-mode: T1117: Add show ipv6 bgp route-map
-rw-r--r--Makefile1
-rw-r--r--op-mode-definitions/show-ipv6-bgp.xml24
2 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fecc093de..6c715d138 100644
--- a/Makefile
+++ b/Makefile
@@ -94,6 +94,7 @@ op_mode_definitions:
rm -f $(OP_TMPL_DIR)/show/node.def
rm -f $(OP_TMPL_DIR)/show/interfaces/node.def
rm -f $(OP_TMPL_DIR)/show/ipv6/node.def
+ rm -f $(OP_TMPL_DIR)/show/ipv6/bgp/node.def
rm -f $(OP_TMPL_DIR)/show/ipv6/route/node.def
rm -f $(OP_TMPL_DIR)/restart/node.def
rm -f $(OP_TMPL_DIR)/monitor/node.def
diff --git a/op-mode-definitions/show-ipv6-bgp.xml b/op-mode-definitions/show-ipv6-bgp.xml
new file mode 100644
index 000000000..67a8c8658
--- /dev/null
+++ b/op-mode-definitions/show-ipv6-bgp.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ipv6">
+ <children>
+ <node name="bgp">
+ <children>
+ <tagNode name="route-map">
+ <properties>
+ <help>Show BGP routes matching the specified route map</help>
+ <completionHelp>
+ <path>policy route-map</path>
+ </completionHelp>
+ </properties>
+ <command>/usr/bin/vtysh -c "show bgp ipv6 route-map $5"</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>