]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Allow deletion of some access-lists 6513/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 Jun 2020 00:01:48 +0000 (20:01 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 Jun 2020 00:01:48 +0000 (20:01 -0400)
Recent rework of access lists to allow sequence numbers
accidently introduced the inability to delete some
access lists.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/filter.c

index 4a83b8b04327d4c7188181e9429348239b97e524..d61b03cbe24af6ff49dbcf3cd2b0a9346e6ea8f6 100644 (file)
@@ -868,7 +868,7 @@ DEFUN (no_access_list_standard,
        "Address to match\n"
        "Wildcard bits\n")
 {
-       int idx_acl = 1;
+       int idx_acl = 2;
        int idx = 0;
        char *seq = NULL;
        char *permit_deny = NULL;
@@ -1949,7 +1949,7 @@ DEFUN (no_mac_access_list,
                mac = argv[idx]->arg;
        assert(mac);
 
-       return filter_set_zebra(vty, argv[2]->arg, seq, permit_deny, AFI_L2VPN,
+       return filter_set_zebra(vty, argv[3]->arg, seq, permit_deny, AFI_L2VPN,
                                mac, 0, 0);
 }