Skip to content

Commit 4630e85

Browse files
committed
Ignore site to site vpn status check on internallbvm
When the state of the site to site vpn changes, the check is done on all the virtual routers including the internal load balancing vm as well. It is not needed to check the state for internal load balancing vm
1 parent d90341e commit 4630e85

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,10 @@ public void doInTransactionWithoutResult(final TransactionStatus status) {
885885
@DB
886886
protected void updateSite2SiteVpnConnectionState(final List<DomainRouterVO> routers) {
887887
for (final DomainRouterVO router : routers) {
888+
if (router.getRole() == Role.INTERNAL_LB_VM) {
889+
continue;
890+
}
891+
888892
final List<Site2SiteVpnConnectionVO> conns = _s2sVpnMgr.getConnectionsForRouter(router);
889893
if (conns == null || conns.isEmpty()) {
890894
continue;

0 commit comments

Comments
 (0)