diff options
author | Pierre Pfister <ppfister@cisco.com> | 2016-05-23 12:51:54 +0100 |
---|---|---|
committer | Chris Luke <chris_luke@cable.comcast.com> | 2016-05-23 14:46:13 +0000 |
commit | 78ea9c2869967693b77949ec154deef6340d01f5 (patch) | |
tree | 9c6d53c885c230a8bcf5b945e6f0a3e061095161 /vnet/vnet/interface_cli.c | |
parent | 53f09e36f97a28a42a2e3eb58032c75691de4f4c (diff) |
VPP-81: Print interface name after creating an interface with CLI
When the CLI is used to create an interface, and whend the operation
succeeds, the newly created interface name is printed-out.
The patch includes the following interfaces types:
- AF_PACKET
- Vhost User
- Netmap
- GRE
- L2TP
- MPLS-GRE
- Loopback
Change-Id: Id518c139ec63a261eae81d2ed95c4cd1f10b5157
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet/vnet/interface_cli.c')
-rw-r--r-- | vnet/vnet/interface_cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/interface_cli.c b/vnet/vnet/interface_cli.c index 13a7d8cffd9..d0d75154349 100644 --- a/vnet/vnet/interface_cli.c +++ b/vnet/vnet/interface_cli.c @@ -608,6 +608,7 @@ create_sub_interfaces (vlib_main_t * vm, if (error) goto done; hash_set (hi->sub_interface_sw_if_index_by_id, id, sw_if_index); hash_set_mem (im->sw_if_index_by_sup_and_sub, kp, sw_if_index); + vlib_cli_output(vm, "%U\n", format_vnet_sw_if_index_name, vnet_get_main(), sw_if_index); } if (error) |