summaryrefslogtreecommitdiff
path: root/templates/interfaces/input/node.def
blob: 945c6db32f2f2e622ffbba92f7df70fac7660fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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: [ -d /sys/class/net/$VAR(@) ] || exit 0
   /opt/vyatta/sbin/vyatta-qos.pl --check-target $VAR(@) || exit 1
   ip link delete dev $VAR(@)