FlowUtils implements AutoCloseable { protected void updateFlowTable(User user, VirtualNetwork virtualNetwork, UserIntentVnMapping userIntentVnMapping, UserVnPnMapping userVnPnMapping, PhysicalNetwork physicalNetwork) { if ( !metadatas.containsKey(user.getUserId()) ) { metadatas.put(user.getUserId(), ++currentMetadata); } users.put(user.getUserId(), user); userIntentVnMappings.put(user.getUserId(), userIntentVnMapping); userVnPnMappings.put(user.getUserId(), userVnPnMapping); physicalNetworkHelper = new PhysicalNetworkHelper(physicalNetwork); virtualNetworkHelpers.put(virtualNetwork.getNetworkId(), new VirtualNetworkHelper(virtualNetwork)); arpHandlerHelper.update(userVnPnMapping); flowIdsOfUsers.put(user.getUserId(), new LinkedList<InstanceIdentifier<Flow>>()); meterIdIdsOfUsers.put(user.getUserId(), new LinkedList<InstanceIdentifier<Meter>>()); updateInPortTable(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); updateMeterTable(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); updateMplsTable(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); updateIpTable(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); updateArpTable(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); updateFlowTableForOperations(user, virtualNetwork, userIntentVnMapping, userVnPnMapping, physicalNetwork); return; } FlowUtils(DataBroker dataBroker,
                     PacketProcessingService packetProcessingService,
                     PhyConfigLoader phyConfigLoader); void init(List<PhysicalNode> physicalNodes); void handleArp(PacketReceived packetReceived, NodeConnectorRef ingress); @Override void close(); void assignMPLSLabelForPPath(PhysicalPath physicalPath,
                  List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.physical.network.rev151010.physical.network.physical.links.PhysicalLink> physicalLinksList);  }
@Test public void testUpdateFlowTable() throws Exception { }