Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
acl-plugin: VPP-1241: fix the "show acl-plugin tables applied" output
[vpp.git]
/
src
/
plugins
/
acl
/
acl.c
diff --git
a/src/plugins/acl/acl.c
b/src/plugins/acl/acl.c
index
d95e798
..
f715684
100644
(file)
--- a/
src/plugins/acl/acl.c
+++ b/
src/plugins/acl/acl.c
@@
-3936,7
+3936,7
@@
acl_show_aclplugin_tables_fn (vlib_main_t * vm,
clib_error_t *error = 0;
u32 acl_index = ~0;
clib_error_t *error = 0;
u32 acl_index = ~0;
- u32
sw_if
_index = ~0;
+ u32
lc
_index = ~0;
int show_acl_hash_info = 0;
int show_applied_info = 0;
int show_mask_type = 0;
int show_acl_hash_info = 0;
int show_applied_info = 0;
int show_mask_type = 0;
@@
-3953,7
+3953,7
@@
acl_show_aclplugin_tables_fn (vlib_main_t * vm,
else if (unformat (input, "applied"))
{
show_applied_info = 1;
else if (unformat (input, "applied"))
{
show_applied_info = 1;
- unformat (input, "
sw_if_index %u", &sw_if
_index);
+ unformat (input, "
lc_index %u", &lc
_index);
}
else if (unformat (input, "mask"))
{
}
else if (unformat (input, "mask"))
{
@@
-3980,7
+3980,7
@@
acl_show_aclplugin_tables_fn (vlib_main_t * vm,
if (show_acl_hash_info)
acl_plugin_show_tables_acl_hash_info (acl_index);
if (show_applied_info)
if (show_acl_hash_info)
acl_plugin_show_tables_acl_hash_info (acl_index);
if (show_applied_info)
- acl_plugin_show_tables_applied_info (
sw_if
_index);
+ acl_plugin_show_tables_applied_info (
lc
_index);
if (show_bihash)
acl_plugin_show_tables_bihash (show_bihash_verbose);
if (show_bihash)
acl_plugin_show_tables_bihash (show_bihash_verbose);
@@
-4049,7
+4049,7
@@
VLIB_CLI_COMMAND (aclplugin_show_sessions_command, static) = {
VLIB_CLI_COMMAND (aclplugin_show_tables_command, static) = {
.path = "show acl-plugin tables",
VLIB_CLI_COMMAND (aclplugin_show_tables_command, static) = {
.path = "show acl-plugin tables",
- .short_help = "show acl-plugin tables [ acl [index N] | applied [
sw_if
_index N ] | mask | hash [verbose N] ]",
+ .short_help = "show acl-plugin tables [ acl [index N] | applied [
lc
_index N ] | mask | hash [verbose N] ]",
.function = acl_show_aclplugin_tables_fn,
};
.function = acl_show_aclplugin_tables_fn,
};