summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet/node.tag/mtu/node.def
blob: e846bd9daf5816e13d2d4048b37165cc8cf75634 (plain)
1
2
3
4
5
6
7
8
9
10
11
type: u32
priority: 381
help: Maximum Transmission Unit (MTU)
syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and 9000"
val_help: u32:68-9000; Maximum Transmission Unit (MTU)

update: if ! ip link set $VAR(../@) mtu $VAR(@)
        then echo "Error setting MTU on dev $VAR(../@)"; exit 1
        fi
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
        ip link set $VAR(../@) mtu 1500