commit | 8ac0247267b705340f4110b5853d2fbac6a010d6 | [log] [tgz] |
---|---|---|
author | Jordan Halterman <jordan@opennetworking.org> | Fri Jan 04 12:45:57 2019 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Tue Jan 08 19:54:40 2019 +0000 |
tree | 056a1d7b314fe7e0fed84c54c68ad37b0f9a64b6 | |
parent | fd93b4a6f89d055aa66d350a2c6ec39be23ac38f [diff] |
Ensure devices are marked online during mastership check Change-Id: I421739d14d7fe71821ac3c0c6c3002d93ee58527
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 513e648..31ab8f8 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; }