diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-09 11:29:08 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-09 11:29:08 +0200 |
commit | f69b3041b9994c50ca2d4b137af2a23a354ceb01 (patch) | |
tree | ec109e4540fb8a2e80b7d93d99d9c79cbafea0e2 /interface-definitions/policy.xml.in | |
parent | b7f4405e4d205c1e3a65e3b1c4295a934b6b974b (diff) | |
download | vyos-1x-f69b3041b9994c50ca2d4b137af2a23a354ceb01.tar.gz vyos-1x-f69b3041b9994c50ca2d4b137af2a23a354ceb01.zip |
policy: T3531: Allow prefix-list names to contain an underscore
Diffstat (limited to 'interface-definitions/policy.xml.in')
-rw-r--r-- | interface-definitions/policy.xml.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in index fd337396b..900fac27e 100644 --- a/interface-definitions/policy.xml.in +++ b/interface-definitions/policy.xml.in @@ -321,8 +321,12 @@ <help>IP prefix-list filter</help> <valueHelp> <format>txt</format> - <description>Prefix list name</description> + <description>Name of IPv4 prefix-list</description> </valueHelp> + <constraint> + <regex>^[-_a-zA-Z0-9]+$</regex> + </constraint> + <constraintErrorMessage>Name of prefix-list can only contain alpha-numeric letters, hyphen and underscores</constraintErrorMessage> </properties> <children> #include <include/policy/description.xml.i> @@ -385,8 +389,12 @@ <help>IPv6 prefix-list filter</help> <valueHelp> <format>txt</format> - <description>Prefix list name</description> + <description>Name of IPv6 prefix-list</description> </valueHelp> + <constraint> + <regex>^[-_a-zA-Z0-9]+$</regex> + </constraint> + <constraintErrorMessage>Name of prefix-list6 can only contain alpha-numeric letters, hyphen and underscores</constraintErrorMessage> </properties> <children> #include <include/policy/description.xml.i> |