From: Igor Ryzhov Date: Fri, 1 Oct 2021 09:42:04 +0000 (+0300) Subject: bgpd: fix access-list update callback X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=172c292e28936d568b852c785eceb3313ff6a326;p=matthieu%2Ffrr.git bgpd: fix access-list update callback When a regular access-list is updated, we should update references to regular access-lists, not as-path access-lists. Fixes #9707. Signed-off-by: Igor Ryzhov (cherry picked from commit b0a007df7ae11e12732a14312cd2a1500e22c200) --- diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 66f5d99796..03ab595424 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -6250,7 +6250,8 @@ static void peer_distribute_update(struct access_list *access) for (ALL_LIST_ELEMENTS(bm->bgp, mnode, mnnode, bgp)) { if (access->name) - update_group_policy_update(bgp, BGP_POLICY_FILTER_LIST, + update_group_policy_update(bgp, + BGP_POLICY_DISTRIBUTE_LIST, access->name, 0, 0); for (ALL_LIST_ELEMENTS(bgp->peer, node, nnode, peer)) { FOREACH_AFI_SAFI (afi, safi) {