summaryrefslogtreecommitdiff
path: root/scripts/vyatta-output-config.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 15:57:39 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2007-12-04 15:57:39 -0800
commit49e62acc3a414fca4b4c3ec85c6013374f11930b (patch)
tree69cd7047609a68a6335b6ef3af0868e2416e813a /scripts/vyatta-output-config.pl
parentbf5bdcf31905913f6a3830f1ca07696c7f5c9c84 (diff)
downloadvyatta-cfg-49e62acc3a414fca4b4c3ec85c6013374f11930b.tar.gz
vyatta-cfg-49e62acc3a414fca4b4c3ec85c6013374f11930b.zip
support displaying the active config
Diffstat (limited to 'scripts/vyatta-output-config.pl')
-rwxr-xr-xscripts/vyatta-output-config.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/vyatta-output-config.pl b/scripts/vyatta-output-config.pl
index 8b25ec2..8eb0be8 100755
--- a/scripts/vyatta-output-config.pl
+++ b/scripts/vyatta-output-config.pl
@@ -8,6 +8,11 @@ if ($ARGV[0] eq '-all') {
shift;
VyattaConfigOutput::set_show_all(1);
}
-VyattaConfigOutput::outputNewConfig(@ARGV);
+if ($ARGV[0] eq '-active') {
+ shift;
+ VyattaConfigOutput::outputActiveConfig(@ARGV);
+} else {
+ VyattaConfigOutput::outputNewConfig(@ARGV);
+}
exit 0;