commit | 368bd3d646941ea03458e2e7a56b07021e9df523 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Fri Jan 04 12:45:57 2019 -0800 |
committer | Carmelo Cascone <carmelo@opennetworking.org> | Tue Feb 26 23:03:16 2019 +0000 |
tree | aebbbbd66c7fc5856d6cb41fd43907c5157ab98e | |
parent | fd9be7edbde1985675865c85d90b7fe782f8f148 [diff] |
Ensure devices are marked online during mastership check Change-Id: I421739d14d7fe71821ac3c0c6c3002d93ee58527 (cherry picked from commit 8ac0247267b705340f4110b5853d2fbac6a010d6)
diff --git a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java index 0f0069e..6ce7c0c 100644 --- a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java +++ b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java
@@ -498,6 +498,11 @@ continue; } + // If this node is the master, ensure the device is marked online. + if (myRole == MASTER) { + post(store.markOnline(deviceId)); + } + if (myRole != NONE) { continue; }