summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2020-01-16 08:38:44 -0800
committerhagbard <vyosdev@derith.de>2020-01-16 08:38:44 -0800
commit742da889afa4375d5b6cb98dada7f2d3ec2f0326 (patch)
treedd98539eaa95aef14b4225fa52458fa45f9ace66 /interface-definitions
parent065a2d415a7d6faa7201e0d21ea73357100304e7 (diff)
downloadvyos-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')
-rw-r--r--interface-definitions/snmp.xml.in8
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>