Go to the source code of this file.
Definition at line 83 of file l2e.c.
void l2_emulation_disable |
( |
u32 |
sw_if_index | ) |
|
Definition at line 53 of file l2e.c.
void l2_emulation_enable |
( |
u32 |
sw_if_index | ) |
|
L2 Emulation is a feautre that is applied to L2 ports to 'extract' IP packets from the L2 path and inject them into the L3 path (i.e.
into the appropriate ip[4|6]_input node). L3 routes in the table_id for that interface should then be configured as DVR routes, therefore the forwarded packet has the L2 header preserved and togehter the L3 routed system behaves like an L2 bridge.
Definition at line 31 of file l2e.c.
Definition at line 68 of file l2e.c.
A zero'd out struct we can use in the vec_validate.
Definition at line 28 of file l2e.c.
Initial value:= {
.path = "set interface l2 l2-emulation",
.short_help =
"set interface l2 l2-emulation <interface-name> [disable|enable]\n",
}
static clib_error_t * l2_emulation_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_emulation_cli_node)
Definition at line 124 of file l2e.c.
Definition at line 23 of file l2e.c.
Initial value:= {
.path = "show interface l2 l2-emulation",
.short_help = "show interface l2 l2-emulation\n",
}
static clib_error_t * l2_emulation_show(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_emulation_show_node)
Definition at line 163 of file l2e.c.