summaryrefslogtreecommitdiff
path: root/scripts/vyatta-interfaces.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-interfaces.pl')
-rwxr-xr-xscripts/vyatta-interfaces.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl
index cbb6abf6..5b7f2cee 100755
--- a/scripts/vyatta-interfaces.pl
+++ b/scripts/vyatta-interfaces.pl
@@ -537,6 +537,8 @@ sub show_config_path {
die "$name does not match any known interface name type\n"
unless $intf;
my $level = $intf->path();
+ die "$name does not have a known path\n" unless $level;
+
$level =~ s/ /\//g;
print "/opt/vyatta/config/active/$level\n";
}