diff --git a/man/systemd.link.xml b/man/systemd.link.xml index 1d6fbf9fb8..5f5930adf5 100644 --- a/man/systemd.link.xml +++ b/man/systemd.link.xml @@ -365,6 +365,20 @@ + + + MachineTag= + + Matches against the tags assigned to the local machine. See + ConditionMachineTag= in + systemd.unit5 + for details. When prefixed with an exclamation mark (!), the result is negated. + If an empty string is assigned, the previously assigned value is cleared. + + + + + diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml index 6879518b4b..66d5334b37 100644 --- a/man/systemd.netdev.xml +++ b/man/systemd.netdev.xml @@ -230,6 +230,7 @@ + diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 971dce73fc..6b988e0e47 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -165,6 +165,7 @@ + diff --git a/src/network/netdev/netdev-gperf.gperf b/src/network/netdev/netdev-gperf.gperf index 269a974542..70af349108 100644 --- a/src/network/netdev/netdev-gperf.gperf +++ b/src/network/netdev/netdev-gperf.gperf @@ -52,6 +52,7 @@ Match.Version, config_parse_net_condition, Match.Credential, config_parse_net_condition, CONDITION_CREDENTIAL, offsetof(NetDev, conditions) Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(NetDev, conditions) Match.Firmware, config_parse_net_condition, CONDITION_FIRMWARE, offsetof(NetDev, conditions) +Match.MachineTag, config_parse_net_condition, CONDITION_MACHINE_TAG, offsetof(NetDev, conditions) NetDev.Description, config_parse_string, 0, offsetof(NetDev, description) NetDev.Name, config_parse_ifname, 0, offsetof(NetDev, ifname) NetDev.Kind, config_parse_netdev_kind, 0, offsetof(NetDev, kind) diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index 81b9784b49..0b598f131d 100644 --- a/src/network/networkd-network-gperf.gperf +++ b/src/network/networkd-network-gperf.gperf @@ -94,6 +94,7 @@ Match.Version, config_parse_net_condition, Match.Credential, config_parse_net_condition, CONDITION_CREDENTIAL, offsetof(Network, conditions) Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(Network, conditions) Match.Firmware, config_parse_net_condition, CONDITION_FIRMWARE, offsetof(Network, conditions) +Match.MachineTag, config_parse_net_condition, CONDITION_MACHINE_TAG, offsetof(Network, conditions) Link.MACAddress, config_parse_hw_addr, 0, offsetof(Network, hw_addr) Link.MTUBytes, config_parse_mtu, AF_UNSPEC, offsetof(Network, mtu) Link.Group, config_parse_link_group, 0, 0 diff --git a/src/udev/net/link-config-gperf.gperf b/src/udev/net/link-config-gperf.gperf index a005cadd49..535c9e9dbb 100644 --- a/src/udev/net/link-config-gperf.gperf +++ b/src/udev/net/link-config-gperf.gperf @@ -40,6 +40,7 @@ Match.Version, config_parse_net_condition, Match.Credential, config_parse_net_condition, CONDITION_CREDENTIAL, offsetof(LinkConfig, conditions) Match.Architecture, config_parse_net_condition, CONDITION_ARCHITECTURE, offsetof(LinkConfig, conditions) Match.Firmware, config_parse_net_condition, CONDITION_FIRMWARE, offsetof(LinkConfig, conditions) +Match.MachineTag, config_parse_net_condition, CONDITION_MACHINE_TAG, offsetof(LinkConfig, conditions) Link.Description, config_parse_string, 0, offsetof(LinkConfig, description) /* udev property */ Link.Property, config_parse_udev_property, 0, offsetof(LinkConfig, properties)