From ef9c82021daf8168f31592268bf382b4df7c7d9f Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 9 Jul 2010 17:23:22 -0700 Subject: Add clear interfaces wireless Bug 5417 Clone ethernet operational command for clear/interfaces for wireless --- templates/clear/interfaces/wireless/counters/node.def | 2 ++ templates/clear/interfaces/wireless/node.def | 1 + templates/clear/interfaces/wireless/node.tag/counters/node.def | 2 ++ templates/clear/interfaces/wireless/node.tag/node.def | 4 ++++ 4 files changed, 9 insertions(+) create mode 100644 templates/clear/interfaces/wireless/counters/node.def create mode 100644 templates/clear/interfaces/wireless/node.def create mode 100644 templates/clear/interfaces/wireless/node.tag/counters/node.def create mode 100644 templates/clear/interfaces/wireless/node.tag/node.def (limited to 'templates') 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[@]##*/} -- cgit v1.2.3