summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/ConfigLoad.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Vyatta/ConfigLoad.pm b/lib/Vyatta/ConfigLoad.pm
index 033aec0..685a63b 100755
--- a/lib/Vyatta/ConfigLoad.pm
+++ b/lib/Vyatta/ConfigLoad.pm
@@ -384,6 +384,7 @@ sub findSetNodes {
sub getConfigDiff {
$active_cfg = new Vyatta::Config;
$new_cfg_ref = shift;
+ my $reverse = shift;
@set_list = ();
# @disable_list = ();
@delete_list = ();
@@ -392,6 +393,11 @@ sub getConfigDiff {
# need to filter out deletions of nodes with default values
my @new_delete_list = ();
+ if ($reverse == 'true') {
+ my @tmp = @delete_list;
+ @delete_list = @set_list;
+ @set_list = @tmp;
+ }
foreach my $del (@delete_list) {
my @comps = map {
my $file = $_;