]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: Removing "neighbor <peer-group> allowas-in"
authorKishore Kunal <kishore.kunal@broadcom.com>
Thu, 28 Jan 2021 05:26:24 +0000 (05:26 +0000)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 29 Jan 2021 07:19:14 +0000 (09:19 +0200)
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 cb53b8805bdf8333deaff9951dd33cebe73bc36b..fc9b2c17bc35b9b67cce099c662b1d027659b00c 100644 (file)
@@ -5415,11 +5415,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],