[16:12] <Akos> Hi. I'm setting up bonding with netplan for the first time, and for some reason, it will always end up in 'load balancing (round-robin)' mode, irrespective of what I set the mode to be in the config. I wonder what could be wrong?
[16:12] <Akos> my config, for example:"
[16:12] <Akos> network:   version: 2   ethernets:     enp2s0f0:       dhcp4: no       dhcp6: no     enp2s0f1:       dhcp4: no       dhcp6: no   bonds:     bond0:       addresses: [192.168.1.11/24]       routes:        - to: default          via: 192.168.1.1          metric: 100       nameservers:         addresses: [192.168.1.1]       interfaces:         - enp2s0f0         - enp2s0f1       parameters:         mod
[16:13] <Akos> and this is what the bond device ends up with after netplan apply:
[16:13] <Akos> # cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v5.15.0-91-generic  Bonding Mode: load balancing (round-robin) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Peer Notification Delay (ms): 0  Slave Interface: enp2s0f1 MII Status: up Speed: 1000 Mbps Duplex: full Link Failure Count: 9 Permanent HW addr: b8:83:03:4b:d3:17 Slave queue ID: 0  Slave Inter
[16:23] <danilogondolfo> Hi, what is the package version?
[16:24] <Akos> may  be related to this bug actually: https://bugs.launchpad.net/ubuntu/+source/nplan/+bug/1746419
[16:26] <Akos> yes, a full reboot makes the bonding mode change, but a netplan apply won't
[16:28] <Akos> package version: # apt search netplan Sorting... Done Full Text Search... Done libnetplan-dev/jammy-updates 0.106.1-7ubuntu0.22.04.2 amd64   Development files for netplan's libnetplan runtime library  libnetplan0/jammy-updates,now 0.106.1-7ubuntu0.22.04.2 amd64 [installed,automatic]   YAML network configuration abstraction runtime library  netplan.io/jammy-updates,now 0.106.1-7ubuntu0.22.04.2 amd64
[16:32] <danilogondolfo> right, yeah that seems to be the same problem described in the bug report. Netplan will not delete the system interface when you apply the configuration. You could also do "ip link del bond0" and netplan apply again.
[16:32] <danilogondolfo> Feel free to mention that you were affected by this problem so the bug will gain more traction
[16:46] <Akos> done - thank you