diff options
author | Neale Ranns <nranns@cisco.com> | 2020-04-23 16:01:20 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-04-24 17:22:41 +0000 |
commit | bf883bb086e22055c413f1e93bd11470620d5131 (patch) | |
tree | 13316f424b50566e4388484446e9edfc1d91a7fd /src/plugins/acl | |
parent | d9e18aac39827b576dda5ee456e17694988f5ac6 (diff) |
acl: ACL creation CLI parsing fix
Type: fix
Signed-off-by: Neale Ranns <nranns@cisco.com>
Change-Id: I026f0d8385b538e543bae0c1f7e56e49e4713ba1
Diffstat (limited to 'src/plugins/acl')
-rw-r--r-- | src/plugins/acl/acl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/acl/acl.c b/src/plugins/acl/acl.c index 017eb68e313..7a533743406 100644 --- a/src/plugins/acl/acl.c +++ b/src/plugins/acl/acl.c @@ -2950,7 +2950,8 @@ acl_set_aclplugin_acl_fn (vlib_main_t * vm, rules[rule_idx].is_permit = action; } else if (unformat (line_input, "src %U/%d", - unformat_ip46_address, &src, &src_prefix_length)) + unformat_ip46_address, &src, IP46_TYPE_ANY, + &src_prefix_length)) { vec_validate_acl_rules (rules, rule_idx); ip_address_encode (&src, IP46_TYPE_ANY, @@ -2959,7 +2960,8 @@ acl_set_aclplugin_acl_fn (vlib_main_t * vm, rules[rule_idx].src_prefix.len = src_prefix_length; } else if (unformat (line_input, "dst %U/%d", - unformat_ip46_address, &dst, &dst_prefix_length)) + unformat_ip46_address, &dst, IP46_TYPE_ANY, + &dst_prefix_length)) { vec_validate_acl_rules (rules, rule_idx); ip_address_encode (&dst, IP46_TYPE_ANY, |