summaryrefslogtreecommitdiff
path: root/interface-definitions/include/route-map.xml.i
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-04-09 09:27:26 +0200
committerGitHub <noreply@github.com>2021-04-09 09:27:26 +0200
commit1085195a2c29ef608bbc8cdf1cb172a9b1fe2530 (patch)
tree2ed3276b29d34baa3fe1b53c3d207afbc2081ca2 /interface-definitions/include/route-map.xml.i
parent6f6f45c57eef40ffe309f66865373d520e50b25d (diff)
parentc87376d1ff8919bd368af19f5b61b62e85ac2e9a (diff)
downloadvyos-1x-1085195a2c29ef608bbc8cdf1cb172a9b1fe2530.tar.gz
vyos-1x-1085195a2c29ef608bbc8cdf1cb172a9b1fe2530.zip
Merge pull request #800 from c-po/ospf-support-hyphen
protocols: fix "bad" design and non working route-maps containing hyphens
Diffstat (limited to 'interface-definitions/include/route-map.xml.i')
-rw-r--r--interface-definitions/include/route-map.xml.i14
1 files changed, 9 insertions, 5 deletions
diff --git a/interface-definitions/include/route-map.xml.i b/interface-definitions/include/route-map.xml.i
index 5a1c137b9..edbe76892 100644
--- a/interface-definitions/include/route-map.xml.i
+++ b/interface-definitions/include/route-map.xml.i
@@ -1,14 +1,18 @@
<!-- include start from route-map.xml.i -->
<leafNode name="route-map">
<properties>
- <help>Route map reference</help>
- <valueHelp>
- <format>txt</format>
- <description>Route map reference</description>
- </valueHelp>
+ <help>Specify route-map name to use</help>
<completionHelp>
<path>policy route-map</path>
</completionHelp>
+ <valueHelp>
+ <format>txt</format>
+ <description>Route map name</description>
+ </valueHelp>
+ <constraint>
+ <regex>^[-a-zA-Z0-9.]+$</regex>
+ </constraint>
+ <constraintErrorMessage>Route-map name can only contain alpha-numeric letters and a hyphen</constraintErrorMessage>
</properties>
</leafNode>
<!-- include end -->