From a3558769859ffc34af994aaebbedae7e7f8aee65 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen.hemminger@vyatta.com>
Date: Tue, 16 Feb 2010 09:00:18 -0800
Subject: Don't allow format strings in snmp-community

---
 templates/service/snmp/community/node.def | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'templates/service/snmp/community/node.def')

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 %"
-- 
cgit v1.2.3

