summaryrefslogtreecommitdiff
path: root/templates/interfaces/dummy/node.def
blob: 9906bc7434b7a115ff4eb118794492ac75c8cd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tag:
priority: 300
type: txt
help: Dummy interface name
syntax:expression: pattern $VAR(@) "^dummy[0-9]+$" \
                   ; "name must be (dummy0-dummy999)"
val_help: <dummyN>; Dummy interface name

begin: [ -d /sys/module/dummy ] || sudo modprobe dummy

create: ip link add name $VAR(@) type dummy
        ip link set $VAR(@) up

delete: ip link set dev $VAR(@) down
        ip link delete dev $VAR(@)