summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/ethernet/node.tag/bond-group/node.def10
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(../@)