summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-07-22 11:31:43 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-07-22 11:31:43 -0700
commit7e8506b4d940110b4a659b7984b5a3e7c986afe1 (patch)
treefa3e7a7253bc7539c025defb44cebdfa52649ea3
parente5720dc2ef348c39612dfdc5bf5475fb2b938fa8 (diff)
downloadvyatta-cfg-vpn-7e8506b4d940110b4a659b7984b5a3e7c986afe1.tar.gz
vyatta-cfg-vpn-7e8506b4d940110b4a659b7984b5a3e7c986afe1.zip
remove unused options
* high-level operations should not access CLI implementation details.
-rwxr-xr-xscripts/vpn-config.pl24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 0ee4d94..ffb43c2 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -39,14 +39,10 @@ use Getopt::Long;
use Vyatta::Misc;
use NetAddr::IP;
-my $changes_dir;
-my $newconfig_dir;
my $config_file;
my $secrets_file;
my $init_script;
GetOptions(
- "changes_dir=s" => \$changes_dir,
- "newconfig_dir=s" => \$newconfig_dir,
"config_file=s" => \$config_file,
"secrets_file=s" => \$secrets_file,
"init_script=s" => \$init_script
@@ -71,26 +67,6 @@ $genout_secrets .= "# generated by $0\n\n";
use Vyatta::Config;
my $vc = new Vyatta::Config();
my $vcVPN = new Vyatta::Config();
-
-if ( defined($changes_dir) && $changes_dir ne '' ) {
- $vc->{_changes_only_dir_base} = $changes_dir;
- $vcVPN->{_changes_only_dir_base} = $changes_dir;
-}
-if ( defined($newconfig_dir) && $newconfig_dir ne '' ) {
- $vc->{_new_config_dir_base} = $newconfig_dir;
- $vcVPN->{_new_config_dir_base} = $newconfig_dir;
-}
-
-$genout .=
- "# using 'changes only' directory: $vcVPN->{_changes_only_dir_base}\n";
-$genout .=
- "# using 'new config' directory: $vcVPN->{_new_config_dir_base}\n\n";
-
-$genout_secrets .=
- "# using 'changes only' directory: $vcVPN->{_changes_only_dir_base}\n";
-$genout_secrets .=
- "# using 'new config' directory: $vcVPN->{_new_config_dir_base}\n\n";
-
$vcVPN->setLevel('vpn');
if ( $vcVPN->exists('ipsec') ) {