aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/tap/cli.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-01-30 13:36:02 +0100
committerDamjan Marion <dmarion@me.com>2020-01-30 20:27:56 +0000
commit3039753eda526e63d57a09debd3762e5590459df (patch)
tree06223ed901d145fbbf822c37540e9e714844840b /src/vnet/devices/tap/cli.c
parentffad890961b7a5809ba08b4ab1c54001d8fd06d3 (diff)
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>
Diffstat (limited to 'src/vnet/devices/tap/cli.c')
-rw-r--r--src/vnet/devices/tap/cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/devices/tap/cli.c b/src/vnet/devices/tap/cli.c
index 8d5e3b44e31..8d59210c293 100644
--- a/src/vnet/devices/tap/cli.c
+++ b/src/vnet/devices/tap/cli.c
@@ -57,7 +57,8 @@ tap_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
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))
;