summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/ping/node.def4
-rw-r--r--templates/ping/node.tag/node.def8
-rw-r--r--templates/traceroute/node.def4
-rw-r--r--templates/traceroute/node.tag/node.def8
4 files changed, 24 insertions, 0 deletions
diff --git a/templates/ping/node.def b/templates/ping/node.def
new file mode 100644
index 0000000..71361ca
--- /dev/null
+++ b/templates/ping/node.def
@@ -0,0 +1,4 @@
+#
+# Operational mode template for the "ping" command
+#
+help: Send 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..5f6550e
--- /dev/null
+++ b/templates/ping/node.tag/node.def
@@ -0,0 +1,8 @@
+#
+# Operational mode front-end for "ping" command
+#
+
+allowed:
+ vyatta-allowed-hosts
+
+run: /bin/ping $2
diff --git a/templates/traceroute/node.def b/templates/traceroute/node.def
new file mode 100644
index 0000000..68ebbdc
--- /dev/null
+++ b/templates/traceroute/node.def
@@ -0,0 +1,4 @@
+#
+# Operational mode template for the "traceroute" command
+#
+help: Track network path to remote node
diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def
new file mode 100644
index 0000000..87d9c32
--- /dev/null
+++ b/templates/traceroute/node.tag/node.def
@@ -0,0 +1,8 @@
+#
+# Operational mode template for the "traceroute" command
+#
+
+allowed:
+ vyatta-allowed-hosts
+
+run: /usr/sbin/traceroute $2