mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
bug 12926: fixed regression in enableStaticNat code introduced by preserve ip fix
This commit is contained in:
parent
8f2cd77c87
commit
e6080436cf
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user