summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 11:31:21 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-12-02 11:31:21 -0800
commit28739d06c9442229ded7393b9cdd5affdfd6e6b2 (patch)
tree2695c2fe418a2c343db8f6833cc2f5e55d3ba13f
parent3030728407b3d6d03c7ba6c846560e5e57162048 (diff)
downloadvyatta-cfg-system-28739d06c9442229ded7393b9cdd5affdfd6e6b2.tar.gz
vyatta-cfg-system-28739d06c9442229ded7393b9cdd5affdfd6e6b2.zip
Fix delete of mac address on bonding interface
Bug 6489 Bonding device is a pseudo-device without hw-id, so deleting mac does nothing.
-rw-r--r--templates/interfaces/bonding/node.tag/mac/node.def3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/interfaces/bonding/node.tag/mac/node.def b/templates/interfaces/bonding/node.tag/mac/node.def
index 9b5feacd..c315af71 100644
--- a/templates/interfaces/bonding/node.tag/mac/node.def
+++ b/templates/interfaces/bonding/node.tag/mac/node.def
@@ -3,5 +3,4 @@ help: Media Access Control (MAC) address
syntax:expression: exec "\
/opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(../@) --valid-mac $VAR(@)"
update: /opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(../@) --set-mac $VAR(@)
-delete: /opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(../@) --set-mac $VAR(../hw-id/@)
-
+# delete does nothing since there is no hardware original value