alshabib
Committed by Gerrit Code Review

Devices should not be disconnected when an instance shuts down.

Change-Id: I0864c1f79b52e021c4ebbcd3a5bdb3eb7c3f1614
......@@ -109,9 +109,6 @@ public class OpenFlowDeviceProvider extends AbstractProvider implements DevicePr
@Deactivate
public void deactivate() {
for (OpenFlowSwitch sw : controller.getSwitches()) {
providerService.deviceDisconnected(DeviceId.deviceId(uri(sw.getId())));
}
providerRegistry.unregister(this);
controller.removeListener(listener);
providerService = null;
......
......@@ -97,7 +97,6 @@ public class OpenFlowDeviceProviderTest {
@After
public void tearDown() {
provider.deactivate();
assertTrue("devices should be removed", registry.connected.isEmpty());
assertNull("listener should be removed", controller.listener);
provider.controller = null;
provider.providerRegistry = null;
......