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 /vpp | |
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 'vpp')
-rw-r--r-- | vpp/api/api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpp/api/api.c b/vpp/api/api.c index 3b56d1c3..3bf2ed47 100644 --- a/vpp/api/api.c +++ b/vpp/api/api.c @@ -5930,7 +5930,7 @@ vl_api_af_packet_create_t_handler vec_add1 (host_if_name, 0); rv = af_packet_create_if(vm, host_if_name, - mp->use_random_hw_addr ? 0 : mp->hw_addr); + mp->use_random_hw_addr ? 0 : mp->hw_addr, 0); vec_free(host_if_name); @@ -6077,7 +6077,7 @@ vl_api_netmap_create_t_handler vec_add1 (if_name, 0); rv = netmap_create_if(vm, if_name, mp->use_random_hw_addr ? 0 : mp->hw_addr, - mp->is_pipe, mp->is_master); + mp->is_pipe, mp->is_master, 0); vec_free(if_name); |