summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-23 07:51:07 +0000
committerDaniil Baturin <daniil@vyos.io>2020-07-26 05:33:07 +0300
commitc011b7c82176b92ecdf83071d55f2a21ab3f1a45 (patch)
tree8b0b7878f7bab6864b061ee7d7914908fb7e676d
parent49c9d47c70351a3d47a77c75a0ae0dd976d2cad6 (diff)
downloadvyatta-cfg-vpn-c011b7c82176b92ecdf83071d55f2a21ab3f1a45.tar.gz
vyatta-cfg-vpn-c011b7c82176b92ecdf83071d55f2a21ab3f1a45.zip
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" ],