]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: fix access-list update callback
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 1 Oct 2021 09:42:04 +0000 (12:42 +0300)
committermergify-bot <noreply@mergify.io>
Sat, 2 Oct 2021 17:13:02 +0000 (17:13 +0000)
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 <iryzhov@nfware.com>
(cherry picked from commit b0a007df7ae11e12732a14312cd2a1500e22c200)

bgpd/bgpd.c

index 66f5d997969fd4167c16cd1506b23d99fce61201..03ab5954245c68c76647cdaaf88aab1d61b7076a 100644 (file)
@@ -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) {