summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-ip-bgp.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-09 19:59:33 +0200
committerChristian Poessinger <christian@poessinger.com>2021-04-09 20:00:55 +0200
commit3fa1092930c3dcb1c3ddfe6c1061e30477f9b45d (patch)
treef36edccb9919cee03e9fa5d0cfbec84a0b3aa897 /op-mode-definitions/show-ip-bgp.xml.in
parent34d789579cda1a940ac65671b41466880267944b (diff)
downloadvyos-1x-3fa1092930c3dcb1c3ddfe6c1061e30477f9b45d.tar.gz
vyos-1x-3fa1092930c3dcb1c3ddfe6c1061e30477f9b45d.zip
op-mode: bgp: support VRF related "show bgp vrf" commands
cpo@PE1:~$ show bgp vrf all Instance default: No BGP prefixes displayed, 0 exist Instance red: BGP table version is 1, local router ID is 10.2.1.1, vrf id 11 Default local pref 100, local AS 100 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.2.1.0/24 0.0.0.0 0 32768 ? Displayed 1 routes and 1 total paths Instance blue: BGP table version is 1, local router ID is 10.1.1.1, vrf id 10 Default local pref 100, local AS 100 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB-failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path *> 10.1.1.0/24 0.0.0.0 0 32768 ? Displayed 1 routes and 1 total paths
Diffstat (limited to 'op-mode-definitions/show-ip-bgp.xml.in')
-rw-r--r--op-mode-definitions/show-ip-bgp.xml.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/op-mode-definitions/show-ip-bgp.xml.in b/op-mode-definitions/show-ip-bgp.xml.in
index 4097bcf2d..ecef320bf 100644
--- a/op-mode-definitions/show-ip-bgp.xml.in
+++ b/op-mode-definitions/show-ip-bgp.xml.in
@@ -11,14 +11,21 @@
<command>vtysh -c "show ip bgp"</command>
<children>
#include <include/bgp/show-ip-bgp-common.xml.i>
+ <leafNode name="vrf">
+ <properties>
+ <help>Show BGP VRF information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
+ </leafNode>
<tagNode name="vrf">
<properties>
- <help>Show bgp routing protocol for given VRF</help>
+ <help>Show BGP VRF related information</help>
<completionHelp>
<path>vrf name</path>
<list>all</list>
</completionHelp>
</properties>
+ <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command>
<children>
#include <include/bgp/show-ip-bgp-common.xml.i>
</children>