diff options
Diffstat (limited to 'lib/Vyatta/ConfigLoad.pm')
-rwxr-xr-x | lib/Vyatta/ConfigLoad.pm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm index 54befc6..28e932e 100755 --- a/lib/Vyatta/ConfigLoad.pm +++ b/lib/Vyatta/ConfigLoad.pm @@ -87,13 +87,16 @@ sub enumerate_branch { push @cur_path, $val; } if (defined $cur_node->{'disable'}) { - push @all_naked_nodes, [ '!', @cur_path ]; + push @all_naked_nodes, [ '!', @cur_path ]; + my @qpath = applySingleQuote(@cur_path); + unshift(@qpath,'!'); + push @all_nodes, [\@qpath, 0]; } else { push @all_naked_nodes, [ @cur_path ]; + my @qpath = applySingleQuote(@cur_path); + push @all_nodes, [\@qpath, 0]; } - my @qpath = applySingleQuote(@cur_path); - push @all_nodes, [\@qpath, 0]; } } |