public static VirtualMachine createVirtualMachineInNetwork(Network network, String templateId,
CloudStackClient client, Predicate<String> jobComplete,
Predicate<VirtualMachine> virtualMachineRunning) {
DeployVirtualMachineOptions options = new DeployVirtualMachineOptions();
String zoneId = network.getZoneId();
options.networkId(network.getId());
return createVirtualMachineWithOptionsInZone(options, zoneId, templateId, client, jobComplete,
virtualMachineRunning);
}
public static VirtualMachine createVirtualMachineInNetworkWithIp(