summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-09 10:46:06 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-09 10:46:06 +0200
commit438a7e9e05b2170702e40dee1d7361b0ca781a77 (patch)
tree2a99139538c1d62b65600fca30264aa136192b16
parentf1ddcbf1515450366fde1be469538501c33cc8e0 (diff)
downloadvyos-1x-438a7e9e05b2170702e40dee1d7361b0ca781a77.tar.gz
vyos-1x-438a7e9e05b2170702e40dee1d7361b0ca781a77.zip
bgp: T3530: add missing regex constraint for peer-group names
A peer-group may only consist out of alphanumeric characters, a hyphen and underscore.
-rw-r--r--interface-definitions/include/bgp/protocol-common-config.xml.i5
1 files changed, 4 insertions, 1 deletions
diff --git a/interface-definitions/include/bgp/protocol-common-config.xml.i b/interface-definitions/include/bgp/protocol-common-config.xml.i
index ac248b6be..e6b81ceb1 100644
--- a/interface-definitions/include/bgp/protocol-common-config.xml.i
+++ b/interface-definitions/include/bgp/protocol-common-config.xml.i
@@ -1406,7 +1406,10 @@
</node>
<tagNode name="peer-group">
<properties>
- <help>BGP peer-group</help>
+ <help>Name of peer-group</help>
+ <constraint>
+ <regex>^[-_a-zA-Z0-9]+$</regex>
+ </constraint>
</properties>
<children>
<node name="address-family">