From 49e62acc3a414fca4b4c3ec85c6013374f11930b Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Tue, 4 Dec 2007 15:57:39 -0800 Subject: support displaying the active config --- scripts/vyatta-output-config.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts') 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; -- cgit v1.2.3