bug 13801: fixed broken check for extending vnet ranges during physical network update

status 13801: resolved fixed
Reviwed-by: Kelven Yang
This commit is contained in:
Alena Prokharchyk 2012-02-16 09:58:30 -08:00
parent c544d85988
commit ee77167fae

View File

@ -4639,7 +4639,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
int existingEndVnet = Integer.parseInt(existingRange[1]);
// check if vnet is being extended
if (!(newStartVnet.intValue() > existingStartVnet && newEndVnet.intValue() < existingEndVnet)) {
if (newStartVnet.intValue() > existingStartVnet || newEndVnet.intValue() < existingEndVnet) {
throw new InvalidParameterValueException("Can't shrink existing vnet range as it the range has vnets allocated. Only extending existing vnet is supported");
}