commit | b459cd2fae8f38a8dac11e0d81b0b1586781a2c5 | [log] [tgz] |
---|---|---|
author | Andrea Campanella <andrea@opennetworking.org> | Wed Jan 24 10:35:42 2018 +0100 |
committer | Ray Milkey <ray@opennetworking.org> | Thu Jan 25 14:49:31 2018 +0000 |
tree | 14242ee54bbbed36bf2c21908915e0120916cad1 | |
parent | 06d98abf51f9c40c39fd26c20f81e50601f78a73 [diff] |
Do not remove RestDevices when shutting down the RestDeviceProvider Change-Id: I080761af800ae60b3fe2d80d73425872c15f33fa
diff --git a/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java b/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java index 091dc34..b65f652 100644 --- a/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java +++ b/providers/rest/device/src/main/java/org/onosproject/provider/rest/device/impl/RestDeviceProvider.java
@@ -174,7 +174,6 @@ @Deactivate public void deactivate() { cfgService.removeListener(configListener); - controller.getDevices().keySet().forEach(this::deviceRemoved); providerRegistry.unregister(this); providerService = null; factories.forEach(cfgService::unregisterConfigFactory);