aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorAlpesh Patel <apatel9191@hotmail.com>2016-04-08 07:27:37 -0700
committerDamjan Marion <damarion@cisco.com>2016-04-12 16:01:40 +0200
commit370a24e36e7f32df66cfca2fb03214c93d164d64 (patch)
tree7fc6d5804e35449cab8620caeb18a240900a11ab /vnet
parentb3e80947dce184a922ab479dbab911a7709a60eb (diff)
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>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/ethernet/interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/interface.c b/vnet/vnet/ethernet/interface.c
index 429530e18ad..8fa2dfa6d73 100644
--- a/vnet/vnet/ethernet/interface.c
+++ b/vnet/vnet/ethernet/interface.c
@@ -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)
{