From 62470eabedd824a1db2262fbeea91fa707047095 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Wed, 14 Mar 2012 18:15:49 +0000 Subject: Add ping templates for completion --- templates/ping/node.def | 1 + templates/ping/node.tag/node.def | 3 +++ templates/ping/node.tag/node.tag/node.def | 3 +++ templates/ping/node.tag/node.tag/node.tag | 1 + 4 files changed, 8 insertions(+) create mode 100644 templates/ping/node.def create mode 100644 templates/ping/node.tag/node.def create mode 100644 templates/ping/node.tag/node.tag/node.def create mode 120000 templates/ping/node.tag/node.tag/node.tag diff --git a/templates/ping/node.def b/templates/ping/node.def new file mode 100644 index 0000000..1fca2fd --- /dev/null +++ b/templates/ping/node.def @@ -0,0 +1 @@ +help: Send IPv4 Internet Control Message Protocol (ICMP) echo request diff --git a/templates/ping/node.tag/node.def b/templates/ping/node.tag/node.def new file mode 100644 index 0000000..2706be4 --- /dev/null +++ b/templates/ping/node.tag/node.def @@ -0,0 +1,3 @@ +help: Send Internet Control Message Protocol (ICMP) echo request +allowed: echo -n ' ' +run: ${vyatta_bindir}/ping ${@:2} diff --git a/templates/ping/node.tag/node.tag/node.def b/templates/ping/node.tag/node.tag/node.def new file mode 100644 index 0000000..9452558 --- /dev/null +++ b/templates/ping/node.tag/node.tag/node.def @@ -0,0 +1,3 @@ +help: Ping options +allowed: /opt/vyatta/bin/ping --get-options ${COMP_WORDS[@]} +run: /opt/vyatta/bin/ping ${@:2} diff --git a/templates/ping/node.tag/node.tag/node.tag b/templates/ping/node.tag/node.tag/node.tag new file mode 120000 index 0000000..4b8a634 --- /dev/null +++ b/templates/ping/node.tag/node.tag/node.tag @@ -0,0 +1 @@ +../node.tag/ \ No newline at end of file -- cgit v1.2.3