mirror of https://github.com/apache/cloudstack.git
Fix existed single router network after enable redundant router feature
This commit is contained in:
parent
94ff9fe2c1
commit
76a8738227
|
|
@ -867,6 +867,13 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
|||
routerCount = 2;
|
||||
}
|
||||
|
||||
/* If it is the single router network, then keep it untouched */
|
||||
for (DomainRouterVO router : routers) {
|
||||
if (!router.getIsRedundantRouter()) {
|
||||
routerCount = 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (routers.size() == routerCount) {
|
||||
return routers;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue