use of org.opendaylight.netconf.sal.connect.util.RemoteDeviceId in project netconf by opendaylight.
the class NetconfTopologyManager method createSetup.
private NetconfTopologySetup createSetup(final InstanceIdentifier<Node> instanceIdentifier, final Node node) {
final NetconfNode netconfNode = node.augmentation(NetconfNode.class);
final RemoteDeviceId deviceId = NetconfTopologyUtils.createRemoteDeviceId(node.getNodeId(), netconfNode);
final NetconfTopologySetupBuilder builder = NetconfTopologySetupBuilder.create().setClusterSingletonServiceProvider(clusterSingletonServiceProvider).setBaseSchemas(baseSchemas).setDataBroker(dataBroker).setInstanceIdentifier(instanceIdentifier).setRpcProviderRegistry(rpcProviderRegistry).setActionProviderRegistry(actionProviderRegistry).setNode(node).setActorSystem(actorSystem).setEventExecutor(eventExecutor).setKeepaliveExecutor(keepaliveExecutor).setProcessingExecutor(processingExecutor).setTopologyId(topologyId).setNetconfClientDispatcher(clientDispatcher).setSchemaResourceDTO(resourceManager.getSchemaResources(netconfNode, deviceId)).setIdleTimeout(writeTxIdleTimeout).setPrivateKeyPath(privateKeyPath).setPrivateKeyPassphrase(privateKeyPassphrase).setEncryptionService(encryptionService);
return builder.build();
}
Aggregations