Skip to content

Refactor network link selection

Niels Möller requested to merge nisse/refactor-network-link-selection into main

The intended behavior, as I understand it:

  1. If bonding is set, use only the bonded link (the 802.3ad "Aggregator")

  2. With no bonding A If NetworkInterfaces is unset, use all non-loopback links B If NetworkInterfaces is set, use only links with configured MAC addresses, but fall back to (A) if none of the MAC addresses is found.

  3. For static configuration, try bringing up those links one at a time, stop at first success.

  4. For dhcp configuration, run dhcp client on all those links. I think this also returns on first success, before waiting for dhcp to complete on all links (and without cancelling any dhcp work still in progress).

Merge request reports