@Test public void testUpdateCliExecutionSequence() throws Exception { User user = mock(User.class); VirtualNetwork virtualNetwork = mock(VirtualNetwork.class); UserIntentVnMapping userIntentVnMapping = mock(UserIntentVnMapping.class); UserVnPnMapping userVnPnMapping = mock(UserVnPnMapping.class); PhysicalNetwork physicalNetwork = mock(PhysicalNetwork.class); Objects objects = mock(Objects.class); Connection connection = mock(Connection.class); EndNode endnode = mock(EndNode.class); EndNode endnode1 = mock(EndNode.class); NodeId nodeId = mock(NodeId.class); NodeId nodeId1 = mock(NodeId.class); Node node = mock(Node.class); NodeType nodeType = mock(NodeType.class); IntentVnMappingResult intentVnMappingResult = mock(IntentVnMappingResult.class); IntentId intentId = mock(IntentId.class); VirtualResource virtualResource = mock(VirtualResource.class); VnPnMappingResult vnPnMappingResult = mock(VnPnMappingResult.class); VirtualResourceType virtualResourceType = VirtualResource.VirtualResourceType.Vport; VirtualResourceEntityId virtualResourceEntityId = mock(VirtualResourceEntityId.class); PhysicalResourceEntityId physicalResourceEntityId = mock(PhysicalResourceEntityId.class); PhysicalResourceEntityId physicalResourceEntityId_parent = mock(PhysicalResourceEntityId.class); PhysicalPaths physicalPaths = mock(PhysicalPaths.class); PhysicalPath physicalPath = mock(PhysicalPath.class); PhysicalLink physicalLink = mock(PhysicalLink.class); PhysicalLinkId physicalLinkId = mock(PhysicalLinkId.class); PhysicalLinkId physicalLinkId1 = mock(PhysicalLinkId.class); PhysicalLinks physicalLinksInNetwork = mock(PhysicalLinks.class); PhysicalNodeId physicalNodeId_src = mock(PhysicalNodeId.class); PhysicalNodeId physicalNodeId_dst = mock(PhysicalNodeId.class); org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.path.instance.PhysicalLink physicalLink_special = mock(org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.path.instance.PhysicalLink.class); org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.path.instance.PhysicalLink physicalLink_special1 = mock(org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.path.instance.PhysicalLink.class); org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.network.physical.links .PhysicalLink physicalLink_getSrcNodeIdforLinkInPath = mock(org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.network.physical.links .PhysicalLink.class); List<PhysicalLink> physicalLinkList = new ArrayList<PhysicalLink>(); List<Connection> connectionList = new ArrayList<Connection>(); List<EndNode> endNodeList = new ArrayList<EndNode>(); List<Node> nodeList = new ArrayList<Node>(); List<IntentVnMappingResult> intentVnMappingResults = new ArrayList<IntentVnMappingResult>(); List<VirtualResource> virtualResources = new ArrayList<VirtualResource>(); List<VnPnMappingResult> vnPnMappingResults = new ArrayList<VnPnMappingResult>(); List<PhysicalPath> physicalPathList = new ArrayList<PhysicalPath>(); List< org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.path.instance.PhysicalLink> physicalLinks = new ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.physical.network.rev151010.physical.path.instance.PhysicalLink>(); List<org.opendaylight.yang.gen.v1.urn.opendaylight.params .xml.ns.yang.generic.physical.network.rev151010 .physical.network.physical.links.PhysicalLink> physicalLinksInNetworkList = new ArrayList<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.physical.network.rev151010.physical.network.physical.links.PhysicalLink>(); intentVnMappingResults.add(intentVnMappingResult); connectionList.add(connection); endNodeList.add(endnode); nodeList.add(node); virtualResources.add(virtualResource); vnPnMappingResults.add(vnPnMappingResult); physicalPathList.add(physicalPath); physicalLinkList.add(physicalLink); physicalLinks.add(physicalLink_special); physicalLinks.add(physicalLink_special1); physicalLinksInNetworkList.add(physicalLink_getSrcNodeIdforLinkInPath); when(user.getObjects()) .thenReturn(null) .thenReturn(objects) .thenReturn(objects) .thenReturn(objects); cliBuilder.updateCliExecutionSequence(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); verify(user).getObjects(); when(objects.getConnection()).thenReturn(connectionList); when(connection.getEndNode()) .thenReturn(endNodeList) .thenReturn(endNodeList); when(endnode.getNodeId()).thenReturn(nodeId); when(endnode1.getNodeId()).thenReturn(nodeId1); when(objects.getNode()).thenReturn(nodeList); when(node.getNodeId()).thenReturn(nodeId); when(node.getNodeType()).thenReturn(nodeType); when(nodeType.getValue()) .thenReturn(new String("null")) .thenReturn(new String("ext-group")); endNodeList.add(endnode1); Assert.assertTrue(endNodeList.size() == 2); Assert.assertTrue(endNodeList.get(1) == endnode1 && endNodeList.get(0) == endnode); cliBuilder.updateCliExecutionSequence(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); verify(nodeType).getValue(); when(userIntentVnMapping.getIntentVnMappingResult()).thenReturn(intentVnMappingResults); when(intentVnMappingResult.getIntentId()).thenReturn(intentId); when(nodeId.getValue()).thenReturn(new String("test")); when(intentId.getValue()).thenReturn(new String("test")); when(intentVnMappingResult.getVirtualResource()).thenReturn(virtualResources); when(virtualResource.getVirtualResourceType()).thenReturn(virtualResourceType); when(userVnPnMapping.getVnPnMappingResult()).thenReturn(vnPnMappingResults); when(vnPnMappingResult.getVirtualResourceEntityId()).thenReturn(virtualResourceEntityId); when(virtualResource.getVirtualResourceEntityId()).thenReturn(virtualResourceEntityId); when(virtualResourceEntityId.getValue()).thenReturn(new String("test")); when(vnPnMappingResult.getPhysicalResourceEntityId()).thenReturn(physicalResourceEntityId); when(physicalResourceEntityId.getValue()).thenReturn(new String("test")); when(vnPnMappingResult.getParentPhysicalResourceEntityId()).thenReturn(physicalResourceEntityId_parent); when(physicalResourceEntityId_parent.getValue()).thenReturn(new String("test")); when(nodeId1.getValue()).thenReturn(new String("test")); when(physicalNetwork.getPhysicalPaths()).thenReturn(physicalPaths); when(physicalPaths.getPhysicalPath()) .thenReturn(null) .thenReturn(physicalPathList); cliBuilder.updateCliExecutionSequence(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); when(physicalPath.getPhysicalLink()) .thenReturn(physicalLinkList) .thenReturn(physicalLinkList) .thenReturn(physicalLinks); Assert.assertTrue(physicalLinkList.size() == 1); when(physicalLink_special.getLinkId()).thenReturn(physicalLinkId); when(physicalLink_special1.getLinkId()).thenReturn(physicalLinkId1); PhysicalLinkId physicalLinkId_getSrcNodeIdforLinkInPath = mock(PhysicalLinkId.class); when(physicalNetwork.getPhysicalLinks()).thenReturn(physicalLinksInNetwork); when(physicalLinksInNetwork.getPhysicalLink()).thenReturn(physicalLinksInNetworkList); when(physicalLink_getSrcNodeIdforLinkInPath.getLinkId()).thenReturn(physicalLinkId_getSrcNodeIdforLinkInPath); when(physicalLinkId_getSrcNodeIdforLinkInPath.getValue()).thenReturn(new String("test")); when(physicalLinkId.getValue()).thenReturn(new String("test")); when(physicalLink_getSrcNodeIdforLinkInPath.getSrcNodeId()).thenReturn(physicalNodeId_src); when(physicalLinkId1.getValue()).thenReturn(new String("test")); when(physicalLink_getSrcNodeIdforLinkInPath.getDestNodeId()).thenReturn(physicalNodeId_dst); when(physicalNodeId_src.getValue()).thenReturn(new String("test1")); when(physicalNodeId_dst.getValue()).thenReturn(new String("test")); cliBuilder.updateCliExecutionSequence(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); }
public void updateCliExecutionSequence(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { LOG.info("CliBuilder is updating cli execution sequences."); System.out.println(); System.out.println("CliBuilder is updating cli execution sequences."); System.out.println(); List<List<ConfigElementForConnection>> peersList = new ArrayList<List<ConfigElementForConnection>>(); if(user.getObjects() != null) { List<Connection> connectionList = user.getObjects().getConnection(); System.out.println("connection size = "+connectionList.size()); for(Connection connection: connectionList){ List<EndNode> endNodeList = connection.getEndNode(); if( isConnectTwoExtGroup(connection, user) == Boolean.TRUE ){ ConnectionId connectionId = connection.getConnectionId(); NodeId oneNodeId = endNodeList.get(0).getNodeId(); NodeId otherNodeId = endNodeList.get(1).getNodeId(); PhysicalPortId onePhysicalPortId = null; PhysicalPortId otherPhysicalPortId = null; PhysicalNodeId onePhysicalNodeId = null; PhysicalNodeId otherPhysicalNodeId = null; PhysicalPath physicalPathforConnection = null; List<ConfigElementForConnection> configElementListForConnection = new ArrayList<ConfigElementForConnection>(); VnPnMappingResult vnPnMappingResultforOneNode = getNodeVnPnMappingResult(oneNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOneNode != null) { onePhysicalPortId = new PhysicalPortId( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); onePhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); } VnPnMappingResult vnPnMappingResultforOtherNode = getNodeVnPnMappingResult(otherNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOtherNode != null) { otherPhysicalPortId = new PhysicalPortId( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); otherPhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); } physicalPathforConnection = getPhysicalPathforConnection( onePhysicalNodeId, otherPhysicalNodeId, physicalNetwork ); if(physicalPathforConnection != null){ configElementListForConnection = getConfigElementListForConnection(physicalPathforConnection, physicalNetwork, onePhysicalPortId, otherPhysicalPortId); List<ConfigElementForConnection> peersOfPEs = getPeersOfPEs(configElementListForConnection); peersList.add(peersOfPEs); } } } if(isFullMeshTopology(peersList) == Boolean.TRUE){ buildFullMeshVPN(peersList); } } }
CliBuilder implements AutoCloseable { public void updateCliExecutionSequence(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { LOG.info("CliBuilder is updating cli execution sequences."); System.out.println(); System.out.println("CliBuilder is updating cli execution sequences."); System.out.println(); List<List<ConfigElementForConnection>> peersList = new ArrayList<List<ConfigElementForConnection>>(); if(user.getObjects() != null) { List<Connection> connectionList = user.getObjects().getConnection(); System.out.println("connection size = "+connectionList.size()); for(Connection connection: connectionList){ List<EndNode> endNodeList = connection.getEndNode(); if( isConnectTwoExtGroup(connection, user) == Boolean.TRUE ){ ConnectionId connectionId = connection.getConnectionId(); NodeId oneNodeId = endNodeList.get(0).getNodeId(); NodeId otherNodeId = endNodeList.get(1).getNodeId(); PhysicalPortId onePhysicalPortId = null; PhysicalPortId otherPhysicalPortId = null; PhysicalNodeId onePhysicalNodeId = null; PhysicalNodeId otherPhysicalNodeId = null; PhysicalPath physicalPathforConnection = null; List<ConfigElementForConnection> configElementListForConnection = new ArrayList<ConfigElementForConnection>(); VnPnMappingResult vnPnMappingResultforOneNode = getNodeVnPnMappingResult(oneNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOneNode != null) { onePhysicalPortId = new PhysicalPortId( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); onePhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); } VnPnMappingResult vnPnMappingResultforOtherNode = getNodeVnPnMappingResult(otherNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOtherNode != null) { otherPhysicalPortId = new PhysicalPortId( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); otherPhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); } physicalPathforConnection = getPhysicalPathforConnection( onePhysicalNodeId, otherPhysicalNodeId, physicalNetwork ); if(physicalPathforConnection != null){ configElementListForConnection = getConfigElementListForConnection(physicalPathforConnection, physicalNetwork, onePhysicalPortId, otherPhysicalPortId); List<ConfigElementForConnection> peersOfPEs = getPeersOfPEs(configElementListForConnection); peersList.add(peersOfPEs); } } } if(isFullMeshTopology(peersList) == Boolean.TRUE){ buildFullMeshVPN(peersList); } } } }
CliBuilder implements AutoCloseable { public void updateCliExecutionSequence(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { LOG.info("CliBuilder is updating cli execution sequences."); System.out.println(); System.out.println("CliBuilder is updating cli execution sequences."); System.out.println(); List<List<ConfigElementForConnection>> peersList = new ArrayList<List<ConfigElementForConnection>>(); if(user.getObjects() != null) { List<Connection> connectionList = user.getObjects().getConnection(); System.out.println("connection size = "+connectionList.size()); for(Connection connection: connectionList){ List<EndNode> endNodeList = connection.getEndNode(); if( isConnectTwoExtGroup(connection, user) == Boolean.TRUE ){ ConnectionId connectionId = connection.getConnectionId(); NodeId oneNodeId = endNodeList.get(0).getNodeId(); NodeId otherNodeId = endNodeList.get(1).getNodeId(); PhysicalPortId onePhysicalPortId = null; PhysicalPortId otherPhysicalPortId = null; PhysicalNodeId onePhysicalNodeId = null; PhysicalNodeId otherPhysicalNodeId = null; PhysicalPath physicalPathforConnection = null; List<ConfigElementForConnection> configElementListForConnection = new ArrayList<ConfigElementForConnection>(); VnPnMappingResult vnPnMappingResultforOneNode = getNodeVnPnMappingResult(oneNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOneNode != null) { onePhysicalPortId = new PhysicalPortId( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); onePhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); } VnPnMappingResult vnPnMappingResultforOtherNode = getNodeVnPnMappingResult(otherNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOtherNode != null) { otherPhysicalPortId = new PhysicalPortId( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); otherPhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); } physicalPathforConnection = getPhysicalPathforConnection( onePhysicalNodeId, otherPhysicalNodeId, physicalNetwork ); if(physicalPathforConnection != null){ configElementListForConnection = getConfigElementListForConnection(physicalPathforConnection, physicalNetwork, onePhysicalPortId, otherPhysicalPortId); List<ConfigElementForConnection> peersOfPEs = getPeersOfPEs(configElementListForConnection); peersList.add(peersOfPEs); } } } if(isFullMeshTopology(peersList) == Boolean.TRUE){ buildFullMeshVPN(peersList); } } } CliBuilder(DataBroker dataProvider); }
CliBuilder implements AutoCloseable { public void updateCliExecutionSequence(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { LOG.info("CliBuilder is updating cli execution sequences."); System.out.println(); System.out.println("CliBuilder is updating cli execution sequences."); System.out.println(); List<List<ConfigElementForConnection>> peersList = new ArrayList<List<ConfigElementForConnection>>(); if(user.getObjects() != null) { List<Connection> connectionList = user.getObjects().getConnection(); System.out.println("connection size = "+connectionList.size()); for(Connection connection: connectionList){ List<EndNode> endNodeList = connection.getEndNode(); if( isConnectTwoExtGroup(connection, user) == Boolean.TRUE ){ ConnectionId connectionId = connection.getConnectionId(); NodeId oneNodeId = endNodeList.get(0).getNodeId(); NodeId otherNodeId = endNodeList.get(1).getNodeId(); PhysicalPortId onePhysicalPortId = null; PhysicalPortId otherPhysicalPortId = null; PhysicalNodeId onePhysicalNodeId = null; PhysicalNodeId otherPhysicalNodeId = null; PhysicalPath physicalPathforConnection = null; List<ConfigElementForConnection> configElementListForConnection = new ArrayList<ConfigElementForConnection>(); VnPnMappingResult vnPnMappingResultforOneNode = getNodeVnPnMappingResult(oneNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOneNode != null) { onePhysicalPortId = new PhysicalPortId( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); onePhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); } VnPnMappingResult vnPnMappingResultforOtherNode = getNodeVnPnMappingResult(otherNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOtherNode != null) { otherPhysicalPortId = new PhysicalPortId( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); otherPhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); } physicalPathforConnection = getPhysicalPathforConnection( onePhysicalNodeId, otherPhysicalNodeId, physicalNetwork ); if(physicalPathforConnection != null){ configElementListForConnection = getConfigElementListForConnection(physicalPathforConnection, physicalNetwork, onePhysicalPortId, otherPhysicalPortId); List<ConfigElementForConnection> peersOfPEs = getPeersOfPEs(configElementListForConnection); peersList.add(peersOfPEs); } } } if(isFullMeshTopology(peersList) == Boolean.TRUE){ buildFullMeshVPN(peersList); } } } CliBuilder(DataBroker dataProvider); void init(List<PhysicalNode> physicalNodes); Boolean isFullMeshTopology(List<List<ConfigElementForConnection>> peersList); void updateCliExecutionSequence(User user,
                                           VirtualNetwork virtualNetwork,
                                           UserIntentVnMapping userIntentVnMapping,
                                           UserVnPnMapping userVnPnMapping,
                                           PhysicalNetwork physicalNetwork); @Override void close(); }
