weizhouapache commented on code in PR #7877:
URL: https://github.com/apache/cloudstack/pull/7877#discussion_r1301339824


##########
server/src/main/java/com/cloud/network/router/NetworkHelperImpl.java:
##########
@@ -547,14 +547,12 @@ public DomainRouterVO deployRouter(final 
RouterDeploymentDefinition routerDeploy
                 reallocateRouterNetworks(routerDeploymentDefinition, router, 
template, null);
                 router = _routerDao.findById(router.getId());
             } catch (final InsufficientCapacityException ex) {
-                if (allocateRetry < 2 && iter.hasNext()) {
+                if (iter.hasNext()) {

Review Comment:
   @rohityadavcloud 
   `allocateRetry < 2` means that it will try with 2 hypervisors, not try twice 
for each hypervisor.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to