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.def11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def
new file mode 100644
index 0000000..06b00c9
--- /dev/null
+++ b/templates/interfaces/input/node.def
@@ -0,0 +1,11 @@
+tag:
+priority: 310 # before real devices that redirect
+type: txt
+help: Input functional block (IFB) interface name
+val_help: <ifbN>; Input functional block interface name
+
+syntax:expression: pattern $VAR(@) "^ifb[0-9]+$" ; "name must be (ifb0-ifb999)"
+
+begin: [ -d /sys/module/ifb ] || sudo modprobe ifb numifbs=0
+create: ip link add $VAR(@) type ifb && ip link set $VAR(@) up
+delete: ip link delete dev $VAR(@)