bug 12127: fixed releasing non-source nat ips

status 12127: resolved fixed
This commit is contained in:
Alena Prokharchyk 2011-11-21 17:52:28 -08:00
parent 4f54b5e9d3
commit 85d9de58d6
1 changed files with 1 additions and 1 deletions

View File

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