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/devices/dpdk/vhost_user.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/devices/dpdk/vhost_user.c')
-rw-r--r-- | vnet/vnet/devices/dpdk/vhost_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/devices/dpdk/vhost_user.c b/vnet/vnet/devices/dpdk/vhost_user.c index 9bf76741588..a461d3907eb 100644 --- a/vnet/vnet/devices/dpdk/vhost_user.c +++ b/vnet/vnet/devices/dpdk/vhost_user.c @@ -1702,6 +1702,7 @@ dpdk_vhost_user_connect_command_fn (vlib_main_t * vm, renumber, custom_dev_instance, hw); vec_free(sock_filename); + vlib_cli_output(vm, "%U\n", format_vnet_sw_if_index_name, vnet_get_main(), sw_if_index); return 0; } |