Skip to content

Commit e178089

Browse files
committed
remove condition for associated network when !specifyvlan in shared network
1 parent 99ea77d commit e178089

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

server/src/main/java/com/cloud/network/NetworkServiceImpl.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,10 +1635,6 @@ public Network createGuestNetwork(CreateNetworkCmd cmd) throws InsufficientCapac
16351635
throwInvalidIdException("Network offering with specified id doesn't support adding multiple ip ranges", ntwkOff.getUuid(), NETWORK_OFFERING_ID);
16361636
}
16371637

1638-
if (GuestType.Shared == ntwkOff.getGuestType() && !ntwkOff.isSpecifyVlan() && Objects.isNull(associatedNetworkId)) {
1639-
throw new CloudRuntimeException("Associated network must be provided when creating Shared networks when specifyVlan is false");
1640-
}
1641-
16421638
Pair<Integer, Integer> interfaceMTUs = validateMtuConfig(publicMtu, privateMtu, zone.getId());
16431639
mtuCheckForVpcNetwork(vpcId, interfaceMTUs, publicMtu);
16441640

0 commit comments

Comments
 (0)