mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-09 22:07:08 +00:00
Merge pull request #4970 from shikenghua/prefer_global
bgpd: prefer-global command not working on IPv4 peers
This commit is contained in:
commit
1fcc189f24
@ -2748,10 +2748,8 @@ route_set_ipv6_nexthop_prefer_global(void *rule, const struct prefix *prefix,
|
||||
path = object;
|
||||
peer = path->peer;
|
||||
|
||||
if ((CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_IN)
|
||||
|| CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_IMPORT))
|
||||
&& peer->su_remote
|
||||
&& sockunion_family(peer->su_remote) == AF_INET6) {
|
||||
if (CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_IN)
|
||||
|| CHECK_FLAG(peer->rmap_type, PEER_RMAP_TYPE_IMPORT)) {
|
||||
/* Set next hop preference to global */
|
||||
path->attr->mp_nexthop_prefer_global = true;
|
||||
SET_FLAG(path->attr->rmap_change_flags,
|
||||
|
Loading…
Reference in New Issue
Block a user