summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-11 12:51:34 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-11 12:51:34 -0500
commit27a86abba8ab1aee64b0b1596e0d87df3ab371cb (patch)
treeaf30be01c2a375df4fa5c4fcc2ef36adc0a10a18 /templates
parent696972c4d2089979fbfc884a9c03a6d2dae5bd25 (diff)
parent676fbdb31cc3164125574db985ddfea790652451 (diff)
downloadvyatta-cfg-quagga-27a86abba8ab1aee64b0b1596e0d87df3ab371cb.tar.gz
vyatta-cfg-quagga-27a86abba8ab1aee64b0b1596e0d87df3ab371cb.zip
Merge branch 'oxnard' of git.vyatta.com:/git/vyatta-cfg-system into oxnard
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/bridge/node.def4
-rw-r--r--templates/interfaces/bridge/node.tag/mac/node.def4
2 files changed, 7 insertions, 1 deletions
diff --git a/templates/interfaces/bridge/node.def b/templates/interfaces/bridge/node.def
index 9deaa0a4..c20b361c 100644
--- a/templates/interfaces/bridge/node.def
+++ b/templates/interfaces/bridge/node.def
@@ -6,6 +6,9 @@ val_help: <brN>; Bridge interface name
syntax:expression: pattern $VAR(@) "^br[0-9]+$" ; "Must be (br0 - br999)"
create: /usr/sbin/brctl addbr $VAR(@)
+ if [ -n "$VAR(mac/@)" ] ; then
+ ip li set dev $VAR(@) address $VAR(mac/@)
+ fi
ip link set $VAR(@) up
delete: if ! /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
@@ -15,4 +18,3 @@ delete: if ! /opt/vyatta/sbin/vyatta-bridgegroup-depedency.pl \
fi
ip link set $VAR(@) down;
/usr/sbin/brctl delbr $VAR(@);
-
diff --git a/templates/interfaces/bridge/node.tag/mac/node.def b/templates/interfaces/bridge/node.tag/mac/node.def
new file mode 100644
index 00000000..5b797830
--- /dev/null
+++ b/templates/interfaces/bridge/node.tag/mac/node.def
@@ -0,0 +1,4 @@
+type: macaddr
+help: Media Access Control (MAC) address
+syntax:expression: exec "\
+ /opt/vyatta/sbin/vyatta-interfaces.pl --dev $VAR(../@) --valid-mac $VAR(@)"