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 <jpet...@nicira.com>

Issue #14126
---
 vswitchd/bridge.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 28d2f19..b1d2feb 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);
 }
 
-- 
1.7.5.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to