diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 08:54:21 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 10:39:39 -0800 |
commit | a9e83d88376ff508f1ae77e7c574bff4c9626a6c (patch) | |
tree | 7a6b9a4ffad13e07eef5559d42752c9742e2181a /templates | |
parent | 6528593cf19f4bdd2ed2da6d655fedc7de48cdba (diff) | |
download | vyatta-cfg-quagga-a9e83d88376ff508f1ae77e7c574bff4c9626a6c.tar.gz vyatta-cfg-quagga-a9e83d88376ff508f1ae77e7c574bff4c9626a6c.zip |
Use vyatta-interfaces.pl to check bridge validity
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def index 79609a86..1a6cf437 100644 --- a/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def +++ b/templates/interfaces/ethernet/node.tag/bridge-group/bridge/node.def @@ -1,11 +1,6 @@ type: txt help: Set this interface to a bridge-group -syntax:expression: exec " \ - if [ -z \"`sudo brctl show | grep $VAR(@) `\" ]; then \ - echo bridge interface $VAR(@) doesn\\'t exist on this system ; \ - exit 1 ; \ - fi ; " +syntax:expression: exec \ + "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bridge" +allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=bridge delete: echo $VAR(@) > /tmp/bridge-no.$PPID -allowed: local -a array ; - array=( /sys/class/net/br* ) ; - echo -n ${array[@]##*/} |