summaryrefslogtreecommitdiff
path: root/templates/interfaces/virtual-ethernet/node.def
blob: a6118c8a6a4e7fb730716f73641992c84ac0e991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
tag:
type: txt
help: Set Virtual Ethernet device
syntax:expression: pattern $VAR(@) "^veth[0-9]+$" \
         ; "name must be (veth0-veth999)"
commit:expression: $VAR(link) != "" 
         ; "link device must be set for virtual ethernet $VAR(@)"
create:	sudo ip link add $VAR(@) link $VAR(link/@) type macvlan || exit 1
	sudo ip link set $VAR(@) up
	/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: sudo ip link del link $VAR(@) link $VAR(link/@)
comp_help: Enter virtual ethernet interface name (veth0 - veth999)