From 2df39094d20ae60d2e04316f4ec058f81778cf64 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 4 Dec 2017 20:03:37 +0100 Subject: tapv2: multiple improvements - change interface naming scheme - rework netlink code - add option to set link address, namespace Change-Id: Icf667babb3077a07617b0b87c45c957e345cb4d1 Signed-off-by: Damjan Marion --- src/vpp/api/custom_dump.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/vpp') diff --git a/src/vpp/api/custom_dump.c b/src/vpp/api/custom_dump.c index a4d587075b0..c26d65adbe0 100644 --- a/src/vpp/api/custom_dump.c +++ b/src/vpp/api/custom_dump.c @@ -556,9 +556,15 @@ static void *vl_api_tap_create_v2_t_print memset (null_mac, 0, sizeof (null_mac)); s = format (0, "SCRIPT: tap_create_v2 "); - s = format (s, "name %s ", mp->tap_name); + s = format (s, "id %s ", mp->id); if (memcmp (mp->mac_address, null_mac, 6)) - s = format (s, "hw-addr %U ", format_ethernet_address, mp->mac_address); + s = format (s, "mac-address %U ", + format_ethernet_address, mp->mac_address); + if (memcmp (mp->host_mac_addr, null_mac, 6)) + s = format (s, "host-mac-addr %U ", + format_ethernet_address, mp->host_mac_addr); + if (mp->host_if_name_set) + s = format (s, "host-if-name %s ", mp->host_if_name); if (mp->host_namespace_set) s = format (s, "host-ns %s ", mp->host_namespace); if (mp->host_bridge_set) -- cgit 1.2.3-korg