diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-07-11 12:34:28 -0500 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-07-11 12:52:55 -0500 |
commit | 982c65b580a097a461aff1db2c467df2b42fea6d (patch) | |
tree | 633e0ee78dacdad205f93ae3c2a8964930204bfd | |
parent | ac8ea98e54071447bdde4a137bacdbbe56c861db (diff) | |
download | vyatta-op-vpn-982c65b580a097a461aff1db2c467df2b42fea6d.tar.gz vyatta-op-vpn-982c65b580a097a461aff1db2c467df2b42fea6d.zip |
Bugfix 7316: remove next-hop router from vpn connection line before parsing since we don't display it currently
(cherry picked from commit 42a754b96d8d0964a5b828722081edfbc007ad3f)
-rw-r--r-- | lib/OPMode.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/OPMode.pm b/lib/OPMode.pm index c6991b0..b94a1e0 100644 --- a/lib/OPMode.pm +++ b/lib/OPMode.pm @@ -217,6 +217,7 @@ sub process_tunnels{ _lifetime => 'n/a', _expire => 'n/a' }; } + $line =~ s/---.*\.\.\./.../g; # remove the next hop router for local-ip 0.0.0.0 case if ($line =~ /IKE.proposal:(.*?)\/(.*?)\/(.*)/){ $tunnel_hash{$connectid}->{_ikeencrypt} = $1; $tunnel_hash{$connectid}->{_ikehash} = $2; |