diff options
author | Daniil Baturin <daniil@baturin.org> | 2014-04-06 15:36:57 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2014-04-06 15:36:57 +0200 |
commit | 049297cf3cc1c546a3442a6df6b68c60d0494a06 (patch) | |
tree | e67915b9a63b40f33a0b19ddebc71f90d8517121 /templates | |
parent | 3a25aaef904600520c9c8a26fc9b251947ca4093 (diff) | |
download | vyatta-op-049297cf3cc1c546a3442a6df6b68c60d0494a06.tar.gz vyatta-op-049297cf3cc1c546a3442a6df6b68c60d0494a06.zip |
Bug #170: add "clear interface" commands for L2TPv3 interfaces.
Diffstat (limited to 'templates')
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[@]##*/} |