diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-15 15:05:08 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-12-15 15:20:45 -0800 |
commit | 38818e90aed304ea8f7edb5ba39cc505358ae244 (patch) | |
tree | bf5b65eae58c52c65477ab8b1320c2b5699b636a | |
parent | 6fd0892d1ee741a652067a35c8cb070858d5f95a (diff) | |
download | vyatta-cfg-system-38818e90aed304ea8f7edb5ba39cc505358ae244.tar.gz vyatta-cfg-system-38818e90aed304ea8f7edb5ba39cc505358ae244.zip |
Add checking of protocol-version value
Syntax checking and help.
-rw-r--r-- | templates/service/ssh/protocol-version/node.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/service/ssh/protocol-version/node.def b/templates/service/ssh/protocol-version/node.def index cc1dbd87..6b52204d 100644 --- a/templates/service/ssh/protocol-version/node.def +++ b/templates/service/ssh/protocol-version/node.def @@ -1,4 +1,10 @@ type: txt allowed: echo "v1 v2 all" default: "v2" -help: SSH version (default: v2) +syntax:expression: $VAR(@) in "v1", "v2", "all" ; + "Invalid SSH protocol version" + +help: SSH protocol version +val_help: v1; Protocol version 1 (UNSECURE DO NOT USE) +val_help: v2; Protocol version 2 (default) +val_help: all; Both version 1 and version 2 supported |