summaryrefslogtreecommitdiff
path: root/interface-definitions/dns-dynamic.xml
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:53 +0100
commitafdee28b8227eb21494c3dddddbe95045c4df91d (patch)
treed5a6e8ce0079a61295ae3fbe250d57bdf17634d6 /interface-definitions/dns-dynamic.xml
parentc1dd6401478306257cb62f4809ed087781c245ce (diff)
downloadvyos-1x-afdee28b8227eb21494c3dddddbe95045c4df91d.tar.gz
vyos-1x-afdee28b8227eb21494c3dddddbe95045c4df91d.zip
dynamic-dns: T1879: extend XML validators
(cherry picked from commit 47c368136342f235765e1a0b611f0783a73ce299)
Diffstat (limited to 'interface-definitions/dns-dynamic.xml')
-rw-r--r--interface-definitions/dns-dynamic.xml15
1 files changed, 11 insertions, 4 deletions
diff --git a/interface-definitions/dns-dynamic.xml b/interface-definitions/dns-dynamic.xml
index e6b9bc318..725ebadac 100644
--- a/interface-definitions/dns-dynamic.xml
+++ b/interface-definitions/dns-dynamic.xml
@@ -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">