From b3afe02461764e16a0a4048494a1375991c00c29 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Fri, 8 Feb 2008 16:42:54 -0800 Subject: - Change vlan range to 0-4094 to match linux - Change ethernet completion --- templates/interfaces/ethernet/node.def | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'templates/interfaces/ethernet/node.def') diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index b42e488..eee64cd 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -10,6 +10,10 @@ update:expression: "sudo ip link set $VAR(@) up" ; "Error enabling dev $VAR(@)" update:expression: "${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $VAR(@)\" \ -c \"link-detect\"; " delete:expression: "sudo ip link set $VAR(@) down" ; "Error disabling dev $VAR(@)" -allowed: local -a array ; - array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ; - echo -n ${array[@]##*/} +allowed: for dev in /sys/class/net/*; + do if [[ -L $dev/device ]] + then if [[ $(cat $dev/type) -eq 1 ]] + then echo -n ${dev##*/} " " + fi + fi + done -- cgit v1.2.3