Changeset f8fa72b for fedkit/active_config.pl
- Timestamp:
- Mar 5, 2010 3:26:09 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 444790d
- Parents:
- c119839
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/active_config.pl
rc119839 rf8fa72b 17 17 my $iface_file = "/var/emulab/boot/ifmap"; 18 18 my $ssh = "/usr/bin/ssh"; 19 my $ use_file;19 my $ssh_port = 22; 20 20 21 21 my %opts = ( … … 28 28 'interfaces=s' => \$iface_file, 29 29 'ssh=s' => \$ssh, 30 'ssh_port=s' => \$ssh_port, 30 31 'use_file' => \$use_file, 31 32 ); … … 33 34 exit(20) unless GetOptions(%opts); 34 35 35 gateway_lib::read_config(gateway_lib:: emulab_config_filename(), \%opts)36 gateway_lib::read_config(gateway_lib::config_filename(), \%opts) 36 37 if $use_file; 37 38 … … 56 57 my ($iface, $addr) = ($1, $2); 57 58 58 my $cmd = "$ssh -w $ifnum:$ifnum - o \"Tunnel ethernet\"" .59 "-o \" StrictHostKeyChecking no\" -i $ssh_privkey" .60 " $peer perl -I$fedkit_dir/lib $fedkit_dir/bin/setup_bridge.pl ".61 " --tapno=$ifnum --dest=$addr &";59 my $cmd = "$ssh -w $ifnum:$ifnum -p $ssh_port " . 60 "-o \"Tunnel ethernet\" -o \"StrictHostKeyChecking no\" " . 61 "-i $ssh_privkey $peer perl -I$fedkit_dir/lib ". 62 "$fedkit_dir/bin/setup_bridge.pl --tapno=$ifnum --dest=$addr &"; 62 63 system($cmd); 63 64 die if $?;
Note: See TracChangeset
for help on using the changeset viewer.