summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Interface.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-17 13:37:31 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-17 13:52:02 -0700
commit669a71ff62c094399db82624b43ddee68ca08d14 (patch)
tree5ab6c4d47d1963a083c1eb827703d10cb90ab3b0 /lib/Vyatta/Interface.pm
parent99eed204e09b4360a169e81df414eb6c44e74907 (diff)
downloadvyatta-cfg-669a71ff62c094399db82624b43ddee68ca08d14.tar.gz
vyatta-cfg-669a71ff62c094399db82624b43ddee68ca08d14.zip
Fix typo in adsl interface discovery
Need to use correct path when searching config path. (cherry picked from commit 6a75b597533068974477e30fc439f5c6ee285903)
Diffstat (limited to 'lib/Vyatta/Interface.pm')
-rwxr-xr-xlib/Vyatta/Interface.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Vyatta/Interface.pm b/lib/Vyatta/Interface.pm
index 230ccab..b7473dc 100755
--- a/lib/Vyatta/Interface.pm
+++ b/lib/Vyatta/Interface.pm
@@ -115,9 +115,9 @@ sub _ppp_path {
return $path if $config->exists($path);
}
- my $adsl = "interface adsl $intf pvc";
+ my $adsl = "interfaces adsl $intf pvc";
foreach my $pvc ($config->listNodes($adsl)) {
- my $path = "$adsl pvc $pvc $type $id";
+ my $path = "$adsl $pvc $type $id";
return $path if $config->exists($path);
}