mirror of https://github.com/apache/cloudstack.git
bug 12127: fixed releasing non-source nat ips
status 12127: resolved fixed
This commit is contained in:
parent
4f54b5e9d3
commit
85d9de58d6
|
|
@ -1633,7 +1633,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
|
||||
Network associatedNetwork = getNetwork(ipVO.getAssociatedWithNetworkId());
|
||||
|
||||
if (areServicesSupportedInNetwork(associatedNetwork.getId(), Service.SourceNat)) {
|
||||
if (ipVO.isSourceNat() && areServicesSupportedInNetwork(associatedNetwork.getId(), Service.SourceNat)) {
|
||||
throw new IllegalArgumentException("ip address is used for source nat purposes and can not be disassociated.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue