diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 10:39:19 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-03 10:39:19 -0800 |
commit | 6528593cf19f4bdd2ed2da6d655fedc7de48cdba (patch) | |
tree | 50a9381390c58007ab6f08058f29dbada05b4024 | |
parent | b02d54681516d3f00cf6975eef3f13531bddf5ff (diff) | |
download | vyatta-cfg-quagga-6528593cf19f4bdd2ed2da6d655fedc7de48cdba.tar.gz vyatta-cfg-quagga-6528593cf19f4bdd2ed2da6d655fedc7de48cdba.zip |
Use vyatta-interfaces.pl to show available bonding devices
-rw-r--r-- | templates/interfaces/ethernet/node.tag/bond-group/node.def | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/templates/interfaces/ethernet/node.tag/bond-group/node.def b/templates/interfaces/ethernet/node.tag/bond-group/node.def index e62e37ab..ea1b63eb 100644 --- a/templates/interfaces/ethernet/node.tag/bond-group/node.def +++ b/templates/interfaces/ethernet/node.tag/bond-group/node.def @@ -1,9 +1,7 @@ type: txt help: Add this interface to a bonding group +syntax:expression: exec \ + "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=bonding" +allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=bonding create: sudo ifenslave $VAR(@) $VAR(../@) -delete: sudo ifenslave -d $VAR(@) $VAR(../@) -allowed: for dev in /sys/class/net/* - do if [[ -d $dev/bonding ]] - then echo -n ${dev##*/} " " - fi - done +delete: sudo ifenslave -d $VAR(@) $VAR(../@) |