diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 15:57:39 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-12-04 15:57:39 -0800 |
commit | 49e62acc3a414fca4b4c3ec85c6013374f11930b (patch) | |
tree | 69cd7047609a68a6335b6ef3af0868e2416e813a /scripts/vyatta-output-config.pl | |
parent | bf5bdcf31905913f6a3830f1ca07696c7f5c9c84 (diff) | |
download | vyatta-cfg-49e62acc3a414fca4b4c3ec85c6013374f11930b.tar.gz vyatta-cfg-49e62acc3a414fca4b4c3ec85c6013374f11930b.zip |
support displaying the active config
Diffstat (limited to 'scripts/vyatta-output-config.pl')
-rwxr-xr-x | scripts/vyatta-output-config.pl | 7 |
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; |