diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-01-29 08:17:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 08:17:26 +0100 |
commit | c600e8a52cdc5d331e325077f252e5238cd7079b (patch) | |
tree | 65be2aa494788781aacd2ff8088cd130ddae96f5 /bgpd | |
parent | Merge pull request #7974 from donaldsharp/more_if_zero (diff) | |
parent | bgpd: Removing "neighbor <peer-group> allowas-in" (diff) | |
download | frr-c600e8a52cdc5d331e325077f252e5238cd7079b.tar.xz frr-c600e8a52cdc5d331e325077f252e5238cd7079b.zip |
Merge pull request #7960 from kishorekunal01/bgp_fix_allowas_in
BGP: "no neighbor <peer-group> allowas-in" is not resetting the peer-group member allowas_in[afi][safi].
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgpd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 368397d7a..edd90d704 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], |