Skip to content

Commit 28262cd

Browse files
committed
fixed the 'rightsubnet' formatting for mulitple ranges
1 parent 1dc7bbb commit 28262cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemvm/patches/debian/config/opt/cloud/bin/configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def configure_iptables(self, dev, obj):
497497
def configure_ipsec(self, obj):
498498
leftpeer = obj['local_public_ip']
499499
rightpeer = obj['peer_gateway_ip']
500-
peerlist = obj['peer_guest_cidr_list'].lstrip().rstrip().replace(',', ' ')
500+
peerlist = obj['peer_guest_cidr_list'].replace(' ', '')
501501
vpnconffile = "%s/ipsec.vpn-%s.conf" % (self.VPNCONFDIR, rightpeer)
502502
vpnsecretsfile = "%s/ipsec.vpn-%s.secrets" % (self.VPNCONFDIR, rightpeer)
503503
ikepolicy=obj['ike_policy'].replace(';','-')

0 commit comments

Comments
 (0)