mirror of https://github.com/apache/cloudstack.git
FIX S2S VPN rVPC: Check only redundant routers in state MASTER
This commit is contained in:
parent
ecc8cc0bc9
commit
230c9cf59e
|
|
@ -907,6 +907,9 @@ Configurable, StateListener<VirtualMachine.State, VirtualMachine.Event, VirtualM
|
|||
if (conns == null || conns.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
if (router.getIsRedundantRouter() && router.getRedundantState() != RedundantState.MASTER){
|
||||
continue;
|
||||
}
|
||||
if (router.getState() != VirtualMachine.State.Running) {
|
||||
for (final Site2SiteVpnConnectionVO conn : conns) {
|
||||
if (conn.getState() != Site2SiteVpnConnection.State.Error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue