summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-21 17:37:30 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-21 17:37:30 -0700
commitec0e975fac476e805ba1ff7b8c25238bd492951c (patch)
treea6693d6273a3a0510d37f910effdc59a3f2159c5
parente9acf5e5b9deb0556e717d46d872c4d34c80195d (diff)
downloadvyatta-cfg-qos-ec0e975fac476e805ba1ff7b8c25238bd492951c.tar.gz
vyatta-cfg-qos-ec0e975fac476e805ba1ff7b8c25238bd492951c.zip
Move input interface back to Qos package
-rw-r--r--templates/interfaces/input/node.def11
-rw-r--r--templates/interfaces/input/node.tag/description/node.def4
2 files changed, 15 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(@)
diff --git a/templates/interfaces/input/node.tag/description/node.def b/templates/interfaces/input/node.tag/description/node.def
new file mode 100644
index 0000000..e4807d2
--- /dev/null
+++ b/templates/interfaces/input/node.tag/description/node.def
@@ -0,0 +1,4 @@
+type: txt
+help: Description
+update: sudo sh -c "echo \"$VAR(@)\" >/sys/class/net/$VAR(../@)/ifalias"
+delete: sudo sh -c "echo '' >/sys/class/net/$VAR(../@)/ifalias"