From: Giovanni Meo Date: Sun, 26 Jan 2014 23:03:38 +0000 (+0000) Subject: Merge "Self assign controller MAC when cannot retrieve one from host" X-Git-Tag: jenkins-controller-bulk-release-prepare-only-2-11~4 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=9f822b0960eb0cf92966ca3df666b714158e3ab2;hp=e2ae7bd2fc1f56cbb1b7a242e061dfb25b5fda63 Merge "Self assign controller MAC when cannot retrieve one from host" --- diff --git a/opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java b/opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java index 674da37afb..d8e6a7412f 100644 --- a/opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java +++ b/opendaylight/switchmanager/implementation/src/main/java/org/opendaylight/controller/switchmanager/internal/SwitchManager.java @@ -1436,7 +1436,10 @@ public class SwitchManager implements ISwitchManager, IConfigurationContainerAwa if (macAddress == null) { log.warn("Failed to acquire controller MAC: No physical interface found"); // This happens when running controller on windows VM, for example - // Try parsing the OS command output + // TODO: Try parsing the OS command output + // For now provide a quick fix for the release + macAddress = new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x0c, (byte) 0x60, (byte) 0x0D, (byte) 0x10 }; + log.debug("Assigning custom MAC address to controller"); } return macAddress; }