summaryrefslogtreecommitdiff
path: root/templates/interfaces/input/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/input/node.def')
-rw-r--r--templates/interfaces/input/node.def10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def
new file mode 100644
index 00000000..931da978
--- /dev/null
+++ b/templates/interfaces/input/node.def
@@ -0,0 +1,10 @@
+tag:
+priority: 390
+type: txt
+help: Set input virtual interface
+syntax:expression: pattern $VAR(@) "^in[0-9]+$" ; "name must be (in0-in999)"
+
+begin: [ -d /sys/module/ifb ] || sudo modprobe ifb numifbs=0
+create: sudo ip link add $VAR(@) type ifb && sudo ip link set $VAR(@) up
+delete: sudo ip link delete dev $VAR(@)
+comp_help: Enter input virtual interface name (in0 - in999)