public static boolean updateFlowForVmPair(String srcIp, String dstIp, float value) { // Extract the ips from the Flow float threshold = DiscoveryManager.vmtMANAGER.getFlowThreshold(); String ipUuid1 = DiscoveryUtil.getIpUuid(srcIp); VMTRootObject vmt1 = rg.getObject(ipUuid1); String ipUuid2 = DiscoveryUtil.getIpUuid(dstIp); VMTRootObject vmt2 = rg.getObject(ipUuid2); // fetch the vms matching the ips VirtualMachine source = DiscoveryUtil.getVmFromIP((IP) vmt1); VirtualMachine dest = DiscoveryUtil.getVmFromIP((IP) vmt2); // create or update the pair if (source != null && dest != null) { String containerPairUuid = formContainerPairUuid(source, dest); createOrUpdateContainerPair(source, dest, containerPairUuid, (float) (value / Units.KILO)); } if (value > threshold && !PodUtil.sameVPod(source, dest)) { return true; } else { return false; } }