summaryrefslogtreecommitdiff
path: root/scripts/vyatta-save-config.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-04-13 15:32:55 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2011-04-13 15:32:55 -0700
commitbea24e830d53460703c9bdefd54476080b011450 (patch)
treea940758dd93c205670d54898ed16a09e33a61899 /scripts/vyatta-save-config.pl
parent7659d4706b5c167f826d7ab4ecb2ef4a7eb74d7a (diff)
downloadvyatta-cfg-bea24e830d53460703c9bdefd54476080b011450.tar.gz
vyatta-cfg-bea24e830d53460703c9bdefd54476080b011450.zip
fix for bug 6996
* add "ignore-edit" option for config output. * ignore "edit level" when saving config file.
Diffstat (limited to 'scripts/vyatta-save-config.pl')
-rwxr-xr-xscripts/vyatta-save-config.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-save-config.pl b/scripts/vyatta-save-config.pl
index a9b5779..4af5d97 100755
--- a/scripts/vyatta-save-config.pl
+++ b/scripts/vyatta-save-config.pl
@@ -100,7 +100,8 @@ if ($mode eq 'local') {
}
select $save;
-my @show_cmd = ('cli-shell-api', 'showCfg', '--show-active-only');
+my @show_cmd = ('cli-shell-api', 'showConfig', '--show-active-only',
+ '--show-ignore-edit');
if ($show_default) {
push @show_cmd, '--show-show-defaults';
}