mirror of
https://github.com/siderolabs/talos.git
synced 2025-11-24 20:21:13 +01:00
Adding VLAN as option to machine config under devices. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> feat: Add addressing support for VLAN devices. - Refactors static addressing to not be dependent on machine.Device Signed-off-by: Niklas Wik <niklas.wik@nokia.com> feat: Add addressing support for VLAN devices. - Support of VLAN being the default network to use by removing need of addressing on master device. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: Fix the fmt of go files Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: refactor based on review comment. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: remove unused function Signed-off-by: Niklas Wik <niklas.wik@nokia.com> feat: initial work for supporting vlans Adding VLAN as option to machine config under devices. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> feat: Add addressing support for VLAN devices. - Refactors static addressing to not be dependent on machine.Device Signed-off-by: Niklas Wik <niklas.wik@nokia.com> feat: Add addressing support for VLAN devices. - Support of VLAN being the default network to use by removing need of addressing on master device. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: Fix the fmt of go files Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: refactor based on review comment. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: fix test case function arguments Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: Add log for debugging address configuration failures Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: fix lint issues. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: fix the lint error. Signed-off-by: Niklas Wik <niklas.wik@nokia.com> fix: Fix when addressing set with kernel options Signed-off-by: Niklas Wik <niklas.wik@nokia.com>
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.NetworkInterfacerepresentation - Configure the network interfaces based on the abstract representation (
networkd.Configure(...)) -
- Bring interface up
-
- Begin address configuration method (
address.DHCP,address.Static)
- Begin address configuration method (
-
- Create rtnetlink message to set address based on config method
-
- Create rtnetlink message to set any routes defined by the address method