summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2008-07-23 14:45:24 +0000
committerMohit Mehta <mohit.mehta@vyatta.com>2008-07-23 14:45:24 +0000
commit1ac0df0545fd2a467cc96a5b09cb6bb69e1430f6 (patch)
treebc14d34d7e2a663d8057894d92d43e7d4351731e /templates/interfaces
parent4b246014e42b2ab0ea0736b4bb422132de3fa458 (diff)
downloadvyatta-cfg-1ac0df0545fd2a467cc96a5b09cb6bb69e1430f6.tar.gz
vyatta-cfg-1ac0df0545fd2a467cc96a5b09cb6bb69e1430f6.zip
Fix bug 3318
dont't create unnecessary temporary files, use already created file in active config to retrieve mtu value
Diffstat (limited to 'templates/interfaces')
-rw-r--r--templates/interfaces/ethernet/node.tag/mtu/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/mtu/node.def b/templates/interfaces/ethernet/node.tag/mtu/node.def
index 74c238a..07c102a 100644
--- a/templates/interfaces/ethernet/node.tag/mtu/node.def
+++ b/templates/interfaces/ethernet/node.tag/mtu/node.def
@@ -1,5 +1,5 @@
type: u32
help: Set the Maximum Transmission Unit (MTU) for this interface
syntax:expression: $VAR(@) >= 68 && $VAR(@) <= 9000; "MTU must be between 68 and 9000"
-update:expression: "sudo ip link set $VAR(../@) mtu $VAR(@) && echo $VAR(@) > /tmp/dhclient_mtu_check_$VAR(../@)"; "Error setting MTU on dev $VAR(../@)"
-delete:expression: "sudo ip link set $VAR(../@) mtu 1500 && rm -f /tmp/dhclient_mtu_check_$VAR(../@)"; "Error deleting MTU on dev $VAR(../@)"
+update:expression: "sudo ip link set $VAR(../@) mtu $VAR(@)"; "Error setting MTU on dev $VAR(../@)"
+delete:expression: "sudo ip link set $VAR(../@) mtu 1500"; "Error deleting MTU on dev $VAR(../@)"