Ignore:
Timestamp:
Feb 10, 2010 10:29:18 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
bbd0039
Parents:
b73cc45
Message:

Add support for parameters via files in a standard emulab location

Also moved combo_active.pl to combo.pl and added support for passive gateways.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/active_config.pl

    rb73cc45 r8d4e4fb  
    1515my $fedkit_dir= "/usr/local/federation";
    1616my $perl = "/usr/bin/perl";
    17 my $iface_file;
     17my $iface_file = "/var/emulab/boot/ifmap";
    1818my $ssh = "/usr/bin/ssh";
     19my $use_file;
    1920
    20 exit(20) unless GetOptions(
     21my %opts = (
    2122    'ssh_pubkey=s' => \$ssh_pubkey,
    2223    'ssh_privkey=s' => \$ssh_privkey,
     
    2728    'interfaces=s' => \$iface_file,
    2829    'ssh=s' => \$ssh,
     30    'use_file' => \$use_file,
    2931);
    3032
     33exit(20) unless GetOptions(%opts);
     34
     35gateway_lib::read_config(gateway_lib::emulab_config_filename(), \%opts)
     36    if $use_file;
    3137
    3238my $tunnelparam = $tunnelip ? '--tunnelip' : '';
     
    109115connectivity information
    110116
     117=item B<use_file>
     118
     119If given read additional parameters from the file in
     120/proj/I<project>/exp/I<experiment/tmp/I<hostname>.gw/conf where those are the
     121current testbed project and experiment and the hostname is before the first
     122dot.  The file is option: value.
     123
     124
    111125=back
    112126
Note: See TracChangeset for help on using the changeset viewer.