mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4573: fixed resource limit check when acquire public IP in VPC - update resource count for VPC public ip even when network_id is not set yet.
This commit is contained in:
parent
9b81c91e31
commit
d34b79c970
@ -820,7 +820,7 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage
|
|||||||
addr.getUuid());
|
addr.getUuid());
|
||||||
}
|
}
|
||||||
// don't increment resource count for direct and dedicated ip addresses
|
// don't increment resource count for direct and dedicated ip addresses
|
||||||
if (addr.getAssociatedWithNetworkId() != null && !isIpDedicated(addr)) {
|
if ((addr.getAssociatedWithNetworkId() != null || addr.getVpcId() != null) && !isIpDedicated(addr)) {
|
||||||
_resourceLimitMgr.incrementResourceCount(owner.getId(), ResourceType.public_ip);
|
_resourceLimitMgr.incrementResourceCount(owner.getId(), ResourceType.public_ip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user