mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4286. Add one more check for validating vlanrange parameter with "dedicateGuestVlanRange" API
This commit is contained in:
parent
29a399b9ae
commit
4d48d9603d
@ -2955,7 +2955,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
|
||||
for (int i=0 ; i < existingRanges.size(); i++){
|
||||
int existingStartVlan = existingRanges.get(i).first();
|
||||
int existingEndVlan = existingRanges.get(i).second();
|
||||
if (startVlan >= existingStartVlan && endVlan <= existingEndVlan) {
|
||||
if (startVlan <= endVlan && startVlan >= existingStartVlan && endVlan <= existingEndVlan) {
|
||||
exists = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user