diff options
| author | Christian Poessinger <christian@poessinger.com> | 2022-09-20 20:39:51 +0200 | 
|---|---|---|
| committer | Christian Poessinger <christian@poessinger.com> | 2022-09-20 20:39:51 +0200 | 
| commit | bd2fc1900bfcd92eaa7edd430189cdd19e0e8770 (patch) | |
| tree | 3871716e883621b3f55f27cc6d726794c4be7b6b | |
| parent | 2eb0ddc54ea8bf50f62cc381eb3356363194c6fd (diff) | |
| download | vyos-1x-bd2fc1900bfcd92eaa7edd430189cdd19e0e8770.tar.gz vyos-1x-bd2fc1900bfcd92eaa7edd430189cdd19e0e8770.zip | |
xml: ipsec: T3093: add valueHelp and constraint for profile name
| -rw-r--r-- | interface-definitions/vpn-ipsec.xml.in | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/interface-definitions/vpn-ipsec.xml.in b/interface-definitions/vpn-ipsec.xml.in index 5887a349f..4b2296d24 100644 --- a/interface-definitions/vpn-ipsec.xml.in +++ b/interface-definitions/vpn-ipsec.xml.in @@ -623,6 +623,14 @@            <tagNode name="profile">              <properties>                <help>VPN IPsec profile</help> +              <valueHelp> +                <format>txt</format> +                <description>Profile 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>                #include <include/generic-disable-node.xml.i> | 
