Creating a new CLI to create loopback interfaces to make the interface 15/715/2
authorAlpesh Patel <apatel9191@hotmail.com>
Fri, 8 Apr 2016 14:27:37 +0000 (07:27 -0700)
committerDamjan Marion <damarion@cisco.com>
Tue, 12 Apr 2016 14:01:40 +0000 (16:01 +0200)
creation cli consistent

Change-Id: I72f074bb8c771511cb5203af6905adccefbb4197
Signed-off-by: Alpesh Patel <apatel9191@hotmail.com>
vnet/vnet/ethernet/interface.c

index 429530e..8fa2dfa 100644 (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)
 {