summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 12:36:05 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-10 12:36:05 -0800
commitb058864b0cfc71821613ec1af9a0b090bb1c478a (patch)
treee1ebd975ebb718a747af8eba8b5ada8f36396db0
parent62fa27ae6cbb718e2039f65ffb1fd9ab042d7f83 (diff)
downloadvyatta-op-qos-b058864b0cfc71821613ec1af9a0b090bb1c478a.tar.gz
vyatta-op-qos-b058864b0cfc71821613ec1af9a0b090bb1c478a.zip
Add wireless interface support to QoS operational commands
-rw-r--r--templates/show/interfaces/wireless/node.tag/queue/class/node.def2
-rw-r--r--templates/show/interfaces/wireless/node.tag/queue/filter/node.def2
-rw-r--r--templates/show/interfaces/wireless/node.tag/queue/node.def2
-rw-r--r--templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/class/node.def2
-rw-r--r--templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/filter/node.def2
-rw-r--r--templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/node.def2
-rw-r--r--templates/show/queueing/wireless/node.def2
-rw-r--r--templates/show/queueing/wireless/node.tag/node.def3
-rw-r--r--templates/show/queueing/wireless/node.tag/vif/node.def4
-rw-r--r--templates/show/queueing/wireless/node.tag/vif/node.tag/node.def5
10 files changed, 26 insertions, 0 deletions
diff --git a/templates/show/interfaces/wireless/node.tag/queue/class/node.def b/templates/show/interfaces/wireless/node.tag/queue/class/node.def
new file mode 100644
index 0000000..16dbfd5
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/queue/class/node.def
@@ -0,0 +1,2 @@
+help: Show queue classes for a device
+run: ${vyatta_bindir}/vyatta-show-queue $4 class
diff --git a/templates/show/interfaces/wireless/node.tag/queue/filter/node.def b/templates/show/interfaces/wireless/node.tag/queue/filter/node.def
new file mode 100644
index 0000000..fe28b5b
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/queue/filter/node.def
@@ -0,0 +1,2 @@
+help: Show queue filters for a device
+run: ${vyatta_bindir}/vyatta-show-queue $4 filter
diff --git a/templates/show/interfaces/wireless/node.tag/queue/node.def b/templates/show/interfaces/wireless/node.tag/queue/node.def
new file mode 100644
index 0000000..ef1bc6f
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/queue/node.def
@@ -0,0 +1,2 @@
+help: Show queue information
+run: ${vyatta_bindir}/vyatta-show-queue $4
diff --git a/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/class/node.def b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/class/node.def
new file mode 100644
index 0000000..e5b8f00
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/class/node.def
@@ -0,0 +1,2 @@
+help: Show queue classes for a device
+run: ${vyatta_bindir}/vyatta-show-queue $4.$6 class
diff --git a/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/filter/node.def b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/filter/node.def
new file mode 100644
index 0000000..4f5f85b
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/filter/node.def
@@ -0,0 +1,2 @@
+help: Show queue filters for a device
+run: ${vyatta_bindir}/vyatta-show-queue $4.$6 filter
diff --git a/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/node.def b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/node.def
new file mode 100644
index 0000000..338de18
--- /dev/null
+++ b/templates/show/interfaces/wireless/node.tag/vif/node.tag/queue/node.def
@@ -0,0 +1,2 @@
+help: Show device queue information
+run: ${vyatta_bindir}/vyatta-show-queue $4.$6
diff --git a/templates/show/queueing/wireless/node.def b/templates/show/queueing/wireless/node.def
new file mode 100644
index 0000000..abb1a1e
--- /dev/null
+++ b/templates/show/queueing/wireless/node.def
@@ -0,0 +1,2 @@
+help: Show wireless queueing information
+run: ${vyatta_bindir}/vyatta-show-queueing.pl --type=wireless
diff --git a/templates/show/queueing/wireless/node.tag/node.def b/templates/show/queueing/wireless/node.tag/node.def
new file mode 100644
index 0000000..1897285
--- /dev/null
+++ b/templates/show/queueing/wireless/node.tag/node.def
@@ -0,0 +1,3 @@
+help: Show specified wireless interface information
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show=wireless
+run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4"
diff --git a/templates/show/queueing/wireless/node.tag/vif/node.def b/templates/show/queueing/wireless/node.tag/vif/node.def
new file mode 100644
index 0000000..2b74427
--- /dev/null
+++ b/templates/show/queueing/wireless/node.tag/vif/node.def
@@ -0,0 +1,4 @@
+help: Show specified virtual network interface (vif) information
+run: tput setaf ${COLOR_RED:-1} ;
+ echo error: need to supply vif # ;
+ tput op
diff --git a/templates/show/queueing/wireless/node.tag/vif/node.tag/node.def b/templates/show/queueing/wireless/node.tag/vif/node.tag/node.def
new file mode 100644
index 0000000..ee1bbb2
--- /dev/null
+++ b/templates/show/queueing/wireless/node.tag/vif/node.tag/node.def
@@ -0,0 +1,5 @@
+help: Show specified virtual network interface (vif) queueing
+allowed: local -a array ;
+ array=( /sys/class/net/${COMP_WORDS[3]}.* ) ;
+ echo -n ${array[@]##*.}
+run: ${vyatta_bindir}/vyatta-show-queueing.pl "$4.$6"