bug 6929: we prevent upgrading of a router with a SO different from the type it was created with (eg. prevent a virtual offfering being upgraded to direct)

status 6929: resolved fixed
This commit is contained in:
abhishek 2010-11-17 12:57:53 -08:00
parent fed5bbcfbe
commit 38292fcd02
1 changed files with 2 additions and 2 deletions

View File

@ -691,8 +691,8 @@ public class DomainRouterManagerImpl implements DomainRouterManager, DomainRoute
ServiceOfferingVO currentServiceOffering = _serviceOfferingDao.findById(router.getServiceOfferingId());
if (!currentServiceOffering.getGuestIpType().equals(newServiceOffering.getGuestIpType())) {
throw new InvalidParameterValueException("Can't upgrade, due to new newtowrk type: " + newServiceOffering.getGuestIpType() + " is different from " +
"curruent network type: " + currentServiceOffering.getGuestIpType());
throw new InvalidParameterValueException("Can't upgrade router, due to the new network type: " + newServiceOffering.getGuestIpType() + " being different from " +
"current network type: " + currentServiceOffering.getGuestIpType());
}
if (currentServiceOffering.getUseLocalStorage() != newServiceOffering.getUseLocalStorage()) {
throw new InvalidParameterValueException("Can't upgrade, due to new local storage status : " + newServiceOffering.getGuestIpType() + " is different from " +