Skip to content

Commit 54bd8ee

Browse files
jayapaluRohit Yadav
authored andcommitted
CLOUDSTACK-9724: Fixed missing additional public ip on tier network with cleanup
(cherry picked from commit ee726af) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent a9050fa commit 54bd8ee

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)