diff options
author | Pavel Kotucek <pkotucek@cisco.com> | 2017-04-12 09:01:43 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-04-12 17:13:15 +0000 |
commit | 6fb41fa52b559d2f6dda02d8739bcd54fbeb6c4f (patch) | |
tree | e2d2892d6ecca3d33e57965a6bba5785029f76e1 /src/plugins/acl | |
parent | 027dbd528827c8cce6d07cf806694d2b0d53498e (diff) |
acl-plugin: missing "deny" parameter in API
Change-Id: Ie2ab844ad27b5ddb552bad9b19e7029cf91e4071
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
Diffstat (limited to 'src/plugins/acl')
-rw-r--r-- | src/plugins/acl/acl_test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/acl/acl_test.c b/src/plugins/acl/acl_test.c index bec06fda..847c5b59 100644 --- a/src/plugins/acl/acl_test.c +++ b/src/plugins/acl/acl_test.c @@ -364,6 +364,11 @@ static int api_acl_add_replace (vat_main_t * vam) vec_validate_acl_rules(rules, rule_idx); rules[rule_idx].is_permit = 1; } + else if (unformat (i, "deny")) + { + vec_validate_acl_rules(rules, rule_idx); + rules[rule_idx].is_permit = 0; + } else if (unformat (i, "count %d", &n_rules_override)) { /* we will use this later */ |