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

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to