mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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:
parent
c544d85988
commit
ee77167fae
@ -4639,7 +4639,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||||||
int existingEndVnet = Integer.parseInt(existingRange[1]);
|
int existingEndVnet = Integer.parseInt(existingRange[1]);
|
||||||
|
|
||||||
// check if vnet is being extended
|
// 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");
|
throw new InvalidParameterValueException("Can't shrink existing vnet range as it the range has vnets allocated. Only extending existing vnet is supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user