summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@uffda.(none)>2007-11-14 17:52:08 -0800
committerStig Thormodsrud <stig@uffda.(none)>2007-11-14 17:52:08 -0800
commit89e34ff4610413091c0311c9c1ec56a3afce3ef2 (patch)
treea9a17b95c2c02844a225921c0fdc75985ccdc7bc /templates
parent944cf1cfa364c53c28afc1878c4da99e468c10d5 (diff)
downloadvyatta-op-89e34ff4610413091c0311c9c1ec56a3afce3ef2.tar.gz
vyatta-op-89e34ff4610413091c0311c9c1ec56a3afce3ef2.zip
Add cli for telnet client.
Diffstat (limited to 'templates')
-rw-r--r--templates/telnet/node.def1
-rw-r--r--templates/telnet/node.tag/node.def3
-rw-r--r--templates/telnet/node.tag/node.tag/node.def3
3 files changed, 7 insertions, 0 deletions
diff --git a/templates/telnet/node.def b/templates/telnet/node.def
new file mode 100644
index 0000000..18cd187
--- /dev/null
+++ b/templates/telnet/node.def
@@ -0,0 +1 @@
+help: telnet to <host>
diff --git a/templates/telnet/node.tag/node.def b/templates/telnet/node.tag/node.def
new file mode 100644
index 0000000..258d014
--- /dev/null
+++ b/templates/telnet/node.tag/node.def
@@ -0,0 +1,3 @@
+help: telnet to <host>
+allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null}
+run: shift; ${vyatta_sbindir}/telnet $*
diff --git a/templates/telnet/node.tag/node.tag/node.def b/templates/telnet/node.tag/node.tag/node.def
new file mode 100644
index 0000000..8d37740
--- /dev/null
+++ b/templates/telnet/node.tag/node.tag/node.def
@@ -0,0 +1,3 @@
+help: telnet to <host> <port>
+allowed:
+run: shift; ${vyatta_sbindir}/telnet $*