summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>