mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Don't deprecate 'optional' for shared providers
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
99bf7fb994
commit
2231f1e9da
@ -385,8 +385,11 @@ sub process_a_provider() {
|
|||||||
$loose = 1;
|
$loose = 1;
|
||||||
$default_balance = 0;
|
$default_balance = 0;
|
||||||
} elsif ( $option eq 'optional' ) {
|
} elsif ( $option eq 'optional' ) {
|
||||||
warning_message q(The 'optional' provider option is deprecated - use the 'optional' interface option instead);
|
unless ( $shared ) {
|
||||||
set_interface_option $interface, 'optional', 1;
|
warning_message q(The 'optional' provider option is deprecated - use the 'optional' interface option instead);
|
||||||
|
set_interface_option $interface, 'optional', 1;
|
||||||
|
}
|
||||||
|
|
||||||
$optional = 1;
|
$optional = 1;
|
||||||
} elsif ( $option =~ /^src=(.*)$/ ) {
|
} elsif ( $option =~ /^src=(.*)$/ ) {
|
||||||
fatal_error "OPTION 'src' not allowed on shared interface" if $shared;
|
fatal_error "OPTION 'src' not allowed on shared interface" if $shared;
|
||||||
|
@ -211,8 +211,8 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">optional
|
<term><emphasis role="bold">optional (deprecated for use with
|
||||||
(deprecated)</emphasis></term>
|
providers that do not share an interface)</emphasis></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If the interface named in the INTERFACE column is not up
|
<para>If the interface named in the INTERFACE column is not up
|
||||||
@ -220,8 +220,9 @@
|
|||||||
If not specified, the value of the <option>optional</option>
|
If not specified, the value of the <option>optional</option>
|
||||||
option for the INTERFACE in <ulink
|
option for the INTERFACE in <ulink
|
||||||
url="shorewall-interfaces.html">shorewall-interfaces(5)</ulink>
|
url="shorewall-interfaces.html">shorewall-interfaces(5)</ulink>
|
||||||
is assumed. Use of that option is preferred to this
|
is assumed. Use of that option is preferred to this one,
|
||||||
one.</para>
|
unless an <replaceable>address</replaceable> is provider in
|
||||||
|
the INTERFACE column.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
@ -208,7 +208,8 @@
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><emphasis role="bold">optional</emphasis></term>
|
<term><emphasis role="bold">optional</emphasis> (deprecated for
|
||||||
|
use with providers that do not share an interface)</term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>If the interface named in the INTERFACE column is not up
|
<para>If the interface named in the INTERFACE column is not up
|
||||||
@ -216,7 +217,9 @@
|
|||||||
If not specified, the value of the <option>optional</option>
|
If not specified, the value of the <option>optional</option>
|
||||||
option for the INTERFACE in <ulink
|
option for the INTERFACE in <ulink
|
||||||
url="shorewall6-interfaces.html">shorewall6-interfaces(5)</ulink>
|
url="shorewall6-interfaces.html">shorewall6-interfaces(5)</ulink>
|
||||||
is assumed.</para>
|
is assumed. Use of that option is preferred to this one,
|
||||||
|
unless an <replaceable>address</replaceable> is provider in
|
||||||
|
the INTERFACE column.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user