Skip to content

Commit abb7e3f

Browse files
Merge pull request apache#1117 from shapeblue/4.5-9064
CLOUDSTACK-9064: The users should be able to create multiple Guest Sh https://issues.apache.org/jira/browse/CLOUDSTACK-9064 CLOUDSTACK-9064: The users should be able to create multiple Guest Shared Networks in same Vlan ID, same Physical Network and same network, just with a different IP ranges. * pr/1117: CLOUDSTACK-9064: The users should be able to create multiple Guest Shared Networks in same Vlan ID, same Physical Network and same network, just with a different IP ranges. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2 parents 0da2736 + 2e6c7ce commit abb7e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/orchestration/src/org/apache/cloudstack/engine/orchestration/NetworkOrchestrator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ public Network createGuestNetwork(long networkOfferingId, final String name, fin
19441944
} else {
19451945
// don't allow to creating shared network with given Vlan ID, if there already exists a isolated network or
19461946
// shared network with same Vlan ID in the zone
1947-
if (_networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Isolated) > 0 || _networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Shared) > 0) {
1947+
if (_networksDao.countByZoneUriAndGuestType(zoneId, uri, GuestType.Isolated) > 0 ) {
19481948
throw new InvalidParameterValueException("There is a isolated/shared network with vlan id: " + vlanId + " already exists " + "in zone " + zoneId);
19491949
}
19501950
}

0 commit comments

Comments
 (0)