diff options
Diffstat (limited to 'templates/clear/interfaces/tunnel')
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/clear/interfaces/tunnel/counters/node.def b/templates/clear/interfaces/tunnel/counters/node.def new file mode 100644 index 0000000..c856a04 --- /dev/null +++ b/templates/clear/interfaces/tunnel/counters/node.def @@ -0,0 +1,2 @@ +help: Clear all tunnel interface counters +run: sudo ${vyatta_bindir}/vyatta-show-interfaces.pl --action=clear --intf-type=$3 diff --git a/templates/clear/interfaces/tunnel/node.def b/templates/clear/interfaces/tunnel/node.def new file mode 100644 index 0000000..c704813 --- /dev/null +++ b/templates/clear/interfaces/tunnel/node.def @@ -0,0 +1 @@ +help: Clear tunnel interface information diff --git a/templates/clear/interfaces/tunnel/node.tag/counters/node.def b/templates/clear/interfaces/tunnel/node.tag/counters/node.def new file mode 100644 index 0000000..985e9ab --- /dev/null +++ b/templates/clear/interfaces/tunnel/node.tag/counters/node.def @@ -0,0 +1,2 @@ +help: Clear interface counters for a given interface +run: sudo ${vyatta_bindir}/vyatta-show-interfaces.pl --action=clear --intf=$4 diff --git a/templates/clear/interfaces/tunnel/node.tag/node.def b/templates/clear/interfaces/tunnel/node.tag/node.def new file mode 100644 index 0000000..cf85a2c --- /dev/null +++ b/templates/clear/interfaces/tunnel/node.tag/node.def @@ -0,0 +1,4 @@ +help: Clear interface information for a given interface +allowed: local -a array ; + array=( /sys/class/net/tun* ) ; + echo -n ${array[@]##*/} |