summaryrefslogtreecommitdiff
path: root/templates/interfaces/dummy/node.def
blob: 1908f9d8a0a93e2556a310958ab507b464555c91 (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(@) "^dum[0-9]+$" \
                   ; "name must be (dum0-dum999)"
val_help: <dumN>; Dummy interface name

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

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

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