diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-06-26 22:08:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 22:08:52 +0200 |
commit | 2cdbb5ac6ff9c1a17d4b2bdd0e1d9f9a6d54088d (patch) | |
tree | a3ec889b7eed9dce31d4c4280721cc0e211ad769 /interface-definitions | |
parent | 220687ae79e5bdae424a6376cad8857cfddd6e18 (diff) | |
parent | 2eb3145aa4f917b642441530715a7421189dac70 (diff) | |
download | vyos-1x-2cdbb5ac6ff9c1a17d4b2bdd0e1d9f9a6d54088d.tar.gz vyos-1x-2cdbb5ac6ff9c1a17d4b2bdd0e1d9f9a6d54088d.zip |
Merge pull request #18 from hagbard-01/current
T716: allow only alphanumerical chars, underscore and hyphen
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/snmp.xml | 4 |
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"> |