summaryrefslogtreecommitdiff
path: root/templates/service
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-16 09:00:18 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-02-16 10:24:21 -0800
commita3558769859ffc34af994aaebbedae7e7f8aee65 (patch)
tree25d51c46a8c966fab05e1efd91e931981b0cd93f /templates/service
parentc333b5e4afbaef65886ba14b5e4580428ca7a495 (diff)
downloadvyatta-cfg-system-a3558769859ffc34af994aaebbedae7e7f8aee65.tar.gz
vyatta-cfg-system-a3558769859ffc34af994aaebbedae7e7f8aee65.zip
Don't allow format strings in snmp-community
Diffstat (limited to 'templates/service')
-rw-r--r--templates/service/snmp/community/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/service/snmp/community/node.def b/templates/service/snmp/community/node.def
index cf95bc27..32eb4800 100644
--- a/templates/service/snmp/community/node.def
+++ b/templates/service/snmp/community/node.def
@@ -1,3 +1,5 @@
tag:
type: txt
help: Set community name [REQUIRED]
+syntax:expression: pattern $VAR(@) "^[^%]+$" ; \
+ "Community string may not contain %"