CliBuilder implements AutoCloseable { public void updateCliExecutionSequence(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { LOG.info("CliBuilder is updating cli execution sequences."); System.out.println(); System.out.println("CliBuilder is updating cli execution sequences."); System.out.println(); List<List<ConfigElementForConnection>> peersList = new ArrayList<List<ConfigElementForConnection>>(); if(user.getObjects() != null) { List<Connection> connectionList = user.getObjects().getConnection(); System.out.println("connection size = "+connectionList.size()); for(Connection connection: connectionList){ List<EndNode> endNodeList = connection.getEndNode(); if( isConnectTwoExtGroup(connection, user) == Boolean.TRUE ){ ConnectionId connectionId = connection.getConnectionId(); NodeId oneNodeId = endNodeList.get(0).getNodeId(); NodeId otherNodeId = endNodeList.get(1).getNodeId(); PhysicalPortId onePhysicalPortId = null; PhysicalPortId otherPhysicalPortId = null; PhysicalNodeId onePhysicalNodeId = null; PhysicalNodeId otherPhysicalNodeId = null; PhysicalPath physicalPathforConnection = null; List<ConfigElementForConnection> configElementListForConnection = new ArrayList<ConfigElementForConnection>(); VnPnMappingResult vnPnMappingResultforOneNode = getNodeVnPnMappingResult(oneNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOneNode != null) { onePhysicalPortId = new PhysicalPortId( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getPhysicalResourceEntityId().getValue()); onePhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOneNode.getParentPhysicalResourceEntityId().getValue()); } VnPnMappingResult vnPnMappingResultforOtherNode = getNodeVnPnMappingResult(otherNodeId, userIntentVnMapping, userVnPnMapping); if(vnPnMappingResultforOtherNode != null) { otherPhysicalPortId = new PhysicalPortId( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getPhysicalResourceEntityId().getValue()); otherPhysicalNodeId = new PhysicalNodeId( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); System.out.println( vnPnMappingResultforOtherNode.getParentPhysicalResourceEntityId().getValue()); } physicalPathforConnection = getPhysicalPathforConnection( onePhysicalNodeId, otherPhysicalNodeId, physicalNetwork ); if(physicalPathforConnection != null){ configElementListForConnection = getConfigElementListForConnection(physicalPathforConnection, physicalNetwork, onePhysicalPortId, otherPhysicalPortId); List<ConfigElementForConnection> peersOfPEs = getPeersOfPEs(configElementListForConnection); peersList.add(peersOfPEs); } } } if(isFullMeshTopology(peersList) == Boolean.TRUE){ buildFullMeshVPN(peersList); } } } CliBuilder(DataBroker dataProvider); void init(List<PhysicalNode> physicalNodes); Boolean isFullMeshTopology(List<List<ConfigElementForConnection>> peersList); void updateCliExecutionSequence(User user,
                                           VirtualNetwork virtualNetwork,
                                           UserIntentVnMapping userIntentVnMapping,
                                           UserVnPnMapping userVnPnMapping,
                                           PhysicalNetwork physicalNetwork); @Override void close();  }