summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-20 19:13:18 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-01-20 19:13:18 -0800
commit274c419c1d7f5a97e69e311c838ed1d6c2af24f5 (patch)
tree4294534127f011f974abdf786cae841ab3756d5d /templates
parent8145d65a7b185b78d904d561fdb2420edb01369d (diff)
parent71c37a56ea97a588818391e8c9bd56ace3f0d880 (diff)
downloadvyatta-cfg-quagga-274c419c1d7f5a97e69e311c838ed1d6c2af24f5.tar.gz
vyatta-cfg-quagga-274c419c1d7f5a97e69e311c838ed1d6c2af24f5.zip
Merge branch 'kenwood' of suva.vyatta.com:/git/vyatta-cfg-system into kenwood
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/disable-flow-control/node.def4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
index 10c6c066..b9884121 100644
--- a/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable-flow-control/node.def
@@ -1,4 +1,8 @@
+priority: 320 # Must run after interface is configured.
+
help: Set to disable Ethernet flow control (pause frames)
+
create: sudo ethtool --pause $VAR(../@) autoneg off tx off rx off
+
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
sudo ethtool --pause $VAR(../@) autoneg on tx on rx on