public boolean gatewayIP_Pool_overlap() { Iterator<NeutronSubnet_IPAllocationPool> i = allocationPools.iterator(); while (i.hasNext()) { NeutronSubnet_IPAllocationPool pool = i.next(); if (ipVersion == 4) { if (pool.contains(gatewayIP)) { return true; } } if (ipVersion == 6) { if (pool.contains_V6(gatewayIP)) { return true; } } } return false; }
public boolean isIPInUse(String ipAddress) { if (ipAddress.equals(gatewayIP) && !gatewayIPAssigned ) { return false; } Iterator<NeutronSubnet_IPAllocationPool> i = allocationPools.iterator(); while (i.hasNext()) { NeutronSubnet_IPAllocationPool pool = i.next(); if (ipVersion == 4 && pool.contains(ipAddress)) { return false; } if (ipVersion == 6 && pool.contains_V6(ipAddress)) { return false; } } return true; }
pool.getPoolStart().equalsIgnoreCase(ipAddress))) { if (ipVersion == 4) { if (pool.contains(ipAddress)) { List<NeutronSubnet_IPAllocationPool> pools = pool.splitPool(ipAddress); newList.addAll(pools);