commit | f6021f304423be0eb0a3630e0be424bee3a5f6cc | [log] [tgz] |
---|---|---|
author | Ayaka Koshibe <ayaka@onlab.us> | Wed Sep 24 09:40:47 2014 -0700 |
committer | Ayaka Koshibe <ayaka@onlab.us> | Wed Sep 24 09:40:47 2014 -0700 |
tree | ab835fcefa0536aaf465e1516024cc97dc27121d | |
parent | 09585c6272a7a3795453aa91f57f63b5e12d5771 [diff] |
DistributedDeviceStore doesn't automatically set role to MASTER Change-Id: I106e1d8e84fb6331e71727907bae6c4ef232d382
diff --git a/core/store/src/main/java/org/onlab/onos/store/device/impl/DistributedDeviceStore.java b/core/store/src/main/java/org/onlab/onos/store/device/impl/DistributedDeviceStore.java index 7dd827e..631c6aa 100644 --- a/core/store/src/main/java/org/onlab/onos/store/device/impl/DistributedDeviceStore.java +++ b/core/store/src/main/java/org/onlab/onos/store/device/impl/DistributedDeviceStore.java
@@ -171,8 +171,8 @@ availableDevices.add(deviceIdBytes); // For now claim the device as a master automatically. - rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER)); - roles.put(deviceId, Optional.of(MastershipRole.MASTER)); + //rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER)); + //roles.put(deviceId, Optional.of(MastershipRole.MASTER)); } return new DeviceEvent(DeviceEvent.Type.DEVICE_ADDED, device, null); }