@Override public boolean apply(@Nullable NIC input) { return input != null && serviceNetworkId.equals(input.getNetworkId()); } };
return (input == null) ? false : ipAddress.equals(input.getIPAddress()); }}); String networkId = nic.getNetworkId();
String networkId = nic.getNetworkId();
if (nic.getNetworkId() == network.getId()) { hasStaticIpNic = true; assertEquals(nic.getIPAddress(), ipAddress);
public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
if (Objects.equal(nic.getNetworkId(), network.getId())) { hasStaticIpNic = true; assertEquals(nic.getIPAddress(), ipAddress);
public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
public T fromNIC(NIC in) { return this .id(in.getId()) .broadcastURI(in.getBroadcastURI()) .gateway(in.getGateway()) .IPAddress(in.getIPAddress()) .isDefault(in.isDefault()) .isolationURI(in.getIsolationURI()) .netmask(in.getNetmask()) .macAddress(in.getMacAddress()) .networkId(in.getNetworkId()) .trafficType(in.getTrafficType()) .guestIPType(in.getGuestIPType()); } }
for (NIC nic : vm.getNICs()) { assert nic.getId() != null : vm; assert nic.getNetworkId() != null : vm; assert nic.getTrafficType() != null : vm; assert nic.getGuestIPType() != null : vm;
for (NIC nic : vm.getNICs()) { assert nic.getId() != null : vm; assert nic.getNetworkId() != null : vm; assert nic.getTrafficType() != null : vm; assert nic.getGuestIPType() != null : vm;