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");