]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: no filter operations fix on appropriate access-list name
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 18 Nov 2019 11:05:47 +0000 (12:05 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 19 Nov 2019 12:33:36 +0000 (13:33 +0100)
some vty no operations were not removing the entry of the access-list,
since the access-list name was not retrieved correctly. the index was
not correct for 'no ipv6 access-list WORD' operations, but also for one 'no
access-list WORD [..] any' operation.

PR=66244
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Acked-by: Alain Ritoux <alain.ritoux@6wind.com>
lib/filter.c

index 8c210bd7adf0ed5a55c40ff13ade0a3184bd94a2..ed3ffe9c67226d70b5bc9a3511cbe568cccbd8f9 100644 (file)
@@ -2147,7 +2147,7 @@ DEFUN (no_access_list_any,
        "Specify packets to forward\n"
        "Prefix to match. e.g. 10.0.0.0/8\n")
 {
-       int idx_word = 1;
+       int idx_word = 2;
        int idx = 0;
        char *seq = NULL;
        char *permit_deny = NULL;
@@ -2352,7 +2352,7 @@ DEFUN (no_ipv6_access_list_exact,
 {
        int idx = 0;
        int exact = 0;
-       int idx_word = 2;
+       int idx_word = 3;
        char *seq = NULL;
        char *permit_deny = NULL;
        char *prefix = NULL;
@@ -2394,7 +2394,7 @@ DEFUN (no_ipv6_access_list_any,
        "Specify packets to forward\n"
        "Any prefixi to match\n")
 {
-       int idx_word = 2;
+       int idx_word = 3;
        int idx = 0;
        char *seq = NULL;
        char *permit_deny = NULL;