summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-05-25 18:12:32 +0700
committerGitHub <noreply@github.com>2020-05-25 18:12:32 +0700
commite0591ef0d2726fbb56261e888d59c83628d501e6 (patch)
treebf9e63e4001e4b53e4d1f9da50b9917a9e5a7be4
parent7824620387475ccf977b1c859422b5fd7f0e8029 (diff)
parent5929f6f61635fe9ba92fe294bead2318c7aeebed (diff)
downloadvyatta-cfg-vpn-e0591ef0d2726fbb56261e888d59c83628d501e6.tar.gz
vyatta-cfg-vpn-e0591ef0d2726fbb56261e888d59c83628d501e6.zip
Merge pull request #30 from DmitriyEshenko/rolling-dmvpn
dmvpn: T2091: Move variable to cycle for multiple profiles
-rwxr-xr-xscripts/dmvpn-config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dmvpn-config.pl b/scripts/dmvpn-config.pl
index a1d80a8..5562a7c 100755
--- a/scripts/dmvpn-config.pl
+++ b/scripts/dmvpn-config.pl
@@ -36,7 +36,6 @@ my $LOGFILE = '/var/log/vyatta/ipsec.log';
my $vpn_cfg_err = "VPN configuration error:";
my $genout;
my $dh_disable;
-my $conf_header = 0;
$genout .= "# generated by $0\n\n";
@@ -86,6 +85,7 @@ if ( $vcVPN->exists('ipsec') ) {
my @profiles = $vcVPN->listNodes('ipsec profile');
my $prev_profile = "";
foreach my $profile (@profiles) {
+ my $conf_header = 0;
my $profile_ike_group = $vcVPN->returnValue("ipsec profile $profile ike-group");
if ( !defined($profile_ike_group) || $profile_ike_group eq '' ) {
vpn_die([ "vpn", "ipsec", "profile", $profile, "ike-group" ],