pve-manager/mtu
Alexandre Derumier c7bee4c675 add mtu support for manual interfaces
tested with classic linux interfaces/bridge and openvswitch interfaces

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2013-12-31 10:15:31 +01:00

17 lines
236 B
Bash
Executable File

#!/bin/sh
case "$IFACE" in
# Ignore any alias (#272891) which uses <interface>:<alabel>
*:*)
exit 0
;;
esac
if [ "$METHOD" != manual ]; then
exit 0
fi
if [ -n "$IF_MTU" ]; then
ip link set $IFACE mtu $IF_MTU
fi