summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-10 13:01:14 +0100
committerGitHub <noreply@github.com>2023-03-10 13:01:14 +0100
commit684b30a16c61d6ba90b4701aff2409365c39a9d2 (patch)
treeb5415010ab6aeb8db07bd77cf63b17061b371662 /op-mode-definitions
parent284820582938f7250241fe604fbb68efc3a55790 (diff)
parent4cdf1386840ed2524b38bdc9d6fd19f4c423b827 (diff)
downloadvyos-1x-684b30a16c61d6ba90b4701aff2409365c39a9d2.tar.gz
vyos-1x-684b30a16c61d6ba90b4701aff2409365c39a9d2.zip
Merge pull request #1880 from ichdasich/add_bgp_nexthop_to_vrf
T5070: Added show bgp martian/show bgp nexthop to bgp in vrf
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-bgp.xml.in34
1 files changed, 34 insertions, 0 deletions
diff --git a/op-mode-definitions/show-bgp.xml.in b/op-mode-definitions/show-bgp.xml.in
index c33a9dacf..378ae47f0 100644
--- a/op-mode-definitions/show-bgp.xml.in
+++ b/op-mode-definitions/show-bgp.xml.in
@@ -100,6 +100,40 @@
<command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
<children>
#include <include/bgp/show-bgp-common.xml.i>
+ <node name="martian">
+ <properties>
+ <help>martian next-hops</help>
+ </properties>
+ <children>
+ <leafNode name="next-hop">
+ <properties>
+ <help>martian next-hop database</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
+ </children>
+ </node>
+ <node name="nexthop">
+ <properties>
+ <help>Show BGP nexthop table</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/vtysh-generic-detail.xml.i>
+ </children>
+ </node>
+ <tagNode name="nexthop">
+ <properties>
+ <help>IPv4/IPv6 nexthop address</help>
+ <completionHelp>
+ <list>&lt;x.x.x.x&gt; &lt;h:h:h:h:h:h:h:h&gt;</list>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ <children>
+ #include <include/vtysh-generic-detail.xml.i>
+ </children>
+ </tagNode>
</children>
</tagNode>
#include <include/vtysh-generic-wide.xml.i>