mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 02:41:49 +02:00
DistributedDeviceStore doesn't automatically set role to MASTER
Change-Id: I106e1d8e84fb6331e71727907bae6c4ef232d382
This commit is contained in:
parent
09585c6272
commit
f6021f3044
@ -171,8 +171,8 @@ public class DistributedDeviceStore extends AbstractDistributedStore
|
|||||||
availableDevices.add(deviceIdBytes);
|
availableDevices.add(deviceIdBytes);
|
||||||
|
|
||||||
// For now claim the device as a master automatically.
|
// For now claim the device as a master automatically.
|
||||||
rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER));
|
//rawRoles.put(deviceIdBytes, serialize(MastershipRole.MASTER));
|
||||||
roles.put(deviceId, Optional.of(MastershipRole.MASTER));
|
//roles.put(deviceId, Optional.of(MastershipRole.MASTER));
|
||||||
}
|
}
|
||||||
return new DeviceEvent(DeviceEvent.Type.DEVICE_ADDED, device, null);
|
return new DeviceEvent(DeviceEvent.Type.DEVICE_ADDED, device, null);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user