From 28739d06c9442229ded7393b9cdd5affdfd6e6b2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 2 Dec 2010 11:31:21 -0800 Subject: Fix delete of mac address on bonding interface Bug 6489 Bonding device is a pseudo-device without hw-id, so deleting mac does nothing. --- templates/interfaces/bonding/node.tag/mac/node.def | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'templates/interfaces') 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 -- cgit v1.2.3