summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-06-19 12:22:19 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-06-19 12:22:19 -0700
commitf2a08bfd0e1d7d7f2e62e81a287fd5cd867db817 (patch)
tree7d43d22d40bf7c5ae6ef2dcbea2f99c89f37f6b0 /templates
parentbb4b1baf77ec14182de00d48767a00523282bbea (diff)
downloadvyatta-cfg-f2a08bfd0e1d7d7f2e62e81a287fd5cd867db817.tar.gz
vyatta-cfg-f2a08bfd0e1d7d7f2e62e81a287fd5cd867db817.zip
Bugfix: 3355
Handle case of user changing SMP affinity configuration of an interface.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/smp_affinity/node.def14
1 files changed, 12 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
index 850d1c1..9d5d289 100644
--- a/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
+++ b/templates/interfaces/ethernet/node.tag/smp_affinity/node.def
@@ -17,6 +17,16 @@ comp_help: Hexidecimal bitmask representing CPUs that this NIC will interrupt
syntax:expression: exec "/opt/vyatta/sbin/vyatta-irqaffin check $VAR(../@) $VAR(@)"
-create:expression: "sudo /opt/vyatta/sbin/vyatta-irqaffin set $VAR(../@) $VAR(@)"; "Error setting CPU affinity mask $VAR(@) on interface $VAR(../@)"
+update:
+ sudo /opt/vyatta/sbin/vyatta-irqaffin set $VAR(../@) $VAR(@)
+ if [ $? -ne 0 ]; then
+ echo "Error setting CPU affinity mask $VAR(@) on interface $VAR(../@)"
+ exit 1
+ fi
-delete:expression: "sudo /opt/vyatta/sbin/vyatta-irqaffin reset $VAR(../@)"; "Error deleting CPU affinity mask on interface $VAR(../@)"
+delete:
+ sudo /opt/vyatta/sbin/vyatta-irqaffin reset $VAR(../@)
+ if [ $? -ne 0 ]; then
+ echo "Error deleting CPU affinity mask on interface $VAR(../@)"
+ exit 1
+ fi