From 1ac2935ac9ae14eb63509fbd65a34623406646c9 Mon Sep 17 00:00:00 2001
From: Stig Thormodsrud <stig@vyatta.com>
Date: Wed, 25 Mar 2009 18:20:17 -0700
Subject: Add "interface ethernet <> bridge-group bridge" update tag in
 addition to create tag.

---
 templates/interfaces/ethernet/node.tag/bridge-group/node.def            | 2 ++
 .../interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/templates/interfaces/ethernet/node.tag/bridge-group/node.def b/templates/interfaces/ethernet/node.tag/bridge-group/node.def
index 9309f683..fbff9acd 100644
--- a/templates/interfaces/ethernet/node.tag/bridge-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/bridge-group/node.def
@@ -1,6 +1,8 @@
 help: Add this interface to a bridge group
 
 create: sudo brctl addif $VAR(./bridge/@) $VAR(../@);
+update:expression: "false"; \
+                   "Delete previous bridge group first"
 
 delete: touch /tmp/eth-$VAR(../@)-bridge.$PPID;
 
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
index afd2fc84..7e33b9d5 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.tag/bridge-group/node.def
@@ -1,6 +1,8 @@
 help: Add this interface to a bridge group
 
 create: sudo brctl addif $VAR(./bridge/@) $VAR(../../@).$VAR(../@);
+update:expression: "false"; \
+                   "Delete previous bridge group first"
 
 delete: touch /tmp/eth-$VAR(../@)-bridge.$PPID;
 
-- 
cgit v1.2.3