- @Holding("this")
- protected final void setupConnection(final NodeId nodeId, final Node configNode) {
- final var netconfNode = configNode.augmentation(NetconfNode.class);
- final var nodeOptional = configNode.augmentation(NetconfNodeAugmentedOptional.class);
-
- // Instantiate the handler ...
- final var deviceId = NetconfNodeUtils.toRemoteDeviceId(nodeId, netconfNode);
- final var deviceSalFacade = createSalFacade(deviceId, netconfNode.requireLockDatastore());
- final var nodeHandler = new NetconfNodeHandler(clientDispatcher, eventExecutor, keepaliveExecutor,
- baseSchemas, schemaManager, processingExecutor, builderFactory, deviceActionFactory, deviceSalFacade,
- deviceId, nodeId, netconfNode, nodeOptional);
-
- // ... record it ...
- activeConnectors.put(nodeId, nodeHandler);
-
- // ... and start it
- nodeHandler.connect();
- }
-