@Override public List<String> apply(VirtualMachine input) { if (input == null) return null; List<String> result = Lists.newArrayList(); for (NIC nic : input.getNICs()) { result.add(nic.getIPAddress()); } return result; } }
return null; NIC nic = Iterables.find(vm.get().getNICs(), new Predicate<NIC>() { @Override public boolean apply(NIC input) { return (input == null) ? false : ipAddress.equals(input.getIPAddress());
VirtualMachine vm = vmClient.getVirtualMachine(node.getProviderId()); Iterable<NIC> allNics = vm.getNICs(); Predicate<NIC> isServiceNetwork = new Predicate<NIC>() { @Override
publicAddresses.add(from.getPublicIP()); for (NIC nic : from.getNICs()) { if (nic.getIPAddress() != null) { if (isPrivateIPAddress(nic.getIPAddress())) {
publicAddresses.add(from.getPublicIP()); for (NIC nic : from.getNICs()) { if (nic.getIPAddress() != null) { if (isPrivateIPAddress(nic.getIPAddress())) {
publicAddresses.add(from.getPublicIP()); for (NIC nic : from.getNICs()) { if (nic.getIPAddress() != null) { if (isPrivateIPAddress(nic.getIPAddress())) {
Capabilities capabilities = client.getConfigurationApi().listCapabilities(); NIC nic = Iterables.find(vm.getNICs(), new Predicate<NIC>() { @Override public boolean apply(NIC input) {
for(NIC nic : vm.getNICs()) { if (nic.getNetworkId() == network.getId()) { hasStaticIpNic = true;
for (NIC nic : vm.getNICs()) { if (Objects.equal(nic.getNetworkId(), network.getId())) { hasStaticIpNic = true;
.zoneId(in.getZoneId()) .zoneName(in.getZoneName()) .nics(in.getNICs()) .hypervisor(in.getHypervisor()) .securityGroups(in.getSecurityGroups());
.zoneId(in.getZoneId()) .zoneName(in.getZoneName()) .nics(in.getNICs()) .hypervisor(in.getHypervisor()) .securityGroups(in.getSecurityGroups());
.zoneId(in.getZoneId()) .zoneName(in.getZoneName()) .nics(in.getNICs()) .hypervisor(in.getHypervisor()) .securityGroups(in.getSecurityGroups())