diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-19 10:25:24 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-19 10:25:24 -0700 |
commit | 3153e4a117f0a5b2b4273c91ea6a946f55a1e0cb (patch) | |
tree | 8e2e7bf2266a66bd2c298d6a8f90449f09943fc9 | |
parent | b93e706c85101bf8786640129253ead02c988a7f (diff) | |
download | vyatta-cfg-system-3153e4a117f0a5b2b4273c91ea6a946f55a1e0cb.tar.gz vyatta-cfg-system-3153e4a117f0a5b2b4273c91ea6a946f55a1e0cb.zip |
Use val_help: for interface MTU nodes
-rw-r--r-- | templates/interfaces/bonding/node.tag/mtu/node.def | 1 | ||||
-rw-r--r-- | templates/interfaces/ethernet/node.tag/mtu/node.def | 1 | ||||
-rw-r--r-- | templates/interfaces/tunnel/node.tag/mtu/node.def | 4 |
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 |