diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-03 18:56:30 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-03 18:56:30 -0700 |
commit | 9719a625221cc3e74e4c73c4ae223456987d0ac1 (patch) | |
tree | 1183e1eafd52cd3a3b08105aa0b7fa1e3d2711de /lib/Vyatta/ConfigLoad.pm | |
parent | 005d00c7361c3793708baba0d158b19e7d79b64b (diff) | |
download | vyatta-cfg-9719a625221cc3e74e4c73c4ae223456987d0ac1.tar.gz vyatta-cfg-9719a625221cc3e74e4c73c4ae223456987d0ac1.zip |
remove "def" and "node.val" usage from high-level operations.
Diffstat (limited to 'lib/Vyatta/ConfigLoad.pm')
-rwxr-xr-x | lib/Vyatta/ConfigLoad.pm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm index 55ba76b..960240c 100755 --- a/lib/Vyatta/ConfigLoad.pm +++ b/lib/Vyatta/ConfigLoad.pm @@ -290,15 +290,13 @@ sub findDeletedNodes { my $new_ref = $_[0]; my @active_path = @{$_[1]}; $active_cfg->setLevel(join ' ', @active_path); + if ($active_cfg->isLeafNode()) { + findDeletedValues($new_ref, \@active_path); + return; + } + # not a leaf node my @active_nodes = $active_cfg->listOrigNodesDA(); foreach (@active_nodes) { - if ($_ eq 'def') { - next; - } - if ($_ eq 'node.val') { - findDeletedValues($new_ref, \@active_path); - next; - } if (!defined($new_ref->{$_})) { my @plist = applySingleQuote(@active_path, $_); push @delete_list, [\@plist, 0]; |