- Timestamp:
- Jan 17, 2013 4:19:55 PM (12 years ago)
- Branches:
- master
- Children:
- e62fb86
- Parents:
- 4241f3c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/config_from_tunnelip.pl
r4241f3c r84623c3 21 21 my $routedest; # Add host route to this address (if given) 22 22 my $recordfile; # Record interfaces 23 my $forceip; # User overriddedn IP 24 my $forcemask; # User overriddedn netmask 23 25 24 26 # Linux and FreeBSD use slightly different route syntax, so get the OS … … 27 29 28 30 # Option parsing, --destination sets $routedest 29 GetOptions('destination=s' => \$routedest, "record=s" => \$recordfile); 31 GetOptions('destination=s' => \$routedest, "record=s" => \$recordfile, 32 'forceip=s' => \$forceip, 'forcemask=s' => \$forcemask); 30 33 31 34 # Parse out the info about tunnelips … … 41 44 42 45 die "No MAC information for tunnel.\n" unless $mac; 46 47 # Let the user override the IP and mask if they know what they are doing. 48 $ip = $forceip if $forceip; 49 $netmask = $forcemask if $forcemask; 43 50 44 51 # Use the emulab findif command to get the right interface to configure
Note: See TracChangeset
for help on using the changeset viewer.