summaryrefslogtreecommitdiff
path: root/lib/Vyatta/ConfigLoad.pm
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-05-25 09:52:45 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-05-25 09:52:45 -0700
commit36ea15e7d9119a19f3541ca16a2b4f13efc8dac7 (patch)
tree87dba45a3f3669243b79e2e64c2f5c051ac703cd /lib/Vyatta/ConfigLoad.pm
parent308ac78af23dbac8d70a172ca5c6cc70c8cd0e31 (diff)
downloadvyatta-cfg-36ea15e7d9119a19f3541ca16a2b4f13efc8dac7.tar.gz
vyatta-cfg-36ea15e7d9119a19f3541ca16a2b4f13efc8dac7.zip
final fix for 5610. fixes loading where node in active config is deactivated and is active in loaded configuration.
Diffstat (limited to 'lib/Vyatta/ConfigLoad.pm')
-rwxr-xr-xlib/Vyatta/ConfigLoad.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm
index 183e598..033aec0 100755
--- a/lib/Vyatta/ConfigLoad.pm
+++ b/lib/Vyatta/ConfigLoad.pm
@@ -405,10 +405,14 @@ sub getConfigDiff {
}
}
+ #let's get active disable nodes
+ my @enable_list = $active_cfg->getAllDeactivated("");;
+
my %diff = (
'delete' => \@new_delete_list,
'set' => \@set_list,
'deactivate' => \@disable_list,
+ 'activate' => \@enable_list,
'comment' => \@comment_list,
);
return %diff;