Seán C McCord 5f3485979a fix: do not add empty netconf
When `ip=dhcp` (as well as a few other conditions), the
buildKernelOptions function returns empty.  In these cases, this empty
network config should not be added to the common list for iteration.

fixes #1869

Signed-off-by: Seán C McCord <ulexus@gmail.com>
2020-02-10 05:26:38 -08:00
..
2020-02-10 05:26:38 -08:00

networkd

Networkd handles the addressing and interface configuration in Talos.

The general workflow is:

  • Discover all network interfaces ( networkd.Discover() )
  • Create an abstract representation of the network interface configuration ( nic.NetworkInterface )
  • Merge userdata configuration options on top of the nic.NetworkInterface representation
  • Configure the network interfaces based on the abstract representation ( networkd.Configure(...) )
    • Bring interface up
    • Begin address configuration method ( address.DHCP, address.Static )
    • Create rtnetlink message to set address based on config method
    • Create rtnetlink message to set any routes defined by the address method