summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/clear/interfaces/pseudo-ethernet/counters/node.def2
-rw-r--r--templates/clear/interfaces/pseudo-ethernet/node.def1
-rw-r--r--templates/clear/interfaces/pseudo-ethernet/node.tag/counters/node.def2
-rw-r--r--templates/clear/interfaces/pseudo-ethernet/node.tag/node.def4
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/clear/interfaces/pseudo-ethernet/counters/node.def b/templates/clear/interfaces/pseudo-ethernet/counters/node.def
new file mode 100644
index 0000000..33d0165
--- /dev/null
+++ b/templates/clear/interfaces/pseudo-ethernet/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear all pseudo-ethernet interface counters
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf-type="$3"
diff --git a/templates/clear/interfaces/pseudo-ethernet/node.def b/templates/clear/interfaces/pseudo-ethernet/node.def
new file mode 100644
index 0000000..b70f282
--- /dev/null
+++ b/templates/clear/interfaces/pseudo-ethernet/node.def
@@ -0,0 +1 @@
+help: Clear pseudo-ethernet interface information
diff --git a/templates/clear/interfaces/pseudo-ethernet/node.tag/counters/node.def b/templates/clear/interfaces/pseudo-ethernet/node.tag/counters/node.def
new file mode 100644
index 0000000..8585a09
--- /dev/null
+++ b/templates/clear/interfaces/pseudo-ethernet/node.tag/counters/node.def
@@ -0,0 +1,2 @@
+help: Clear interface counters for a given pseudo-ethernet interface
+run: sudo ${vyatta_bindir}/sudo-users/vyatta-show-interfaces.pl --action=clear --intf="$4"
diff --git a/templates/clear/interfaces/pseudo-ethernet/node.tag/node.def b/templates/clear/interfaces/pseudo-ethernet/node.tag/node.def
new file mode 100644
index 0000000..25915b4
--- /dev/null
+++ b/templates/clear/interfaces/pseudo-ethernet/node.tag/node.def
@@ -0,0 +1,4 @@
+help: Clear interface information for a given pseudo-ethernet interface
+allowed: local -a array ;
+ array=( /sys/class/net/peth* ) ;
+ echo -n ${array[@]##*/}