forked from extern/shorewall_code
Issue warning if a persistent provider isn't optional
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
514fe76fa5
commit
f822afef99
@ -661,6 +661,10 @@ sub process_a_provider( $ ) {
|
|||||||
fatal_error 'A non-empty COPY column requires that a routing table be specified in the DUPLICATE column' unless $copy eq 'none';
|
fatal_error 'A non-empty COPY column requires that a routing table be specified in the DUPLICATE column' unless $copy eq 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $persistent ) {
|
||||||
|
warning_message( "Provider $table is not optional -- the 'persistent' option is ignored" ), $persistent = 0 unless $optional;
|
||||||
|
}
|
||||||
|
|
||||||
$providers{$table} = { provider => $table,
|
$providers{$table} = { provider => $table,
|
||||||
number => $number ,
|
number => $number ,
|
||||||
id => $config{USE_RT_NAMES} ? $table : $number,
|
id => $config{USE_RT_NAMES} ? $table : $number,
|
||||||
|
Loading…
Reference in New Issue
Block a user