summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/interfaces/ethernet/node.def7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index 1886458..55d0a85 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -8,12 +8,7 @@ syntax:expression: exec " \
echo \"Ethernet interface does not exist: $VAR(@)\"; \
exit 1; \
fi"
-
+allowed: /opt/vyatt/sbin/vyatta-interfaces.pl --show=ethernet
update: sudo ip link set "$VAR(@)" up
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: sudo ip link set "$VAR(@)" down
-allowed: for dev in /sys/class/net/eth*;
- do if [[ -d $dev && -L $dev/device ]]
- then echo -n ${dev##*/} " "
- fi
- done