Make reconnect on capability changed truly optional 95/15495/3
authorMaros Marsalek <mmarsale@cisco.com>
Thu, 19 Feb 2015 12:53:08 +0000 (13:53 +0100)
committerMaros Marsalek <mmarsale@cisco.com>
Fri, 20 Feb 2015 09:47:09 +0000 (10:47 +0100)
There was true by default hardcoded in the code ignoring configuration

Change-Id: If6d8acdfba350eaed65e660c7b9e994751e9ddf7
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/config/yang/md/sal/connector/netconf/NetconfConnectorModule.java

index b966fae3d4e458f55796fbc0e6e26213b093bd83..44b2435da2284358b4a2ed13cbb6e699e23f2115 100644 (file)
@@ -111,7 +111,7 @@ public final class NetconfConnectorModule extends org.opendaylight.controller.co
                 new NetconfDevice.SchemaResourcesDTO(schemaRegistry, schemaContextFactory, new NetconfStateSchemas.NetconfStateSchemasResolverImpl());
 
         final NetconfDevice device =
-                new NetconfDevice(schemaResourcesDTO, id, salFacade, globalProcessingExecutor, new NetconfMessageTransformer(), true);
+                new NetconfDevice(schemaResourcesDTO, id, salFacade, globalProcessingExecutor, new NetconfMessageTransformer(), getReconnectOnChangedSchema());
 
         final NetconfDeviceCommunicator listener = userCapabilities.isPresent() ?
                 new NetconfDeviceCommunicator(id, device, userCapabilities.get()) : new NetconfDeviceCommunicator(id, device);