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
This commit is contained in:
Rakesh 2020-02-18 09:33:30 +01:00 committed by GitHub
parent a443f31b78
commit bbe2bf1a6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -840,6 +840,10 @@ Configurable, StateListener<VirtualMachine.State, VirtualMachine.Event, VirtualM
@DB
protected void updateSite2SiteVpnConnectionState(final List<DomainRouterVO> routers) {
for (final DomainRouterVO router : routers) {
if (router.getRole() == Role.INTERNAL_LB_VM) {
continue;
}
final List<Site2SiteVpnConnectionVO> conns = _s2sVpnMgr.getConnectionsForRouter(router);
if (conns == null || conns.isEmpty()) {
continue;