Skip to content

Commit 2215f8b

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 78cc0a4 commit 2215f8b

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
@@ -840,6 +840,10 @@ public void doInTransactionWithoutResult(final TransactionStatus status) {
840840
@DB
841841
protected void updateSite2SiteVpnConnectionState(final List<DomainRouterVO> routers) {
842842
for (final DomainRouterVO router : routers) {
843+
if (router.getRole() == Role.INTERNAL_LB_VM) {
844+
continue;
845+
}
846+
843847
final List<Site2SiteVpnConnectionVO> conns = _s2sVpnMgr.getConnectionsForRouter(router);
844848
if (conns == null || conns.isEmpty()) {
845849
continue;

0 commit comments

Comments
 (0)