diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-09 17:23:22 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-09 17:23:22 -0700 |
commit | ef9c82021daf8168f31592268bf382b4df7c7d9f (patch) | |
tree | e57a95f97fc3430c14bdd800e258c650f800547f /templates | |
parent | 9d38f670393d37716ae521e123475afc4275b9b6 (diff) | |
download | vyatta-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')
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[@]##*/} |