summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2018-06-26 12:44:41 -0700
committerhagbard <vyosdev@derith.de>2018-06-26 12:44:41 -0700
commit2eb3145aa4f917b642441530715a7421189dac70 (patch)
treea3ec889b7eed9dce31d4c4280721cc0e211ad769
parent220687ae79e5bdae424a6376cad8857cfddd6e18 (diff)
downloadvyos-1x-2eb3145aa4f917b642441530715a7421189dac70.tar.gz
vyos-1x-2eb3145aa4f917b642441530715a7421189dac70.zip
T716: allow only alphanumerical chars, underscore and hyphen
T717: limited to 100 chars in total
-rw-r--r--interface-definitions/snmp.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/snmp.xml b/interface-definitions/snmp.xml
index 76885a02a..103aa39d7 100644
--- a/interface-definitions/snmp.xml
+++ b/interface-definitions/snmp.xml
@@ -13,9 +13,9 @@
<properties>
<help>Community name [REQUIRED]</help>
<constraint>
- <regex>^[^%]+$</regex>
+ <regex>^[a-zA-Z0-9\-_]{1,100}</regex>
</constraint>
- <constraintErrorMessage>Community string may not contain '%'</constraintErrorMessage>
+ <constraintErrorMessage>Community string is limited to alphanumerical characters only with a total lenght of 100</constraintErrorMessage>
</properties>
<children>
<leafNode name="authorization">