Skip to content

Commit 85d9de5

Browse files
Alena ProkharchykAlena Prokharchyk
authored andcommitted
bug 12127: fixed releasing non-source nat ips
status 12127: resolved fixed
1 parent 4f54b5e commit 85d9de5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/network/NetworkManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ public boolean disassociateIpAddress(long ipAddressId) {
16331633

16341634
Network associatedNetwork = getNetwork(ipVO.getAssociatedWithNetworkId());
16351635

1636-
if (areServicesSupportedInNetwork(associatedNetwork.getId(), Service.SourceNat)) {
1636+
if (ipVO.isSourceNat() && areServicesSupportedInNetwork(associatedNetwork.getId(), Service.SourceNat)) {
16371637
throw new IllegalArgumentException("ip address is used for source nat purposes and can not be disassociated.");
16381638
}
16391639

0 commit comments

Comments
 (0)