Skip to content

Commit 7513fdb

Browse files
author
Michael Andersen
committed
FIX S2S VPN rVPC: Check only redundant routers in state MASTER
1 parent d0234b4 commit 7513fdb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,9 @@ protected void updateSite2SiteVpnConnectionState(final List<DomainRouterVO> rout
907907
if (conns == null || conns.isEmpty()) {
908908
continue;
909909
}
910+
if (router.getIsRedundantRouter() && router.getRedundantState() != RedundantState.MASTER){
911+
continue;
912+
}
910913
if (router.getState() != VirtualMachine.State.Running) {
911914
for (final Site2SiteVpnConnectionVO conn : conns) {
912915
if (conn.getState() != Site2SiteVpnConnection.State.Error) {

0 commit comments

Comments
 (0)