From 38818e90aed304ea8f7edb5ba39cc505358ae244 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 15 Dec 2010 15:05:08 -0800 Subject: Add checking of protocol-version value Syntax checking and help. --- templates/service/ssh/protocol-version/node.def | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates') 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 -- cgit v1.2.3