Propagate reconnectOnSchemasChanged flag to ClusteredNetconfDevice 56/40456/1
authorRyan Goulding <ryandgoulding@gmail.com>
Thu, 16 Jun 2016 17:04:07 +0000 (13:04 -0400)
committerRyan Goulding <ryandgoulding@gmail.com>
Thu, 16 Jun 2016 17:05:29 +0000 (13:05 -0400)
Currently, the "reconnectOnSchemasChanged" is not propagated to
ClusteredNetconfDevice.  This change propagates the value so it
may be used in setting up the NetconfDevice.

Change-Id: If59d5a91cbb8cad4ab26640b8c474a82113ac5cf
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/impl/ClusteredNetconfTopology.java
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/pipeline/ClusteredNetconfDevice.java

index 1612c7d9fccb23af2e7238145a91d232bc722772..3976281b97ecbe4705a1231adfcaa120f777fd92 100644 (file)
@@ -159,7 +159,8 @@ public class ClusteredNetconfTopology extends AbstractNetconfTopology implements
         final NetconfDevice.SchemaResourcesDTO schemaResourcesDTO = setupSchemaCacheDTO(nodeId, node);
 
         final NetconfDevice device = new ClusteredNetconfDevice(schemaResourcesDTO, remoteDeviceId, salFacade,
-                processingExecutor.getExecutor(), actorSystem, topologyId, nodeId.getValue(), TypedActor.context());
+                processingExecutor.getExecutor(), actorSystem, topologyId, nodeId.getValue(), TypedActor.context(),
+                reconnectOnChangedSchema);
 
         return new NetconfConnectorDTO(new ClusteredNetconfDeviceCommunicator(remoteDeviceId, device, entityOwnershipService), salFacade);
     }
index 0710769c8c9ead597add94654853b772e1ab78cc..cf0a8577ba17026132defc29606561f6f447ffbd 100644 (file)
@@ -61,8 +61,8 @@ public class ClusteredNetconfDevice extends NetconfDevice implements EntityOwner
 
     public ClusteredNetconfDevice(final SchemaResourcesDTO schemaResourcesDTO, final RemoteDeviceId id, final RemoteDeviceHandler<NetconfSessionPreferences> salFacade,
                                   final ExecutorService globalProcessingExecutor, final ActorSystem actorSystem, final String topologyId, final String nodeId,
-                                  ActorContext cachedContext) {
-        super(schemaResourcesDTO, id, salFacade, globalProcessingExecutor, false);
+                                  final ActorContext cachedContext, final boolean reconnectOnSchemaChanged) {
+        super(schemaResourcesDTO, id, salFacade, globalProcessingExecutor, reconnectOnSchemaChanged);
         this.schemaRepo = (SchemaRepository) schemaResourcesDTO.getSchemaRegistry();
         this.actorSystem = actorSystem;
         this.topologyId = topologyId;