commit | 6ebb36e564a189f026144e6acee753760a07e0a6 | [log] [tgz] |
---|---|---|
author | Michele Santuari <michele.santuari@create-net.org> | Mon Mar 28 10:12:04 2016 -0700 |
committer | Michele Santuari <michele.santuari@create-net.org> | Mon Mar 28 10:12:04 2016 -0700 |
tree | b550d738f7bf097d9e5ae0cfd1a615fa115c677a | |
parent | dce081580b74023e35d881bb330487dbc41af092 [diff] |
fix mastership Change-Id: I1f82bfed7ba98df492326c9c4a7be0764b3a6488
diff --git a/core/net/src/main/java/org/onosproject/cluster/impl/MastershipManager.java b/core/net/src/main/java/org/onosproject/cluster/impl/MastershipManager.java index 2a30108..f63aab1 100644 --- a/core/net/src/main/java/org/onosproject/cluster/impl/MastershipManager.java +++ b/core/net/src/main/java/org/onosproject/cluster/impl/MastershipManager.java
@@ -444,7 +444,7 @@ } // Create buckets reflecting current ownership. for (NodeId nodeId : masterSet) { - if (clusterService.getState(nodeId) == ACTIVE) { + if (clusterService.getState(nodeId).isActive()) { ControllerNode controllerNode = clusterService.getNode(nodeId); Set<DeviceId> devicesOf = new HashSet<>(allControllerDevices.get(controllerNode)); regionalControllerDevices.put(controllerNode, devicesOf);