mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-17 02:11:38 +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);
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user