network: adjust default RequiredForOnline= and RequiredFamilyForOnline= setting
E.g. a bonding port does not support addressing, hence the default
should be 'enslaved'.
Follow-up for 3255bda698.
Closes #27724.
This commit is contained in:
+40
-9
@@ -267,15 +267,8 @@
|
||||
when determining whether the system is online (including when running
|
||||
<command>systemd-networkd-wait-online</command>). When <literal>no</literal>, the network is
|
||||
ignored when determining the online state. When a minimum operational state and an optional
|
||||
maximum operational state are set, <literal>yes</literal> is implied, and this controls the
|
||||
minimum and maximum operational state required for the network interface to be considered
|
||||
online.</para>
|
||||
|
||||
<para>When <literal>yes</literal> is specified for a CAN device,
|
||||
<command>systemd-networkd-wait-online</command> deems that the interface is online when its
|
||||
operational state becomes <literal>carrier</literal>. For an interface with other type, e.g.
|
||||
<literal>ether</literal>, the interface is deened online when its online state is
|
||||
<literal>degraded</literal> or <literal>routable</literal>.</para>
|
||||
maximum operational state are set, <command>systemd-networkd-wait-online</command> deems that the
|
||||
interface is online when the operational state is in the specified range.</para>
|
||||
|
||||
<para>Defaults to <literal>yes</literal> when <varname>ActivationPolicy=</varname> is not
|
||||
set, or set to <literal>up</literal>, <literal>always-up</literal>, or
|
||||
@@ -290,6 +283,44 @@
|
||||
skipped automatically by <command>systemd-networkd-wait-online</command> if
|
||||
<literal>RequiredForOnline=no</literal>.</para>
|
||||
|
||||
<para>The boolean value <literal>yes</literal> is translated as follows;
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><option>CAN devices</option></term>
|
||||
<listitem>
|
||||
<para><literal>carrier</literal>,</para>
|
||||
<xi:include href="version-info.xml" xpointer="v256"/>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>Master devices, e.g. bond or bridge</option></term>
|
||||
<listitem>
|
||||
<para><literal>degraded-carrier</literal> with <varname>RequiredFamilyForOnline=any</varname>,</para>
|
||||
<xi:include href="version-info.xml" xpointer="v256"/>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>Bonding port interfaces</option></term>
|
||||
<listitem>
|
||||
<para><literal>enslaved</literal>,</para>
|
||||
<xi:include href="version-info.xml" xpointer="v256"/>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><option>Other interfaces</option></term>
|
||||
<listitem>
|
||||
<para><literal>degraded</literal>.</para>
|
||||
<xi:include href="version-info.xml" xpointer="v236"/>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
<para>This setting can be overridden by the command line option for
|
||||
<command>systemd-networkd-wait-online</command>. See
|
||||
<citerefentry><refentrytitle>systemd-networkd-wait-online.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||
for more details.</para>
|
||||
|
||||
<xi:include href="version-info.xml" xpointer="v236"/>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user