summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/bonding/node.tag/mtu/node.def1
-rw-r--r--templates/interfaces/ethernet/node.tag/mtu/node.def1
-rw-r--r--templates/interfaces/tunnel/node.tag/mtu/node.def4
3 files changed, 4 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.tag/mtu/node.def b/templates/interfaces/bonding/node.tag/mtu/node.def
index 82941ea1..4439a4f1 100644
--- a/templates/interfaces/bonding/node.tag/mtu/node.def
+++ b/templates/interfaces/bonding/node.tag/mtu/node.def
@@ -1,5 +1,6 @@
type: u32
help: Maximum Transmission Unit (MTU)
syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and 9000"
+val_help:<68-9000>: Maximum Transmission Unit
update: ip link set $VAR(../@) mtu $VAR(@)
delete: ip link set $VAR(../@) mtu 1500
diff --git a/templates/interfaces/ethernet/node.tag/mtu/node.def b/templates/interfaces/ethernet/node.tag/mtu/node.def
index 043f335e..bb8d3ea4 100644
--- a/templates/interfaces/ethernet/node.tag/mtu/node.def
+++ b/templates/interfaces/ethernet/node.tag/mtu/node.def
@@ -1,6 +1,7 @@
type: u32
help: Maximum Transmission Unit (MTU)
syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and 9000"
+val_help:<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
diff --git a/templates/interfaces/tunnel/node.tag/mtu/node.def b/templates/interfaces/tunnel/node.tag/mtu/node.def
index 44989a92..1fcd3467 100644
--- a/templates/interfaces/tunnel/node.tag/mtu/node.def
+++ b/templates/interfaces/tunnel/node.tag/mtu/node.def
@@ -1,7 +1,7 @@
type: u32
help: Maximum Transmission Unit (MTU)
syntax:expression: $VAR(@) >= 64 && $VAR(@) <= 8024; "Must be between 64-8024"
+val_help:<64-8024>:Maximum Transmission Unit (MTU)
+
update: ip link set $VAR(../@) mtu $VAR(@)
delete: ip link set $VAR(../@) mtu 1476
-comp_help: possible completions:
- <64-8024> Set MTU