summaryrefslogtreecommitdiff
path: root/scripts/vyatta-output-config.pl
blob: 65169f688d813fa6842a87148c372e09ff8a2813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use strict;
use lib "/opt/vyatta/share/perl5/";
use VyattaConfigOutput;

if ($ARGV[0] eq '-all') {
  shift;
  VyattaConfigOutput::set_show_all(1);
}
if ($ARGV[0] eq '-active') {
  shift;
  VyattaConfigOutput::set_hide_password(1);
  VyattaConfigOutput::outputActiveConfig(@ARGV);
} else {
  VyattaConfigOutput::outputNewConfig(@ARGV);
}
exit 0;