summaryrefslogtreecommitdiff
path: root/interface-definitions/snmp.xml
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-03-09 19:24:00 +0200
committerDaniil Baturin <daniil@vyos.io>2020-03-09 19:24:00 +0200
commit806b944f62e675484a114f69be1fc80c1ec76337 (patch)
treefc9266a837a38c38dcfb79230727aed26a310aee /interface-definitions/snmp.xml
parentf4000627dac973e1a2a001f8de2430cbd6a69e03 (diff)
parent6b4fb1820e740e6c7d63d7aba94fb2e0c7f5eded (diff)
downloadvyos-1x-806b944f62e675484a114f69be1fc80c1ec76337.tar.gz
vyos-1x-806b944f62e675484a114f69be1fc80c1ec76337.zip
Merge branch 'crux' of github.com:vyos/vyos-1x into crux
Diffstat (limited to 'interface-definitions/snmp.xml')
-rw-r--r--interface-definitions/snmp.xml22
1 files changed, 15 insertions, 7 deletions
diff --git a/interface-definitions/snmp.xml b/interface-definitions/snmp.xml
index 821d1367d..fcc733c6c 100644
--- a/interface-definitions/snmp.xml
+++ b/interface-definitions/snmp.xml
@@ -585,16 +585,24 @@
<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">
- <properties>
- <help>Script location and name</help>
- <completionHelp>
- <script>ls /config/user-data</script>
- </completionHelp>
- </properties>
- </leafNode>
+ <properties>
+ <help>Script location and name</help>
+ <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>
</tagNode>
</children>