From e92882c60e033ec267229146f479aa46ed8669c4 Mon Sep 17 00:00:00 2001 From: Kishore Kunal Date: Thu, 28 Jan 2021 05:26:24 +0000 Subject: [PATCH] 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 --- bgpd/bgpd.c | 5 ----- 1 file changed, 5 deletions(-) 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], -- 2.39.5