]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Have `show bgp vrf all ipv4 uni summ` display vrf NAME 15003/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 12 Dec 2023 22:48:16 +0000 (17:48 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 12 Dec 2023 23:26:14 +0000 (18:26 -0500)
The vrf name was not being displayed in this output.
New output:

eva# show bgp vrf all ipv4 uni summ
BGP router identifier 0.0.0.0, local AS number 99 VRF RED vrf-id 14
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.168.119.1   4          0         0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1
BGP router identifier 0.0.0.0, local AS number 99 VRF GREEN vrf-id 15
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.168.119.1   4          0         0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1
BGP router identifier 192.168.122.1, local AS number 99 VRF default vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.168.119.1   4          0         0         0        0    0    0    never       Active        0 N/A

Total number of neighbors 1
BGP router identifier 0.0.0.0, local AS number 99 VRF GrEEn vrf-id -1
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
192.168.119.1   4          0         0         0        0    0    0    never         Idle        0 N/A

Total number of neighbors 1
eva#

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_vty.c
tests/topotests/all_protocol_startup/r1/show_bgp_ipv6_summary.ref
tests/topotests/all_protocol_startup/r1/show_ip_bgp_summary.ref

index 4f9e4b4ce944707bf90cf1d4cd63d4ccc0089eac..1e850349d521c932c3ae7d4305fa1c8f6c960d23 100644 (file)
@@ -11659,8 +11659,9 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
                                                : bgp->name);
                        } else {
                                vty_out(vty,
-                                       "BGP router identifier %pI4, local AS number %s vrf-id %d",
+                                       "BGP router identifier %pI4, local AS number %s %s vrf-id %d",
                                        &bgp->router_id, bgp->as_pretty,
+                                       bgp->name_pretty,
                                        bgp->vrf_id == VRF_UNKNOWN
                                                ? -1
                                                : (int)bgp->vrf_id);
index 02466872000a485cd2567864361afc1230900952..4464e231f867f189b0e628048157a3b3f3a51feb 100644 (file)
@@ -1,4 +1,4 @@
-BGP router identifier 192.168.0.1, local AS number 100 vrf-id 0
+BGP router identifier 192.168.0.1, local AS number 100 VRF default vrf-id 0
 BGP table version 1
 RIB entries 1, using XXXX bytes of memory
 Peers 2, using XXXX KiB of memory
index deeae87fa3b7f270ae462f562c9a85ef56c59062..9baec12b100b05578c1a7594b3dec4fa0bcdfaf4 100644 (file)
@@ -1,4 +1,4 @@
-BGP router identifier 192.168.0.1, local AS number 100 vrf-id 0
+BGP router identifier 192.168.0.1, local AS number 100 VRF default vrf-id 0
 BGP table version 1
 RIB entries 1, using XXXX bytes of memory
 Peers 4, using XXXX KiB of memory