This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push:
new 5c01cff3043 VR: fix site-2-site VPN if split connections is enabled
(#10067)
5c01cff3043 is described below
commit 5c01cff3043f9c1adee3b59a797702aa18ca26c8
Author: Wei Zhou <[email protected]>
AuthorDate: Sat Dec 28 12:09:36 2024 +0100
VR: fix site-2-site VPN if split connections is enabled (#10067)
---
systemvm/debian/opt/cloud/bin/configure.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/systemvm/debian/opt/cloud/bin/configure.py
b/systemvm/debian/opt/cloud/bin/configure.py
index c75df98754f..c727f453320 100755
--- a/systemvm/debian/opt/cloud/bin/configure.py
+++ b/systemvm/debian/opt/cloud/bin/configure.py
@@ -850,7 +850,7 @@ class CsSite2SiteVpn(CsDataBag):
file.addeq(" dpddelay=30")
file.addeq(" dpdtimeout=120")
file.addeq(" dpdaction=restart")
- if splitconnections and peerlistarr.count > 1:
+ if splitconnections and len(peerlistarr) > 1:
logging.debug('Splitting connections for rightsubnets %s' %
peerlistarr)
for peeridx in range(1, len(peerlistarr)):
logging.debug('Adding split connection -%d for subnet %s' %
(peeridx + 1, peerlistarr[peeridx]))