summaryrefslogtreecommitdiff
path: root/interface-definitions/snmp.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-10-30 12:50:36 +0100
committerChristian Poessinger <christian@poessinger.com>2022-10-30 12:52:12 +0100
commit755e75f0f0309f304e5875737fc1944c9550531a (patch)
tree67e84719ebd9c33320b8c5ff484186af400f170b /interface-definitions/snmp.xml.in
parent3a1148ba060646852f354ef04e1c0c6bb8038a0e (diff)
downloadvyos-1x-755e75f0f0309f304e5875737fc1944c9550531a.tar.gz
vyos-1x-755e75f0f0309f304e5875737fc1944c9550531a.zip
snmp: T4785: allow @, * and # in SNMP community name
(cherry picked from commit 3f91033927d80748b70e1ef58b2941643d1aca33)
Diffstat (limited to 'interface-definitions/snmp.xml.in')
-rw-r--r--interface-definitions/snmp.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in
index 66e9c338b..1067aa8a8 100644
--- a/interface-definitions/snmp.xml.in
+++ b/interface-definitions/snmp.xml.in
@@ -13,9 +13,9 @@
<properties>
<help>Community name</help>
<constraint>
- <regex>^[a-zA-Z0-9\-_!]{1,100}$</regex>
+ <regex>^[a-zA-Z0-9\-_!@*#]{1,100}$</regex>
</constraint>
- <constraintErrorMessage>Community string is limited to alphanumerical characters only with a total lenght of 100</constraintErrorMessage>
+ <constraintErrorMessage>Community string is limited to alphanumerical characters, !, @, * and # with a total lenght of 100</constraintErrorMessage>
</properties>
<children>
<leafNode name="authorization">