diff options
author | hagbard <vyosdev@derith.de> | 2020-01-16 08:38:44 -0800 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2020-01-16 08:38:44 -0800 |
commit | 742da889afa4375d5b6cb98dada7f2d3ec2f0326 (patch) | |
tree | dd98539eaa95aef14b4225fa52458fa45f9ace66 /interface-definitions/snmp.xml.in | |
parent | 065a2d415a7d6faa7201e0d21ea73357100304e7 (diff) | |
download | vyos-1x-742da889afa4375d5b6cb98dada7f2d3ec2f0326.tar.gz vyos-1x-742da889afa4375d5b6cb98dada7f2d3ec2f0326.zip |
snmpd: T1964: SNMP Script-extensions allows names with spaces,
but commit fails
Diffstat (limited to 'interface-definitions/snmp.xml.in')
-rw-r--r-- | interface-definitions/snmp.xml.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/snmp.xml.in b/interface-definitions/snmp.xml.in index c0350d256..4c6a993b2 100644 --- a/interface-definitions/snmp.xml.in +++ b/interface-definitions/snmp.xml.in @@ -601,6 +601,10 @@ <tagNode name="extension-name"> <properties> <help>Extension name</help> + <constraint> + <regex>^[a-z0-9\.\-\_]+</regex> + </constraint> + <constraintErrorMessage>Script extension contains invalid characters</constraintErrorMessage> </properties> <children> <leafNode name="script"> @@ -609,6 +613,10 @@ <completionHelp> <script>ls /config/user-data</script> </completionHelp> + <constraint> + <regex>^[a-z0-9\.\-\_\/]+</regex> + </constraint> + <constraintErrorMessage>Script extension contains invalid characters</constraintErrorMessage> </properties> </leafNode> </children> |