Andrea Campanella
Committed by Gerrit Code Review

Moving connectDevices() for Netconf and Rest in activate to executor

Change-Id: I545aa19dad8f6c0f4d429052214e8d9df569a059
......@@ -118,7 +118,7 @@ public class NetconfDeviceProvider extends AbstractProvider
cfgService.registerConfigFactory(factory);
cfgService.addListener(cfgLister);
controller.addDeviceListener(innerNodeListener);
connectDevices();
executor.execute(NetconfDeviceProvider.this::connectDevices);
log.info("Started");
}
......
......@@ -130,7 +130,7 @@ public class RestDeviceProvider extends AbstractProvider
providerService = providerRegistry.register(this);
cfgService.registerConfigFactory(factory);
cfgService.addListener(cfgLister);
connectDevices();
executor.execute(RestDeviceProvider.this::connectDevices);
log.info("Started");
}
......