From a03c5fd2d86c4e3f758a5ca0d98638e5c8bd8d8d Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 20 Feb 2014 23:26:07 +0100 Subject: [PATCH] man: networkd/udev - add to [Match] documentation --- man/systemd-networkd.service.xml | 77 +++++++++++++++++++++++++++++++- man/udev.xml | 32 ++++++++++++- 2 files changed, 106 insertions(+), 3 deletions(-) diff --git a/man/systemd-networkd.service.xml b/man/systemd-networkd.service.xml index 04fedc56d..69157b13e 100644 --- a/man/systemd-networkd.service.xml +++ b/man/systemd-networkd.service.xml @@ -96,6 +96,45 @@ .netdev; other extensions are ignored. Virtual network devices are created as soon as networkd is started. + A virtual network device is only created if the + [Match] section matches the current + environment, or if the section is empty. The following keys are accepted: + + + + Host + + Matches against the hostname or machine ID of the + host. See ConditionHost= in + systemd.unit5 + for details. + + + + + Virtualization + + Checks whether the system is executed in a virtualized + environment and optionally test whether it is a specific + implementation. See ConditionVirtualization= in + systemd.unit5 + for details. + + + + + KernelCommandLine + + Checks whether a specific kernel command line option is + set (or if prefixed with the exclamation mark unset). See + ConditionKernelCommandLine= in + systemd.unit5 + for details. + + + + + The [NetDev] section accepts the following keys: @@ -158,7 +197,8 @@ Path The persistent path, as exposed by the udev - property ID_PATH. + property ID_PATH. May contain shell + style globs. @@ -181,7 +221,40 @@ Name The device name, as exposed by the udev property - INTERFACE. + INTERFACE. May contain shell style + globs. + + + + Host + + Matches against the hostname or machine ID of the + host. See ConditionHost= in + systemd.unit5 + for details. + + + + + Virtualization + + Checks whether the system is executed in a virtualized + environment and optionally test whether it is a specific + implementation. See ConditionVirtualization= in + systemd.unit5 + for details. + + + + + KernelCommandLine + + Checks whether a specific kernel command line option is + set (or if prefixed with the exclamation mark unset). See + ConditionKernelCommandLine= in + systemd.unit5 + for details. + diff --git a/man/udev.xml b/man/udev.xml index c053a86d3..3dd2b489f 100644 --- a/man/udev.xml +++ b/man/udev.xml @@ -799,7 +799,8 @@ Path - The persistent path, as exposed by the udev property ID_PATH. + The persistent path, as exposed by the udev property ID_PATH. + May contain shell style globs. @@ -815,6 +816,35 @@ The device type, as exposed by the udev property DEVTYPE. + + Host + + Matches against the hostname or machine ID of the + host. See ConditionHost= in + systemd.unit5 + for details. + + + + Virtualization + + Checks whether the system is executed in a virtualized + environment and optionally test whether it is a specific + implementation. See ConditionVirtualization= in + systemd.unit5 + for details. + + + + KernelCommandLine + + Checks whether a specific kernel command line option is + set (or if prefixed with the exclamation mark unset). See + ConditionKernelCommandLine= in + systemd.unit5 + for details. + + The [Link] section accepts the following keys: -- 2.30.2