Creating a new CLI to create loopback interfaces to make the interface

creation cli consistent

Change-Id: I72f074bb8c771511cb5203af6905adccefbb4197
Signed-off-by: Alpesh Patel <apatel9191@hotmail.com>
This commit is contained in:
Alpesh Patel
2016-04-08 07:27:37 -07:00
committed by Damjan Marion
parent b3e80947dc
commit 370a24e36e

View File

@ -412,6 +412,12 @@ VLIB_CLI_COMMAND (create_simulated_ethernet_interface_command, static) = {
.function = create_simulated_ethernet_interfaces,
};
VLIB_CLI_COMMAND (create_loopback_interface_command, static) = {
.path = "create loopback interface",
.short_help = "create loopback interface [mac <mac-addr>]",
.function = create_simulated_ethernet_interfaces,
};
ethernet_interface_t *
ethernet_get_interface (ethernet_main_t * em, u32 hw_if_index)
{