summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-09 17:23:22 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-09 17:23:22 -0700
commitef9c82021daf8168f31592268bf382b4df7c7d9f (patch)
treee57a95f97fc3430c14bdd800e258c650f800547f /templates
parent9d38f670393d37716ae521e123475afc4275b9b6 (diff)
downloadvyatta-op-ef9c82021daf8168f31592268bf382b4df7c7d9f.tar.gz
vyatta-op-ef9c82021daf8168f31592268bf382b4df7c7d9f.zip
Add clear interfaces wireless
Bug 5417 Clone ethernet operational command for clear/interfaces for wireless
Diffstat (limited to 'templates')
-rw-r--r--templates/clear/interfaces/wireless/counters/node.def2
-rw-r--r--templates/clear/interfaces/wireless/node.def1
-rw-r--r--templates/clear/interfaces/wireless/node.tag/counters/node.def2
-rw-r--r--templates/clear/interfaces/wireless/node.tag/node.def4
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/clear/interfaces/wireless/counters/node.def b/templates/clear/interfaces/wireless/counters/node.def
new file mode 100644
index 0000000..b9fcd6c
--- /dev/null
+++ b/templates/clear/interfaces/wireless/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear all wireless interface counters
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf-type="$3"
diff --git a/templates/clear/interfaces/wireless/node.def b/templates/clear/interfaces/wireless/node.def
new file mode 100644
index 0000000..496f016
--- /dev/null
+++ b/templates/clear/interfaces/wireless/node.def
@@ -0,0 +1 @@
+help: Clear wireless interface information
diff --git a/templates/clear/interfaces/wireless/node.tag/counters/node.def b/templates/clear/interfaces/wireless/node.tag/counters/node.def
new file mode 100644
index 0000000..52e088d
--- /dev/null
+++ b/templates/clear/interfaces/wireless/node.tag/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear interface counters for a given wireless interface
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf="$4"
diff --git a/templates/clear/interfaces/wireless/node.tag/node.def b/templates/clear/interfaces/wireless/node.tag/node.def
new file mode 100644
index 0000000..8955769
--- /dev/null
+++ b/templates/clear/interfaces/wireless/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Clear interface information for a given wireless interface
+allowed: local -a array ;
+ array=( /sys/class/net/wlan* ) ;
+ echo -n ${array[@]##*/}