Generate an error if a bridge port is configured as a provider interface

This commit is contained in:
Tom Eastep 2009-11-06 09:22:16 -08:00
parent 73eab1fa55
commit 4ef45ff665

View File

@ -278,6 +278,7 @@ sub add_a_provider( ) {
}
fatal_error "Unknown Interface ($interface)" unless known_interface $interface;
fatal_error "A bridge port ($interface) may not be configured as a provider interface" if port_to_bridge $interface;
my $provider = chain_base $table;
my $base = uc chain_base $interface;