...
bridges:
ovs0:
addresses: [10.5.48.11/20]
interfaces: [patch0-1, eth0, bond0]
openvswitch:
protocols: [OpenFlow10, OpenFlow11, OpenFlow12]
controller:
addresses: [unix:/var/run/openvswitch/ovs0.mgmt]
connection-mode: out-of-band
fail-mode: secure
mcast-snooping: true
external-ids:
iface-id: myhostname
other-config:
disable-in-band: true
While netplan's documentation states that
openvswitchoption applies only to physical devices, it actually also works withbridgeinterfaces.It can be seen in netplan's repo's example: https://github.com/canonical/netplan/blob/main/examples/openvswitch.yaml