Skip to content

Commit 155b9df

Browse files
author
Alena Prokharchyk
committed
CLOUDSTACK-3902: createVpcOffering - throw an excpetion when sourceNat service is not passed in
1 parent 6e9bf56 commit 155b9df

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎server/src/com/cloud/network/vpc/VpcManagerImpl.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ public VpcOffering createVpcOffering(String name, String displayText, List<Strin
311311
}
312312

313313
if (!sourceNatSvc) {
314-
s_logger.debug("Automatically adding source nat service to the list of VPC services");
315-
svcProviderMap.put(Service.SourceNat, defaultProviders);
314+
throw new InvalidParameterValueException("SourceNat service is required by VPC offering");
316315
}
317316

318317
if (!firewallSvs) {

0 commit comments

Comments
 (0)