From ee726af53bb33c5205d481abc3ab78bd2653f1b6 Mon Sep 17 00:00:00 2001 From: Jayapal Date: Tue, 14 Feb 2017 14:26:40 +0530 Subject: [PATCH] CLOUDSTACK-9724: Fixed missing additional public ip on tier network with cleanup --- server/src/com/cloud/network/IpAddressManagerImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/src/com/cloud/network/IpAddressManagerImpl.java b/server/src/com/cloud/network/IpAddressManagerImpl.java index 8a2c3fd7b1f..2af596a6f7e 100644 --- a/server/src/com/cloud/network/IpAddressManagerImpl.java +++ b/server/src/com/cloud/network/IpAddressManagerImpl.java @@ -460,6 +460,13 @@ public class IpAddressManagerImpl extends ManagerBase implements IpAddressManage } } else { if (activeCount != null && activeCount > 0) { + if (network.getVpcId() != null) { + // If there are more than one ip in the vpc tier network and services configured on it. + // restart network with cleanup case, on network reprogramming this needs to be return true + // because on the VR ips has removed. In VPC case restart tier network with cleanup will not + // reboot the VR. So ipassoc is needed. + return true; + } continue; } else if (addCount != null && addCount.longValue() == totalCount.longValue()) { s_logger.trace("All rules are in Add state, have to assiciate IP with the backend");