mirror of https://github.com/apache/cloudstack.git
SourceNat service is supported for Isolated network offerings only
This commit is contained in:
parent
6aa743165a
commit
4ce2bf2f89
|
|
@ -2866,6 +2866,9 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
}
|
||||
|
||||
if (cmd.getSourceNatService()) {
|
||||
if (guestType == GuestType.Shared) {
|
||||
throw new InvalidParameterValueException("Source nat service is is not supported for network offerings with guest ip type " + GuestType.Shared);
|
||||
}
|
||||
serviceProviderMap.put(Network.Service.SourceNat, defaultProviders);
|
||||
}
|
||||
|
||||
|
|
@ -3176,6 +3179,9 @@ public class ConfigurationManagerImpl implements ConfigurationManager, Configura
|
|||
}
|
||||
|
||||
if (cmd.getSourceNatService()) {
|
||||
if (offering.getGuestType() == GuestType.Shared) {
|
||||
throw new InvalidParameterValueException("Source nat service is is not supported for network offerings with guest ip type " + GuestType.Shared);
|
||||
}
|
||||
serviceProviderMap.put(Network.Service.SourceNat, defaultProviders);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue