diff options
author | Tom Gundersen <teg@jklm.no> | 2014-02-20 23:26:07 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-02-20 23:26:52 +0100 |
commit | a03c5fd2d86c4e3f758a5ca0d98638e5c8bd8d8d (patch) | |
tree | 98543ce9405f985fd247b851d07f9ecc0aee854f /man/systemd-networkd.service.xml | |
parent | f28964e353e4bfb83990742be6f258cdcc78c03a (diff) |
man: networkd/udev - add to [Match] documentation
Diffstat (limited to 'man/systemd-networkd.service.xml')
-rw-r--r-- | man/systemd-networkd.service.xml | 77 |
1 files changed, 75 insertions, 2 deletions
diff --git a/man/systemd-networkd.service.xml b/man/systemd-networkd.service.xml index 04fedc56d0..69157b13ef 100644 --- a/man/systemd-networkd.service.xml +++ b/man/systemd-networkd.service.xml @@ -96,6 +96,45 @@ <filename>.netdev</filename>; other extensions are ignored. Virtual network devices are created as soon as networkd is started.</para> + <para>A virtual network device is only created if the + <literal>[Match]</literal> section matches the current + environment, or if the section is empty. The following keys are accepted:</para> + + <variablelist class='network-directives'> + <varlistentry> + <term><varname>Host</varname></term> + <listitem> + <para>Matches against the hostname or machine ID of the + host. See <literal>ConditionHost=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>Virtualization</varname></term> + <listitem> + <para>Checks whether the system is executed in a virtualized + environment and optionally test whether it is a specific + implementation. See <literal>ConditionVirtualization=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>KernelCommandLine</varname></term> + <listitem> + <para>Checks whether a specific kernel command line option is + set (or if prefixed with the exclamation mark unset). See + <literal>ConditionKernelCommandLine=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> + </listitem> + </varlistentry> + </variablelist> + <para>The <literal>[NetDev]</literal> section accepts the following keys:</para> @@ -158,7 +197,8 @@ <term><varname>Path</varname></term> <listitem> <para>The persistent path, as exposed by the udev - property <literal>ID_PATH</literal>.</para> + property <literal>ID_PATH</literal>. May contain shell + style globs.</para> </listitem> </varlistentry> <varlistentry> @@ -181,7 +221,40 @@ <term><varname>Name</varname></term> <listitem> <para>The device name, as exposed by the udev property - <literal>INTERFACE</literal>.</para> + <literal>INTERFACE</literal>. May contain shell style + globs.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>Host</varname></term> + <listitem> + <para>Matches against the hostname or machine ID of the + host. See <literal>ConditionHost=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>Virtualization</varname></term> + <listitem> + <para>Checks whether the system is executed in a virtualized + environment and optionally test whether it is a specific + implementation. See <literal>ConditionVirtualization=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><varname>KernelCommandLine</varname></term> + <listitem> + <para>Checks whether a specific kernel command line option is + set (or if prefixed with the exclamation mark unset). See + <literal>ConditionKernelCommandLine=</literal> in + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> + for details. + </para> </listitem> </varlistentry> </variablelist> |