summaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/l2/l2_input_acl.c39
-rw-r--r--vnet/vnet/l2/l2_output_acl.c3
2 files changed, 3 insertions, 39 deletions
diff --git a/vnet/vnet/l2/l2_input_acl.c b/vnet/vnet/l2/l2_input_acl.c
index 68c005f11de..d3038e8df1e 100644
--- a/vnet/vnet/l2/l2_input_acl.c
+++ b/vnet/vnet/l2/l2_input_acl.c
@@ -391,42 +391,3 @@ clib_error_t *l2_inacl_init (vlib_main_t *vm)
}
VLIB_INIT_FUNCTION (l2_inacl_init);
-
-
-// set subinterface inacl enable/disable
-// The CLI format is:
-// set interface acl input <interface> [disable]
-static clib_error_t *
-int_l2_inacl (vlib_main_t * vm,
- unformat_input_t * input,
- vlib_cli_command_t * cmd)
-{
- vnet_main_t * vnm = vnet_get_main();
- clib_error_t * error = 0;
- u32 sw_if_index;
- u32 enable;
-
- if (! unformat_user (input, unformat_vnet_sw_interface, vnm, &sw_if_index))
- {
- error = clib_error_return (0, "unknown interface `%U'",
- format_unformat_error, input);
- goto done;
- }
-
- enable = 1;
- if (unformat (input, "disable")) {
- enable = 0;
- }
-
- // set the interface flag
- l2input_intf_bitmap_enable(sw_if_index, L2INPUT_FEAT_ACL, enable);
-
- done:
- return error;
-}
-
-VLIB_CLI_COMMAND (int_l2_inacl_cli, static) = {
- .path = "set interface acl input",
- .short_help = "set interface acl input <interface> [disable]",
- .function = int_l2_inacl,
-};
diff --git a/vnet/vnet/l2/l2_output_acl.c b/vnet/vnet/l2/l2_output_acl.c
index b222255f47e..cf6be97412a 100644
--- a/vnet/vnet/l2/l2_output_acl.c
+++ b/vnet/vnet/l2/l2_output_acl.c
@@ -298,6 +298,8 @@ clib_error_t *l2_outacl_init (vlib_main_t *vm)
VLIB_INIT_FUNCTION (l2_outacl_init);
+#if 0
+/** @todo maybe someone will add output ACL's in the future */
// set subinterface outacl enable/disable
// The CLI format is:
// set interface acl output <interface> [disable]
@@ -335,3 +337,4 @@ VLIB_CLI_COMMAND (int_l2_outacl_cli, static) = {
.short_help = "set interface acl output <interface> [disable]",
.function = int_l2_outacl,
};
+#endif