]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix vty output of evpn route-target AS4
authorMark Stapp <mjs@cisco.com>
Tue, 11 Feb 2025 19:35:28 +0000 (14:35 -0500)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sat, 15 Feb 2025 20:13:04 +0000 (20:13 +0000)
evpn route-targets are decoded in  ... multiple places; at least
two have a bug where the AS4 form doesn't have its AS decoded.

Signed-off-by: Mark Stapp <mjs@cisco.com>
(cherry picked from commit 9943a08720ccbed87cd6938791066a0de94a92c6)

bgpd/bgp_evpn_vty.c

index 3e6a7ac784d38721d82998cba8bf82d76460de6d..d9985c9d5b7963717a3355efa1699576555309a5 100644 (file)
@@ -113,7 +113,7 @@ static void display_vrf_import_rt(struct vty *vty, struct vrf_irt_node *irt,
                break;
 
        case ECOMMUNITY_ENCODE_AS4:
-               pnt = ptr_get_be32(pnt, &eas.val);
+               pnt = ptr_get_be32(pnt, &eas.as);
                eas.val = (*pnt++ << 8);
                eas.val |= (*pnt++);
 
@@ -222,7 +222,7 @@ static void display_import_rt(struct vty *vty, struct irt_node *irt,
                break;
 
        case ECOMMUNITY_ENCODE_AS4:
-               pnt = ptr_get_be32(pnt, &eas.val);
+               pnt = ptr_get_be32(pnt, &eas.as);
                eas.val = (*pnt++ << 8);
                eas.val |= (*pnt++);