Merge pull request #6805 from ton31337/fix/dead_code

bgpd: Remove peer_afc_set()
This commit is contained in:
Rafael Zalamena 2020-07-27 18:35:20 -03:00 committed by GitHub
commit 5a1ac9688f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -2174,14 +2174,6 @@ int peer_deactivate(struct peer *peer, afi_t afi, safi_t safi)
return ret;
}
int peer_afc_set(struct peer *peer, afi_t afi, safi_t safi, int enable)
{
if (enable)
return peer_activate(peer, afi, safi);
else
return peer_deactivate(peer, afi, safi);
}
void peer_nsf_stop(struct peer *peer)
{
afi_t afi;

View File

@ -1838,7 +1838,6 @@ extern void peer_group_notify_unconfig(struct peer_group *group);
extern int peer_activate(struct peer *, afi_t, safi_t);
extern int peer_deactivate(struct peer *, afi_t, safi_t);
extern int peer_afc_set(struct peer *, afi_t, safi_t, int);
extern int peer_group_bind(struct bgp *, union sockunion *, struct peer *,
struct peer_group *, as_t *);