public Zone findAvailableZone(String domainId) { Set<Zone> zones = client.getZoneClient().listZones(ListZonesOptions.Builder.available(true)); for (Zone zone : zones) { if (zone.getDomainId() == null || zone.getDomainId().equals(domainId)) { LOG.debug("Found available zone in {} for domain {}: {}", new Object[] {loc, domainId, zone}); return zone; } } LOG.debug("No available zone for domain {}; zones: {}", domainId, zones); return null; }
assert zone.getInternalDNS().size() >= 0 : zone; assert zone.getDomain() == null : zone; assert zone.getDomainId() == null : zone; assert zone.getGuestCIDRAddress() == null : zone; break;
assert zone.getInternalDNS().size() > 0 : zone; assert zone.getDomain() == null : zone; assert zone.getDomainId() == null : zone; assert zone.getGuestCIDRAddress() == null : zone; break;
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()); } }
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()); } }
public T fromZone(Zone in) { return this .id(in.getId()) .description(in.getDescription()) .displayText(in.getDisplayText()) .DNS(in.getDNS()) .domain(in.getDomain()) .domainId(in.getDomainId()) .guestCIDRAddress(in.getGuestCIDRAddress()) .internalDNS(in.getInternalDNS()) .name(in.getName()) .networkType(in.getNetworkType()) .VLAN(in.getVLAN()) .securityGroupsEnabled(in.isSecurityGroupsEnabled()) .allocationState(in.getAllocationState()) .dhcpProvider(in.getDhcpProvider()) .zoneToken(in.getZoneToken()) .tags(in.getTags()); } }