Fix existed single router network after enable redundant router feature

This commit is contained in:
Sheng Yang 2011-08-10 18:07:00 -07:00
parent 94ff9fe2c1
commit 76a8738227
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}