summaryrefslogtreecommitdiff
path: root/lib/filter.c
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-11-18 12:05:47 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-11-19 13:33:36 +0100
commit2bf92084b77060f3b089fc5f0e78a2a3ac8d34f5 (patch)
tree3743375114a37409b0bb138b913e04a019ac32c8 /lib/filter.c
parent47774e275799ce2baf814c5ae00f1bfa001b5d4b (diff)
lib: no filter operations fix on appropriate access-list name
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>
Diffstat (limited to 'lib/filter.c')
-rw-r--r--lib/filter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/filter.c b/lib/filter.c
index 8c210bd7ad..ed3ffe9c67 100644
--- a/lib/filter.c
+++ b/lib/filter.c
@@ -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;