summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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