Clean up of shared optional provider fix

This commit is contained in:
Tom Eastep 2009-04-20 10:28:18 -07:00
parent 1836aa9f79
commit 58fa0fe114

View File

@ -272,16 +272,13 @@ sub add_a_provider( $$$$$$$$ ) {
fatal_error "Configuring multiple providers through one interface requires an explicit gateway" if $shared; fatal_error "Configuring multiple providers through one interface requires an explicit gateway" if $shared;
$gateway = get_interface_gateway $interface; $gateway = get_interface_gateway $interface;
$gatewaycase = 'detect'; $gatewaycase = 'detect';
} elsif ( $gateway && $gateway ne '-' ) {
validate_address $gateway, 0;
$gatewaycase = 'specified';
} else { } else {
$gatewaycase = 'none';
if ( $gateway && $gateway ne '-' ) { fatal_error "Configuring multiple providers through one interface requires a gateway" if $shared;
validate_address $gateway, 0; $gateway = '';
$gatewaycase = 'specified';
} else {
$gatewaycase = 'none';
fatal_error "Configuring multiple providers through one interface requires a gateway" if $shared;
$gateway = '';
}
} }
my $val = 0; my $val = 0;