mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 8689: don't allow to reset Availability for default Direct network offering
status 8689: resolved fixed
This commit is contained in:
parent
1025f16940
commit
f36ed9b51a
@ -2607,6 +2607,11 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
||||
if (offeringToUpdate.isSystemOnly()) {
|
||||
throw new InvalidParameterValueException("Can't update system network offerings");
|
||||
}
|
||||
|
||||
//Don't allow to update default Direct network offering
|
||||
if (offeringToUpdate.isDefault() && offeringToUpdate.getGuestType() == GuestIpType.Direct) {
|
||||
throw new InvalidParameterValueException("Can't update Default Direct network offering");
|
||||
}
|
||||
|
||||
NetworkOfferingVO offering = _networkOfferingDao.createForUpdate(id);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user