From 28b30ad069bf77394c85e28261fb2652dc61539a Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 20 Aug 2010 17:32:46 -0700 Subject: Add checking of port range Bug 6058 Put consitent checking port range on snmp, ssh, and telnet --- templates/system/login/radius-server/node.tag/port/node.def | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'templates/system') diff --git a/templates/system/login/radius-server/node.tag/port/node.def b/templates/system/login/radius-server/node.tag/port/node.def index f5eae942..06ff7f02 100644 --- a/templates/system/login/radius-server/node.tag/port/node.def +++ b/templates/system/login/radius-server/node.tag/port/node.def @@ -1,4 +1,8 @@ type: u32 help: Radius port [REQUIRED] -syntax:expression: ($VAR(@) > 0 && $VAR(@) < 65536) ; "port must be between 1 and 65535" default: 1812 + +val_help: u32:1-65535; Numeric IP port +syntax:expression: $VAR(@) > 0 && $VAR(@) <= 65535 ; \ + "Port number must be in range 1 to 65535" + -- cgit v1.2.3