From: Justin Pettit Date: Tue, 4 Dec 2012 03:05:08 +0000 (-0800) Subject: bridge: Set mac address when no physical ports attached. X-Git-Tag: sliver-openvswitch-1.9.90-3~10^2~125 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=51b67a1038c6f4984cf01f2973366cc44c266b08;p=sliver-openvswitch.git 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 --- 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); }