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