summaryrefslogtreecommitdiff
path: root/lib/Vyatta/ConfigLoad.pm
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-06-09 17:10:03 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-06-09 17:10:03 -0700
commit25d68524ca7c9f11d6fa5e0572955377d54d0526 (patch)
tree65f167637a6f02f31f110ee61ab9b24404000283 /lib/Vyatta/ConfigLoad.pm
parent7689250849e5e807cd9b60111d4d3d82d461975e (diff)
downloadvyatta-cfg-25d68524ca7c9f11d6fa5e0572955377d54d0526.tar.gz
vyatta-cfg-25d68524ca7c9f11d6fa5e0572955377d54d0526.zip
fix for bug 5676
Diffstat (limited to 'lib/Vyatta/ConfigLoad.pm')
-rwxr-xr-xlib/Vyatta/ConfigLoad.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm
index 033aec0..47a27ce 100755
--- a/lib/Vyatta/ConfigLoad.pm
+++ b/lib/Vyatta/ConfigLoad.pm
@@ -102,7 +102,14 @@ sub enumerate_branch {
}
if (defined($cur_node->{'disable'})) {
- push @disable_list, join(" ",@cur_path);
+ my $p = join("/",@cur_path[0..$#cur_path-1]);
+ my $leaf = "$ENV{VYATTA_TEMP_CONFIG_DIR}/$p/node.val";
+ if (-e $leaf) {
+ push @disable_list, join(" ",@cur_path[0..$#cur_path-1]);
+ }
+ else {
+ push @disable_list, join(" ",@cur_path);
+ }
}
if ($terminal) {