summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Hendry <jhendry@mintel.com>2014-11-28 13:10:20 +0000
committerJason Hendry <jhendry@mintel.com>2014-11-28 13:10:20 +0000
commitae70480c3a0def9dcb28e9e33e225e1e22273b0e (patch)
tree6f5ee433e5c968c1a5e3e4b4304d2509a3f92cfb
parentb5a440dd38f8fa8b69ef7c109df0f771819127b6 (diff)
downloadvyatta-op-vpn-ae70480c3a0def9dcb28e9e33e225e1e22273b0e.tar.gz
vyatta-op-vpn-ae70480c3a0def9dcb28e9e33e225e1e22273b0e.zip
Updating another typo, $ike_sa is now $esp_sa
-rw-r--r--lib/OPMode.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm
index 35710f9..f46fb28 100644
--- a/lib/OPMode.pm
+++ b/lib/OPMode.pm
@@ -622,9 +622,9 @@ sub process_tunnels{
# For each tunnel, loop through all ESP SA's and extract data from one most recently used
foreach my $connectid (keys %esp_hash) {
- foreach my $ike_sa (reverse sort {$esp_hash{$a}{last_used} <=> $esp_hash{$b}{last_used}} keys %{$esp_hash{$connectid}}) {
- foreach my $data (keys %{$esp_hash{$connectid}{$ike_sa}}) {
- $tunnel_hash{$connectid}->{$data} = $esp_hash{$connectid}{$ike_sa}{$data} if ($data =~ /^_/);
+ foreach my $esp_sa (reverse sort {$esp_hash{$a}{last_used} <=> $esp_hash{$b}{last_used}} keys %{$esp_hash{$connectid}}) {
+ foreach my $data (keys %{$esp_hash{$connectid}{$esp_sa}}) {
+ $tunnel_hash{$connectid}->{$data} = $esp_hash{$connectid}{$esp_sa}{$data} if ($data =~ /^_/);
}
my $atime = $tunnel_hash{$connectid}->{_lifetime} - $tunnel_hash{$connectid}->{_expire};
$tunnel_hash{$connectid}->{_state} = "up" if ($atime >= 0);