From: Kishore Kunal Date: Thu, 28 Jan 2021 05:26:24 +0000 (+0000) Subject: bgpd: Removing "neighbor allowas-in" X-Git-Tag: base_8.0~453^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F7960%2Fhead;p=mirror%2Ffrr.git bgpd: Removing "neighbor allowas-in" Unconfig not resetting the peer-group member allowas_in[afi][safi] This is causing remote route to be accept. Signed-off-by: Kishore Kunal --- diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 368397d7aa..edd90d7040 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -5684,11 +5684,6 @@ int peer_allowas_in_unset(struct peer *peer, afi_t afi, safi_t safi) PEER_FLAG_ALLOWAS_IN)) continue; - /* Skip peers where flag is already disabled. */ - if (!CHECK_FLAG(member->af_flags[afi][safi], - PEER_FLAG_ALLOWAS_IN)) - continue; - /* Remove flags and configuration on peer-group member. */ UNSET_FLAG(member->af_flags[afi][safi], PEER_FLAG_ALLOWAS_IN); UNSET_FLAG(member->af_flags[afi][safi],