diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-04-23 07:51:07 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2020-07-26 05:33:07 +0300 |
commit | c011b7c82176b92ecdf83071d55f2a21ab3f1a45 (patch) | |
tree | 8b0b7878f7bab6864b061ee7d7914908fb7e676d | |
parent | 49c9d47c70351a3d47a77c75a0ae0dd976d2cad6 (diff) | |
download | vyatta-cfg-vpn-c011b7c82176b92ecdf83071d55f2a21ab3f1a45.tar.gz vyatta-cfg-vpn-c011b7c82176b92ecdf83071d55f2a21ab3f1a45.zip |
dmvpn: T2091: Move variable to cycle for multiple profiles
-rwxr-xr-x | scripts/dmvpn-config.pl | 2 |
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" ], |