Skip to content

Commit ebe0388

Browse files
louis-6windmergify[bot]
authored andcommitted
bgpd: fix display of local label in show bgp
Fix the display of the local label in show bgp. > r1# show bgp ipv4 labeled-unicast 172.16.2.2/32 > BGP routing table entry for 172.16.2.2/32, version 2 > Local label: 16 <---- MISSING > Paths: (1 available, best #1, table default, vrf (null)) > Advertised to non peer-group peers: > 192.168.1.2 > 65501 > 192.168.1.2 from 192.168.1.2 (172.16.2.2) > Origin IGP, metric 0, valid, external, best (First path received) > Remote label: 3 > Last update: Fri Oct 25 17:55:45 2024 Fixes: 67f67ba ("bgpd: Drop label_ntop/label_pton functions") Signed-off-by: Louis Scalbert <[email protected]> (cherry picked from commit e7b3276)
1 parent f4f0e2c commit ebe0388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bgpd/bgp_route.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12287,7 +12287,7 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
1228712287

1228812288
mpls_lse_decode(dest->local_label, &label, &ttl, &exp, &bos);
1228912289

12290-
has_valid_label = bgp_is_valid_label(&label);
12290+
has_valid_label = bgp_is_valid_label(&dest->local_label);
1229112291

1229212292
if (safi == SAFI_EVPN) {
1229312293
if (!json) {

0 commit comments

Comments
 (0)