mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
a443f31b78
commit
bbe2bf1a6e
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user