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);