summaryrefslogtreecommitdiff
path: root/templates/clear
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-12 22:33:35 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-13 07:25:56 -0800
commit730dc16c1ddcc8480dba094d952f115a7c776d0a (patch)
tree571084de95965132082f5bddef2f5c80f8ba1118 /templates/clear
parentd73a8b68fd092a603493e4d13d5a4d717e7632b5 (diff)
downloadvyatta-op-730dc16c1ddcc8480dba094d952f115a7c776d0a.tar.gz
vyatta-op-730dc16c1ddcc8480dba094d952f115a7c776d0a.zip
Add clear interfaces bonding
Diffstat (limited to 'templates/clear')
-rw-r--r--templates/clear/interfaces/bonding/counters/node.def2
-rw-r--r--templates/clear/interfaces/bonding/node.def1
-rw-r--r--templates/clear/interfaces/bonding/node.tag/counters/node.def2
-rw-r--r--templates/clear/interfaces/bonding/node.tag/node.def4
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/clear/interfaces/bonding/counters/node.def b/templates/clear/interfaces/bonding/counters/node.def
new file mode 100644
index 0000000..e695e35
--- /dev/null
+++ b/templates/clear/interfaces/bonding/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear all bonding interface counters
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf-type="$3"
diff --git a/templates/clear/interfaces/bonding/node.def b/templates/clear/interfaces/bonding/node.def
new file mode 100644
index 0000000..b1d1e03
--- /dev/null
+++ b/templates/clear/interfaces/bonding/node.def
@@ -0,0 +1 @@
+help: Clear bonding interface information
diff --git a/templates/clear/interfaces/bonding/node.tag/counters/node.def b/templates/clear/interfaces/bonding/node.tag/counters/node.def
new file mode 100644
index 0000000..1818957
--- /dev/null
+++ b/templates/clear/interfaces/bonding/node.tag/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear interface counters for a given bonding interface
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf="$4"
diff --git a/templates/clear/interfaces/bonding/node.tag/node.def b/templates/clear/interfaces/bonding/node.tag/node.def
new file mode 100644
index 0000000..3573587
--- /dev/null
+++ b/templates/clear/interfaces/bonding/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Clear interface information for a given bonding interface
+allowed: local -a array ;
+ array=( /sys/class/net/bond* ) ;
+ echo -n ${array[@]##*/}