summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeff Leung <jleung@v10networks.ca>2015-02-05 08:03:09 +0000
committerJeff Leung <jleung@v10networks.ca>2015-02-05 08:38:50 +0000
commitcb76ae8fbdffa0c8dee28b95867776955806f025 (patch)
treeef46a54b991af15a15aec1bb0cd91622863c3cb8 /scripts
parenta64d08fe6cfbc6275c2682fbe92d4856334deec2 (diff)
downloadvyatta-cfg-vpn-cb76ae8fbdffa0c8dee28b95867776955806f025.tar.gz
vyatta-cfg-vpn-cb76ae8fbdffa0c8dee28b95867776955806f025.zip
Update ipsec logging log-modes to point towards charon's loggers
log-modes now expose charon's keywords instead of pluto's keywords. Refer to the strongSwan's manual to see what each specific logger does.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vpn-config.pl18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 7dd18f1..89af400 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -306,23 +306,23 @@ if ($vcVPN->exists('ipsec')) {
}
#
- # log-mode
+ # charon log-mode
#
my @logmodes = $vcVPN->returnValues('ipsec logging log-modes');
+ my $charonloglevel = $vcVPN->returnValue('ipsec logging log-level');
if (@logmodes > 0) {
my $debugmode = '';
+ my $first_debug_mode = 1;
+ $genout .= "\tcharondebug=\"";
foreach my $mode (@logmodes) {
- if ($mode eq "all") {
- $debugmode = "all";
- last;
- }
- if ($debugmode eq '') {
- $debugmode = "$mode";
+ if ($first_debug_mode) {
+ $first_debug_mode = 0;
} else {
- $debugmode .= " $mode";
+ $genout .= ", ";
}
+ $genout .= "$mode $charonloglevel";
}
- $genout .= "\tplutodebug=\"$debugmode\"\n";
+ $genout .= "\"\n";
}
# Set plutoopts: