summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Scalbert <louis.scalbert@6wind.com>2024-10-25 17:54:07 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-10-28 14:37:07 +0000
commitebe0388c7d0778eaf3c7470a320f41238c66aa2b (patch)
treedf412b67d024c76aee619de099cb64bba72056a1
parentf4f0e2cd38d3b2c6110c42302c8efe46d8038ce5 (diff)
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: 67f67ba481 ("bgpd: Drop label_ntop/label_pton functions") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com> (cherry picked from commit e7b3276ace65d59edb4d614158d4f2959f12f868)
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index e7ea0cf6d4..e158a8335f 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -12287,7 +12287,7 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
mpls_lse_decode(dest->local_label, &label, &ttl, &exp, &bos);
- has_valid_label = bgp_is_valid_label(&label);
+ has_valid_label = bgp_is_valid_label(&dest->local_label);
if (safi == SAFI_EVPN) {
if (!json) {