summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-09-20 20:41:46 +0200
committerChristian Poessinger <christian@poessinger.com>2022-09-20 20:41:46 +0200
commit9ad4cb12ebfc305e296b744402c368a068ff39b0 (patch)
treebc2fbe11ab1ad78f11564fd50ce2fd150659e325 /interface-definitions
parentbd2fc1900bfcd92eaa7edd430189cdd19e0e8770 (diff)
downloadvyos-1x-9ad4cb12ebfc305e296b744402c368a068ff39b0.tar.gz
vyos-1x-9ad4cb12ebfc305e296b744402c368a068ff39b0.zip
xml: ipsec: T1210: add valueHelp and constraint for remote-access connection name
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/vpn-ipsec.xml.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/interface-definitions/vpn-ipsec.xml.in b/interface-definitions/vpn-ipsec.xml.in
index 4b2296d24..4776c53dc 100644
--- a/interface-definitions/vpn-ipsec.xml.in
+++ b/interface-definitions/vpn-ipsec.xml.in
@@ -686,6 +686,14 @@
<tagNode name="connection">
<properties>
<help>IKEv2 VPN connection name</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>Connection name</description>
+ </valueHelp>
+ <constraint>
+ <regex>[a-zA-Z][0-9a-zA-Z_-]+</regex>
+ </constraint>
+ <constraintErrorMessage>Profile name must be alphanumeric and can contain hyphen(s) and underscore(s)</constraintErrorMessage>
</properties>
<children>
<node name="authentication">