tom

Changed deviceConnected signature.

package org.onlab.onos.net.device;
import org.onlab.onos.net.DeviceId;
import org.onlab.onos.net.MastershipRole;
import org.onlab.onos.net.provider.ProviderService;
import java.util.List;
......@@ -18,9 +17,8 @@ public interface DeviceProviderService extends ProviderService<DeviceProvider> {
* Signals the core that a device has connected or has been detected somehow.
*
* @param deviceDescription information about network device
* @return mastership role chosen by the provider service
*/
MastershipRole deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription);
void deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription);
/**
* Signals the core that a device has disconnected or is no longer reachable.
......
......@@ -120,13 +120,12 @@ public class SimpleDeviceManager
}
@Override
public MastershipRole deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription) {
public void deviceConnected(DeviceId deviceId, DeviceDescription deviceDescription) {
checkNotNull(deviceId, DEVICE_ID_NULL);
checkNotNull(deviceDescription, DEVICE_DESCRIPTION_NULL);
log.info("Device {} connected: {}", deviceId, deviceDescription);
DeviceEvent event = store.createOrUpdateDevice(deviceId, deviceDescription);
post(event);
return MastershipRole.MASTER;
}
@Override
......