summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-15 13:56:21 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-15 13:56:21 -0800
commit03f1e53107db0dff8e0d75339fafc0b9132027be (patch)
tree678c41a659053e0d544abd043f2f5215497fe6d8
parent8e4be2a93cb7ee4ace5aaa11862ae021658eaa50 (diff)
parentc43e40ca09a20c1af5706fbe629442138a6dbede (diff)
downloadvyatta-cfg-quagga-03f1e53107db0dff8e0d75339fafc0b9132027be.tar.gz
vyatta-cfg-quagga-03f1e53107db0dff8e0d75339fafc0b9132027be.zip
Merge branch 'mendocino' of vm:rel/vyatta-cfg-system into mendocino
-rw-r--r--templates/interfaces/ethernet/node.tag/disable/node.def10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/interfaces/ethernet/node.tag/disable/node.def b/templates/interfaces/ethernet/node.tag/disable/node.def
index 92f150dd..c3f9a9a0 100644
--- a/templates/interfaces/ethernet/node.tag/disable/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable/node.def
@@ -1,12 +1,16 @@
help: Disable interface
+
create: /etc/netplug/linkdown.d/dhclient $VAR(../@)
if ! ip link set $VAR(../@) down 2>/dev/null; then
- echo "Error disabling dev $VAR(../@)"
- /etc/netplug/linkup.d/dhclient $VAR(../@)
- exit 1
+ echo "Error disabling dev $VAR(../@)"
+ /etc/netplug/linkup.d/dhclient $VAR(../@)
+ exit 1
fi
+
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
if ! ip link set $VAR(../@) up; then
echo "Error enabling dev $VAR(../@)"
exit 1
fi
+ affinity=$VAR(../smp_affinity/@)
+ sudo /opt/vyatta/sbin/irq-affinity.pl $VAR(../@) ${affinity:-auto}