mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 17:52:19 +00:00
bgpd: fix vty output of evpn route-target AS4
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 9943a08720
)
This commit is contained in:
parent
6cfea1aa87
commit
ec023e084f
@ -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++);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user