SourceNat service is supported for Isolated network offerings only

This commit is contained in:
alena 2011-11-02 11:52:23 -07:00
parent 6aa743165a
commit 4ce2bf2f89
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}