diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-15 17:00:12 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-15 17:00:53 +0100 |
commit | afdee28b8227eb21494c3dddddbe95045c4df91d (patch) | |
tree | d5a6e8ce0079a61295ae3fbe250d57bdf17634d6 /interface-definitions | |
parent | c1dd6401478306257cb62f4809ed087781c245ce (diff) | |
download | vyos-1x-afdee28b8227eb21494c3dddddbe95045c4df91d.tar.gz vyos-1x-afdee28b8227eb21494c3dddddbe95045c4df91d.zip |
dynamic-dns: T1879: extend XML validators
(cherry picked from commit 47c368136342f235765e1a0b611f0783a73ce299)
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/dns-dynamic.xml | 15 |
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"> |