Configuring Network Device Using Device Selector
deviceSelector is an alternative method of configuring a network device:
- qualifiers match a device by reading the hardware information in
/sys/class/net/... - qualifiers are applied using logical
AND machine.network.interfaces.deviceConfigoption is mutually exclusive withmachine.network.interfaces.interface- if the selector matches multiple devices, the controller will apply config to all of them
LinkStatus resource (works in maintenance mode):
driver- matches a device by its driver namehardwareAddr- matches a device by its hardware addressbusPath- matches a device by its PCI bus pathpciID- matches a device by its PCI vendor and device IDphysical- matches only physical devices (vs. virtual devices, e.g. bonds and VLANs)
physical support wildcard matching using * character.
Using Device Selector for Bonding
Device selectors can be used to configure bonded interfaces:bond0 interface will be created and bonded using two devices with the specified hardware addresses.