summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-03-14 18:15:49 +0000
committerJohn Southworth <john.southworth@vyatta.com>2012-03-14 18:15:49 +0000
commit62470eabedd824a1db2262fbeea91fa707047095 (patch)
treeddeed3ada4e27374776c24cb9873002c6b510dea
parent3a52ec1a14c06fadcaf1c34acc370b5da0c95bc2 (diff)
downloadvyatta-op-62470eabedd824a1db2262fbeea91fa707047095.tar.gz
vyatta-op-62470eabedd824a1db2262fbeea91fa707047095.zip
Add ping templates for completion
-rw-r--r--templates/ping/node.def1
-rw-r--r--templates/ping/node.tag/node.def3
-rw-r--r--templates/ping/node.tag/node.tag/node.def3
l---------templates/ping/node.tag/node.tag/node.tag1
4 files changed, 8 insertions, 0 deletions
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 '<hostname> <x.x.x.x> <h:h:h:h:h:h:h:h>'
+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