From a6316a2b0f98b50b2f36bfa440b8dd432df98131 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 3 Mar 2009 08:23:29 -0800 Subject: Use vyatta-interfaces to generate allowed list --- templates/interfaces/ethernet/node.def | 7 +------ 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3