mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:19:13 +00:00
Merge pull request #17786 from FRRouting/mergify/bp/stable/10.0/pr-17780
bgpd: fix a bug in peer_allowas_in_set() (backport #17780)
This commit is contained in:
commit
c66b18838d
@ -6459,7 +6459,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
|
|||||||
SET_FLAG(member->af_flags[afi][safi],
|
SET_FLAG(member->af_flags[afi][safi],
|
||||||
PEER_FLAG_ALLOWAS_IN_ORIGIN);
|
PEER_FLAG_ALLOWAS_IN_ORIGIN);
|
||||||
member->allowas_in[afi][safi] = 0;
|
member->allowas_in[afi][safi] = 0;
|
||||||
peer_on_policy_change(peer, afi, safi, 0);
|
peer_on_policy_change(member, afi, safi, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (member->allowas_in[afi][safi] != allow_num
|
if (member->allowas_in[afi][safi] != allow_num
|
||||||
@ -6468,7 +6468,7 @@ int peer_allowas_in_set(struct peer *peer, afi_t afi, safi_t safi,
|
|||||||
UNSET_FLAG(member->af_flags[afi][safi],
|
UNSET_FLAG(member->af_flags[afi][safi],
|
||||||
PEER_FLAG_ALLOWAS_IN_ORIGIN);
|
PEER_FLAG_ALLOWAS_IN_ORIGIN);
|
||||||
member->allowas_in[afi][safi] = allow_num;
|
member->allowas_in[afi][safi] = allow_num;
|
||||||
peer_on_policy_change(peer, afi, safi, 0);
|
peer_on_policy_change(member, afi, safi, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user