bug 12926: fixed regression in enableStaticNat code introduced by preserve ip fix

This commit is contained in:
Alena Prokharchyk 2012-01-10 12:16:37 -08:00
parent 8f2cd77c87
commit e6080436cf

View File

@ -377,7 +377,7 @@ public class RulesManagerImpl implements RulesManager, RulesService, Manager {
throw new InvalidParameterValueException("Failed to enable static nat for the ip address id=" + ipId + " as vm id=" + vmId + " is already associated with ip id=" + ip.getId());
}
_networkMgr.checkIpForService(ip, Service.StaticNat);
_networkMgr.checkIpForService(ipAddress, Service.StaticNat);
ipAddress.setOneToOneNat(true);
ipAddress.setAssociatedWithVmId(vmId);