mirror of https://github.com/apache/cloudstack.git
Cloudstack-2548: Failed to delete public IP range
Public IP range deletion after it is dedicated fails with IP range being used for DHCP offers. Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
parent
09c6030ae9
commit
47a562a2c0
|
|
@ -3071,9 +3071,16 @@ public class ConfigurationManagerImpl extends ManagerBase implements Configurati
|
|||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
// when there is no dhcp support in the network.
|
||||
if (!deletePublicIPRange(vlanDbId)) {
|
||||
return false;
|
||||
}
|
||||
_vlanDao.expunge(vlanDbId);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
throw new InvalidParameterValueException("One of the ips in the range is used to provide Dhcp service to this subnet. cannot delete this range as ");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue