summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Harpin <development@landsofshadow.co.uk>2014-12-04 22:04:08 +0000
committerAlex Harpin <development@landsofshadow.co.uk>2014-12-04 22:04:08 +0000
commit09f1979c4bf0cfe1e1c60ca48b4d9be3cc5e0454 (patch)
tree1d102f21f4a43d559ab913a0aafc1078fc150d17 /lib
parentd145e830c27ba601d27b6130e54accce65186dda (diff)
downloadvyatta-cfg-vpn-09f1979c4bf0cfe1e1c60ca48b4d9be3cc5e0454.tar.gz
vyatta-cfg-vpn-09f1979c4bf0cfe1e1c60ca48b4d9be3cc5e0454.zip
vyatta-cfg-vpn: update parseVtiTun to account for vti changes
Update the parseVtiTun function to account for the new way of configuring VTIs. Bug #358 http://bugzilla.vyos.net/show_bug.cgi?id=358
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/VPN/vtiIntf.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Vyatta/VPN/vtiIntf.pm b/lib/Vyatta/VPN/vtiIntf.pm
index 79d1551..68ad8cb 100755
--- a/lib/Vyatta/VPN/vtiIntf.pm
+++ b/lib/Vyatta/VPN/vtiIntf.pm
@@ -70,7 +70,7 @@ sub parseVtiTun {
if ($tunop =~ m/local ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/) {
$local = $1;
}
- if ($tunop =~ m/key ([0-9\.]+)/) {
+ if ($tunop =~ m/okey ([0-9\.]+)/) {
$mark = $1;
}
return($remote, $local, $tunName, $mark);