summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-02-27 18:35:56 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2009-02-27 18:35:56 -0800
commit92bf151c588e3963c658863daa2db3415426cdfb (patch)
tree8e8068c4ea7d8cc7a7e9101eff91819768121aca /templates
parent465c7ca1f843763d85ce715019c453dcf22ebd9e (diff)
downloadvyatta-cfg-quagga-92bf151c588e3963c658863daa2db3415426cdfb.tar.gz
vyatta-cfg-quagga-92bf151c588e3963c658863daa2db3415426cdfb.zip
up the bridge interface when it's created
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bridge/node.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def
index 2b0eb34c..e70c9041 100644
--- a/templates/interfaces/bridge/node.def
+++ b/templates/interfaces/bridge/node.def
@@ -5,6 +5,7 @@ help: Set bridge interface
syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
create: sudo brctl addbr $VAR(@)
+ sudo ip link set $VAR(@) up
delete: if [ -n "`ls /sys/class/net/$VAR(@)/brif`" ]; then
echo "Interfaces are still assigned to bridge $VAR(@)";