summaryrefslogtreecommitdiff
path: root/interface-definitions/policy.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-08-17 13:46:22 +0200
committerChristian Poessinger <christian@poessinger.com>2021-08-17 13:46:22 +0200
commit3535340f0b8db459e89f350016f30c1aa99a2f0f (patch)
treea44ec0b831782f8ede4525275778d3a73dad79bf /interface-definitions/policy.xml.in
parentc33ea3f44218f2937966bf178cd5dfd0332d4df9 (diff)
downloadvyos-1x-3535340f0b8db459e89f350016f30c1aa99a2f0f.tar.gz
vyos-1x-3535340f0b8db459e89f350016f30c1aa99a2f0f.zip
policy: T2425: add missing constraints for extended and large community lists
Diffstat (limited to 'interface-definitions/policy.xml.in')
-rw-r--r--interface-definitions/policy.xml.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 175c912d5..b3510a716 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -241,6 +241,10 @@
<format>txt</format>
<description>BGP extended community-list name</description>
</valueHelp>
+ <constraint>
+ <regex>^[a-zA-Z0-9]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Should be an alphanumeric name</constraintErrorMessage>
</properties>
<children>
#include <include/generic-description.xml.i>
@@ -286,6 +290,10 @@
<format>txt</format>
<description>BGP large-community-list name</description>
</valueHelp>
+ <constraint>
+ <regex>^[a-zA-Z0-9]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Should be an alphanumeric name</constraintErrorMessage>
</properties>
<children>
#include <include/generic-description.xml.i>