[pve-devel] [PATCH openvswitch 7/7] fix ovs_mtu for bond slaves

Alexandre Derumier aderumier at odiso.com
Thu Feb 13 07:04:21 CET 2020


ovs_mtu can't be applied on bond directly,
it need to be setup on physical interfaces, but only
after they are in the bond.

Easy way to to apply ovs_mtu from bond interfaces, to it's slave
directly
---
 debian/ifupdown.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh
index 8c39b4d..04ce3cc 100755
--- a/debian/ifupdown.sh
+++ b/debian/ifupdown.sh
@@ -83,6 +83,9 @@ if [ "${MODE}" = "start" ]; then
                 for slave in ${IF_OVS_BONDS}
                 do
                     if_up "${slave}"
+                    if [ -n "${IF_OVS_MTU}" ] ; then
+                        ovs-vsctl set Interface "${slave}" mtu_request=${IF_OVS_MTU}
+                    fi
                 done
                 ;;
         OVSPatchPort)
-- 
2.20.1




More information about the pve-devel mailing list