Skip to content

Commit bbe2bf1

Browse files
authored
server: ignore site to site vpn status check on internallbvm (#3864)
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 a443f31 commit bbe2bf1

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)