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

update:
    if [ -d /sys/class/net/$VAR(../@) ] ; then
        sudo ip link set $VAR(../@) mtu $VAR(@)
    fi
delete:
    if [ -d /sys/class/net/$VAR(../@) ] ; then
        sudo ip link set $VAR(../@) mtu 1488
    fi