summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet/node.def
blob: a46ae722a882fa5f9d33d46e7f6143e04dd8f1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
tag:
priority: 318
type: txt
help: Set ethernet interface
syntax:expression: exec \
   "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --check=ethernet"
allowed: /opt/vyatta/sbin/vyatta-interfaces.pl --show=ethernet
create: sudo ip link set "$VAR(@)" up
	/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: [ -d /sys/class/net/$VAR(../@) ] || exit 0
        sudo ip link set $VAR(@) down