summaryrefslogtreecommitdiff
path: root/templates/interfaces/vxlan/node.tag/mtu/node.def
blob: 2d01db9173ca259367d1d79441511c3e189a3bc4 (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 1500
    fi