summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-09 11:22:25 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-09 11:27:42 +0200
commitb7f4405e4d205c1e3a65e3b1c4295a934b6b974b (patch)
tree27cb60d905ff8382a548295b2b0a388c8678ff84 /interface-definitions
parent438a7e9e05b2170702e40dee1d7361b0ca781a77 (diff)
downloadvyos-1x-b7f4405e4d205c1e3a65e3b1c4295a934b6b974b.tar.gz
vyos-1x-b7f4405e4d205c1e3a65e3b1c4295a934b6b974b.zip
policy: T3531: Allow route-map names to contain an underscore
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/include/route-map.xml.i4
-rw-r--r--interface-definitions/policy.xml.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/interface-definitions/include/route-map.xml.i b/interface-definitions/include/route-map.xml.i
index edbe76892..88092b7d4 100644
--- a/interface-definitions/include/route-map.xml.i
+++ b/interface-definitions/include/route-map.xml.i
@@ -10,9 +10,9 @@
<description>Route map name</description>
</valueHelp>
<constraint>
- <regex>^[-a-zA-Z0-9.]+$</regex>
+ <regex>^[-_a-zA-Z0-9.]+$</regex>
</constraint>
- <constraintErrorMessage>Route-map name can only contain alpha-numeric letters and a hyphen</constraintErrorMessage>
+ <constraintErrorMessage>Name of route-map can only contain alpha-numeric letters, hyphen and underscores</constraintErrorMessage>
</properties>
</leafNode>
<!-- include end -->
diff --git a/interface-definitions/policy.xml.in b/interface-definitions/policy.xml.in
index 08e2ce2c6..fd337396b 100644
--- a/interface-definitions/policy.xml.in
+++ b/interface-definitions/policy.xml.in
@@ -452,9 +452,9 @@
<description>Route map name</description>
</valueHelp>
<constraint>
- <regex>^[-a-zA-Z0-9.]+$</regex>
+ <regex>^[-_a-zA-Z0-9.]+$</regex>
</constraint>
- <constraintErrorMessage>Route-map name can only contain alpha-numeric letters and a hyphen</constraintErrorMessage>
+ <constraintErrorMessage>Name of route-map can only contain alpha-numeric letters, hyphen and underscores</constraintErrorMessage>
</properties>
<children>
#include <include/policy/description.xml.i>