summaryrefslogtreecommitdiff
path: root/templates/protocols/ripng/interface/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/protocols/ripng/interface/node.def')
-rw-r--r--templates/protocols/ripng/interface/node.def12
1 files changed, 3 insertions, 9 deletions
diff --git a/templates/protocols/ripng/interface/node.def b/templates/protocols/ripng/interface/node.def
index 4aa81139..3a967735 100644
--- a/templates/protocols/ripng/interface/node.def
+++ b/templates/protocols/ripng/interface/node.def
@@ -1,21 +1,15 @@
multi:
type: txt
help: Set interface name
-
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
syntax:expression: exec " \
if [ -z \"`ip addr | grep $VAR(@) `\" ]; then \
echo ethernet interface $VAR(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
-create: vyatta-vtysh -c "configure terminal" \
- -c "router ripng" \
+create: vyatta-vtysh -c "configure terminal" -c "router ripng" \
-c "network $VAR(@)"
-delete: vyatta-vtysh -c "configure terminal" \
- -c "router ripng" \
+delete: vyatta-vtysh -c "configure terminal" -c "router ripng" \
-c "no network $VAR(@)"
-
-allowed: local -a array;
- array=( /sys/class/net/{eth,vmnet}* ) ;
- echo -n ${array[@]##*/}