CLOUDSTACK-9724: Fixed missing additional public ip on tier network with cleanup

This commit is contained in:
Jayapal 2017-02-14 14:26:40 +05:30
parent e02003d653
commit ee726af53b
1 changed files with 7 additions and 0 deletions

View File

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