tap: fix the host mac address
Tap configuration code sets the host mac address
two time. This patch fixes it.
Type: fix
Change-Id: I7bebb9b7f25352a8a9a98bae6a0636757c0cea9c
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
diff --git a/src/vnet/devices/tap/cli.c b/src/vnet/devices/tap/cli.c
index 8d5e3b4..8d59210 100644
--- a/src/vnet/devices/tap/cli.c
+++ b/src/vnet/devices/tap/cli.c
@@ -57,7 +57,8 @@
else if (unformat (line_input, "host-ns %s", &args.host_namespace))
;
else if (unformat (line_input, "host-mac-addr %U",
- unformat_ethernet_address, args.host_mac_addr))
+ unformat_ethernet_address,
+ args.host_mac_addr.bytes))
;
else if (unformat (line_input, "host-bridge %s", &args.host_bridge))
;