summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarat Nepomnyashy <marat@vyatta.com>2008-01-15 12:50:58 -0800
committerMarat Nepomnyashy <marat@vyatta.com>2008-01-15 12:50:58 -0800
commit8ca1deb8d248f063945c0a6fc9f2c1718aeeed04 (patch)
tree08be80b2e4a2c990dc74afceb031e83e3e6fbc68
parent4f9610049294fda75849f99e454588e89c287a01 (diff)
downloadvyatta-op-vpn-8ca1deb8d248f063945c0a6fc9f2c1718aeeed04.tar.gz
vyatta-op-vpn-8ca1deb8d248f063945c0a6fc9f2c1718aeeed04.zip
Show additional help for 'vpn rsa-key generate' completions. Bug 2389 fix.
-rw-r--r--templates/vpn/rsa-key/generate/bits/node.tag/node.def1
-rw-r--r--templates/vpn/rsa-key/generate/bits/node.tag/random/node.tag/node.def3
2 files changed, 3 insertions, 1 deletions
diff --git a/templates/vpn/rsa-key/generate/bits/node.tag/node.def b/templates/vpn/rsa-key/generate/bits/node.tag/node.def
index eecf08f..defcd7c 100644
--- a/templates/vpn/rsa-key/generate/bits/node.tag/node.def
+++ b/templates/vpn/rsa-key/generate/bits/node.tag/node.def
@@ -1,2 +1,3 @@
help: Generate local RSA key with number of bits [16-4096]
run: sudo /opt/vyatta/sbin/gen_local_rsa_key.pl "$5" /dev/random
+allowed: echo -n '<num_bits>'
diff --git a/templates/vpn/rsa-key/generate/bits/node.tag/random/node.tag/node.def b/templates/vpn/rsa-key/generate/bits/node.tag/random/node.tag/node.def
index ea46104..3b0b1d9 100644
--- a/templates/vpn/rsa-key/generate/bits/node.tag/random/node.tag/node.def
+++ b/templates/vpn/rsa-key/generate/bits/node.tag/random/node.tag/node.def
@@ -1,2 +1,3 @@
help: Generate local RSA key with number of bits and random device
-run: sudo /opt/vyatta/sbin/gen_local_rsa_key.pl "$5" "$7"
+run: sudo /opt/vyatta/sbin/gen_local_rsa_key.pl "$5" "$7"
+allowed: echo -n '/dev/random /dev/urandom'