Skip to content

Commit 9efd905

Browse files
committed
Merge pull request #1885 from Accelerite/vpctier
CLOUDSTACK-9724: Fixed missing additional public ip on tier network wIn VPC tier network acquire an ip and configure the PF service on it. VR now will have the two ip addresses on the interface. Now restart the VPC tier network with cleanup option. After router comes up the public interface has only one ip (source nat ip) Fixed the above issue. * pr/1885: CLOUDSTACK-9724: Fixed missing additional public ip on tier network with cleanup Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>
2 parents 50147a4 + ee726af commit 9efd905

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/src/com/cloud/network/IpAddressManagerImpl.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,13 @@ boolean checkIfIpAssocRequired(Network network, boolean postApplyRules, List<Pub
460460
}
461461
} else {
462462
if (activeCount != null && activeCount > 0) {
463+
if (network.getVpcId() != null) {
464+
// If there are more than one ip in the vpc tier network and services configured on it.
465+
// restart network with cleanup case, on network reprogramming this needs to be return true
466+
// because on the VR ips has removed. In VPC case restart tier network with cleanup will not
467+
// reboot the VR. So ipassoc is needed.
468+
return true;
469+
}
463470
continue;
464471
} else if (addCount != null && addCount.longValue() == totalCount.longValue()) {
465472
s_logger.trace("All rules are in Add state, have to assiciate IP with the backend");

0 commit comments

Comments
 (0)