From 5929f6f61635fe9ba92fe294bead2318c7aeebed Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Thu, 23 Apr 2020 07:51:07 +0000 Subject: dmvpn: T2091: Move variable to cycle for multiple profiles --- scripts/dmvpn-config.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ], -- cgit v1.2.3