diff options
author | Daniil Baturin <daniil@baturin.org> | 2025-05-20 09:44:41 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2025-05-20 09:44:41 +0100 |
commit | dcb8b01c5d078d09b24531566115431f312970f2 (patch) | |
tree | 7d304dccb1449423197b0a02900759ff49378e90 | |
parent | 0801bc6c2dd155f40fd22c64f873a01e8be25c9f (diff) | |
download | vyos-1x-dcb8b01c5d078d09b24531566115431f312970f2.tar.gz vyos-1x-dcb8b01c5d078d09b24531566115431f312970f2.zip |
snmp: T7464: fix the community string validation regex
for compatibility with PCRE2
-rw-r--r-- | interface-definitions/service_snmp.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/service_snmp.xml.in b/interface-definitions/service_snmp.xml.in index cc21f5b8b..bdc9f88fe 100644 --- a/interface-definitions/service_snmp.xml.in +++ b/interface-definitions/service_snmp.xml.in @@ -13,7 +13,7 @@ <properties> <help>Community name</help> <constraint> - <regex>[[:alnum:]-_!@*#]{1,100}</regex> + <regex>[[:alnum:]\-_!@*#]{1,100}</regex> </constraint> <constraintErrorMessage>Community string is limited to alphanumerical characters, -, _, !, @, *, and # with a total lenght of 100</constraintErrorMessage> </properties> |