diff options
Diffstat (limited to 'templates/interfaces/dummy/node.def')
-rw-r--r-- | templates/interfaces/dummy/node.def | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/interfaces/dummy/node.def b/templates/interfaces/dummy/node.def new file mode 100644 index 00000000..e3ef83de --- /dev/null +++ b/templates/interfaces/dummy/node.def @@ -0,0 +1,13 @@ +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 + |