summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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[@]##*/}