From 9f84981df4904b57d3e7ccce8c40897601108181 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 20 Aug 2010 18:53:47 -0700 Subject: Add check for port range on SNMP listen port value --- templates/service/snmp/listen-address/node.tag/port/node.def | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/service/snmp/listen-address/node.tag/port/node.def b/templates/service/snmp/listen-address/node.tag/port/node.def index 2bbdae09..b37939bd 100644 --- a/templates/service/snmp/listen-address/node.tag/port/node.def +++ b/templates/service/snmp/listen-address/node.tag/port/node.def @@ -1,3 +1,7 @@ type: u32 default: 161 help: Port for SNMP service + +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