When adding an IP address to an interface, we need to add vlan flows for
the untagged vlan. Since the assignment flows require physical ports,
we need to have them for all bond members.
Currently we do not add or a remove them when adding new members, so the
following flow would fail:
sudo ip link add name bond1 type bond mode active-backup
sudo ip link set port1 master bond1
sudo ip address add 10.0.0.1/24 dev bond1
sudo ip link set port2 master bond1
To fix this, add a new helper to know if a (bond) interface has any ip
addresses configured, and add the default vlan configuration to the port
in that case.
When adding an IP address to an interface, we need to add vlan flows for the untagged vlan. Since the assignment flows require physical ports, we need to have them for all bond members.
Currently we do not add or a remove them when adding new members, so the following flow would fail:
To fix this, add a new helper to know if a (bond) interface has any ip addresses configured, and add the default vlan configuration to the port in that case.
client_flowtable_dump 10 output:
Before:
After:
Signed-off-by: Jonas Gorski jonas.gorski@bisdn.de