From 51b67a1038c6f4984cf01f2973366cc44c266b08 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 3 Dec 2012 19:05:08 -0800 Subject: [PATCH] bridge: Set mac address when no physical ports attached. Commit 1a8cfb41(bridge: Drop warning about thedefault bridge Ethernet address.) attempted to reduce unnecessary logging, but deleted some code that was necessary to set the mac address on local ports when no physical ports were attached. Signed-off-by: Justin Pettit Issue #14126 --- vswitchd/bridge.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 28d2f196c..b1d2feb05 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1608,6 +1608,11 @@ bridge_pick_local_hw_addr(struct bridge *br, uint8_t ea[ETH_ADDR_LEN], } } + if (!found_addr) { + memcpy(ea, br->default_ea, ETH_ADDR_LEN); + *hw_addr_iface = NULL; + } + hmapx_destroy(&mirror_output_ports); } -- 2.47.0