summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-dynamic.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-12-15 17:00:12 +0100
committerChristian Poessinger <christian@poessinger.com>2019-12-15 17:00:12 +0100
commit47c368136342f235765e1a0b611f0783a73ce299 (patch)
treec441d5d80f8ec9e512fbf406f97a9fa7a767bb0c /interface-definitions/dns-dynamic.xml.in
parent6b7453ea7d2b17e3988895e4fd8a5e8b634a8f90 (diff)
downloadvyos-1x-47c368136342f235765e1a0b611f0783a73ce299.tar.gz
vyos-1x-47c368136342f235765e1a0b611f0783a73ce299.zip
dynamic-dns: T1879: extend XML validators
Diffstat (limited to 'interface-definitions/dns-dynamic.xml.in')
-rw-r--r--interface-definitions/dns-dynamic.xml.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
index e6b9bc318..725ebadac 100644
--- a/interface-definitions/dns-dynamic.xml.in
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -120,6 +120,10 @@
<format>zoneedit</format>
<description>zoneedit.com Services</description>
</valueHelp>
+ <constraint>
+ <regex>(custom|afraid|changeip|cloudflare|dnspark|dslreports|dyndns|easydns|namecheap|noip|sitelutions|zoneedit)</regex>
+ </constraint>
+ <constraintErrorMessage>Please choose from the list of allowed services</constraintErrorMessage>
</properties>
<children>
<leafNode name="host-name">
@@ -141,10 +145,9 @@
<leafNode name="protocol">
<properties>
<help>ddclient protocol used for DDNS service [REQUIRED FOR CUSTOM]</help>
- <valueHelp>
- <format>protocol</format>
- <description>ddclient protocol</description>
- </valueHelp>
+ <completionHelp>
+ <list>changeip cloudflare dnspark dslreports1 dyndns2 easydns namecheap noip sitelutions zoneedit1</list>
+ </completionHelp>
<valueHelp>
<format>changeip</format>
<description>changeip protocol</description>
@@ -185,6 +188,10 @@
<format>zoneedit1</format>
<description>zoneedit1 protocol</description>
</valueHelp>
+ <constraint>
+ <regex>(changeip|cloudflare|dnspark|dslreports1|dyndns2|easydns|namecheap|noip|sitelutions|zoneedit1)</regex>
+ </constraint>
+ <constraintErrorMessage>Please choose from the list of allowed protocols</constraintErrorMessage>
</properties>
</leafNode>
<leafNode name="server">