- public static Node createNode(DeviceTransactionManager deviceTransactionManager, String deviceId,
- String openRoadmVersion) {
- //Read clli from the device
- InfoSubtree infoSubtree = new InfoSubtree(openRoadmVersion);
- String clli;
-
- if (infoSubtree.getDeviceInfo(deviceId,deviceTransactionManager)) {
-
- clli = infoSubtree.getClli();
- } else {
- LOG.info("Unable for get Info subtree from the device");
- return null;
- }
-
+ public static Node createNode(String deviceId, NodeInfo nodeInfo) {
+ String clli = nodeInfo.getNodeClli();