]> git.proxmox.com Git - mirror_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)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 1 Oct 2021 11:45:07 +0000 (14:45 +0300)
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>
bgpd/bgpd.c

index ec91e7e229948f3c6824794542efd6be7863edda..925af80cb7901611ced7e82caa42a6c8b89c3581 100644 (file)
@@ -6266,7 +6266,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) {