mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-12 19:12:04 +00:00
Merge pull request #12681 from pguibert6WIND/vpnv6_encode_plus
Vpnv6 encode plus
This commit is contained in:
commit
1983a80dd6
@ -2273,8 +2273,12 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
|
||||
&& peer->shared_network
|
||||
&& (from == bgp->peer_self
|
||||
|| peer->sort == BGP_PEER_EBGP))) {
|
||||
attr->mp_nexthop_len =
|
||||
BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL;
|
||||
if (safi == SAFI_MPLS_VPN)
|
||||
attr->mp_nexthop_len =
|
||||
BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL;
|
||||
else
|
||||
attr->mp_nexthop_len =
|
||||
BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL;
|
||||
}
|
||||
|
||||
/* Clear off link-local nexthop in source, whenever it is not
|
||||
|
@ -3585,7 +3585,8 @@ route_set_ipv6_nexthop_local(void *rule, const struct prefix *p, void *object)
|
||||
path->attr->mp_nexthop_local = *address;
|
||||
|
||||
/* Set nexthop length. */
|
||||
if (path->attr->mp_nexthop_len != BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL)
|
||||
if (path->attr->mp_nexthop_len != BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL &&
|
||||
path->attr->mp_nexthop_len != BGP_ATTR_NHLEN_VPNV6_GLOBAL_AND_LL)
|
||||
path->attr->mp_nexthop_len = BGP_ATTR_NHLEN_IPV6_GLOBAL_AND_LL;
|
||||
|
||||
SET_FLAG(path->attr->rmap_change_flags,
|
||||
|
Loading…
Reference in New Issue
Block a user