diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-20 18:53:47 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-08-20 18:53:47 -0700 |
commit | 9f84981df4904b57d3e7ccce8c40897601108181 (patch) | |
tree | e12fe5c01a8fa5b23139043cb47916a033edde26 | |
parent | 28b30ad069bf77394c85e28261fb2652dc61539a (diff) | |
download | vyatta-cfg-system-9f84981df4904b57d3e7ccce8c40897601108181.tar.gz vyatta-cfg-system-9f84981df4904b57d3e7ccce8c40897601108181.zip |
Add check for port range on SNMP listen port value
-rw-r--r-- | templates/service/snmp/listen-address/node.tag/port/node.def | 4 |
1 files changed, 4 insertions, 0 deletions
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" |