Search in sources :

Example 1 with NetconfTopologySetupBuilder

use of org.opendaylight.netconf.topology.singleton.impl.utils.NetconfTopologySetup.NetconfTopologySetupBuilder 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();
}
Also used : RemoteDeviceId(org.opendaylight.netconf.sal.connect.util.RemoteDeviceId) NetconfNode(org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode) NetconfTopologySetupBuilder(org.opendaylight.netconf.topology.singleton.impl.utils.NetconfTopologySetup.NetconfTopologySetupBuilder)

Aggregations

RemoteDeviceId (org.opendaylight.netconf.sal.connect.util.RemoteDeviceId)1 NetconfTopologySetupBuilder (org.opendaylight.netconf.topology.singleton.impl.utils.NetconfTopologySetup.NetconfTopologySetupBuilder)1 NetconfNode (org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode)1