summaryrefslogtreecommitdiff
path: root/interface-definitions/service-monitoring-telegraf.xml.in
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-03-24 08:47:28 +0100
committerChristian Breunig <christian@breunig.cc>2023-03-24 08:48:40 +0100
commit58b29610221a8f80bea1cfacbd2112f3690fe734 (patch)
treeaabd6c01a8eca8559ee38b9a4a66ac7dec6ef9db /interface-definitions/service-monitoring-telegraf.xml.in
parentb49c10c43266b053ff662cde8bbd110e17767a2b (diff)
downloadvyos-1x-58b29610221a8f80bea1cfacbd2112f3690fe734.tar.gz
vyos-1x-58b29610221a8f80bea1cfacbd2112f3690fe734.zip
xml: T5109: use common include file for alpha-numeric, hyphen and underscore regex
Diffstat (limited to 'interface-definitions/service-monitoring-telegraf.xml.in')
-rw-r--r--interface-definitions/service-monitoring-telegraf.xml.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/service-monitoring-telegraf.xml.in b/interface-definitions/service-monitoring-telegraf.xml.in
index f50e5e334..5ba932400 100644
--- a/interface-definitions/service-monitoring-telegraf.xml.in
+++ b/interface-definitions/service-monitoring-telegraf.xml.in
@@ -74,7 +74,7 @@
<properties>
<help>Application client id</help>
<constraint>
- <regex>[-_a-zA-Z0-9]+</regex>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.in>
</constraint>
<constraintErrorMessage>Client-id is limited to alphanumerical characters and can contain hyphen and underscores</constraintErrorMessage>
</properties>
@@ -83,7 +83,7 @@
<properties>
<help>Application client secret</help>
<constraint>
- <regex>[-_a-zA-Z0-9]+</regex>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.in>
</constraint>
<constraintErrorMessage>Client-secret is limited to alphanumerical characters and can contain hyphen and underscores</constraintErrorMessage>
</properties>
@@ -92,7 +92,7 @@
<properties>
<help>Set tenant id</help>
<constraint>
- <regex>[-_a-zA-Z0-9]+</regex>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.in>
</constraint>
<constraintErrorMessage>Tenant-id is limited to alphanumerical characters and can contain hyphen and underscores</constraintErrorMessage>
</properties>
@@ -107,7 +107,7 @@
<description>Remote database name</description>
</valueHelp>
<constraint>
- <regex>[-_a-zA-Z0-9]+</regex>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.in>
</constraint>
<constraintErrorMessage>Database is limited to alphanumerical characters and can contain hyphen and underscores</constraintErrorMessage>
</properties>
@@ -140,7 +140,7 @@
<description>Table name</description>
</valueHelp>
<constraint>
- <regex>[-_a-zA-Z0-9]+</regex>
+ #include <include/constraint/alpha-numeric-hyphen-underscore.xml.in>
</constraint>
<constraintErrorMessage>Table is limited to alphanumerical characters and can contain hyphen and underscores</constraintErrorMessage>
</properties>