]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Removing "neighbor <peer-group> allowas-in" 7960/head
authorKishore Kunal <kishore.kunal@broadcom.com>
Thu, 28 Jan 2021 05:26:24 +0000 (05:26 +0000)
committerKishore Kunal <kishore.kunal@broadcom.com>
Thu, 28 Jan 2021 16:54:35 +0000 (16:54 +0000)
Unconfig not resetting the peer-group member allowas_in[afi][safi]
This is causing remote route to be accept.

Signed-off-by: Kishore Kunal <kishorekunal01@broadcom.com>
bgpd/bgpd.c

index 368397d7aa7de96d891914ef4d5f9b3dbbe7f805..edd90d7040351cbd6a441f9cb62119b40ba1f74c 100644 (file)
@@ -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],