summaryrefslogtreecommitdiff
path: root/templates/interfaces/input
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/input')
-rw-r--r--templates/interfaces/input/node.def6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/interfaces/input/node.def b/templates/interfaces/input/node.def
index 06b00c9..945c6db 100644
--- a/templates/interfaces/input/node.def
+++ b/templates/interfaces/input/node.def
@@ -7,5 +7,9 @@ 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(@)
+
+delete: [ -d /sys/class/net/$VAR(@) ] || exit 0
+ /opt/vyatta/sbin/vyatta-qos.pl --check-target $VAR(@) || exit 1
+ ip link delete dev $VAR(@)