From 3fa1092930c3dcb1c3ddfe6c1061e30477f9b45d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 9 Apr 2021 19:59:33 +0200 Subject: 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 --- op-mode-definitions/show-ip-bgp.xml.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'op-mode-definitions/show-ip-bgp.xml.in') 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 @@ vtysh -c "show ip bgp" #include + + + Show BGP VRF information + + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ + - Show bgp routing protocol for given VRF + Show BGP VRF related information vrf name all + ${vyos_op_scripts_dir}/vtysh_wrapper.sh $@ #include -- cgit v1.2.3