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:12 +0100 |
commit | 47c368136342f235765e1a0b611f0783a73ce299 (patch) | |
tree | c441d5d80f8ec9e512fbf406f97a9fa7a767bb0c | |
parent | 6b7453ea7d2b17e3988895e4fd8a5e8b634a8f90 (diff) | |
download | vyos-1x-47c368136342f235765e1a0b611f0783a73ce299.tar.gz vyos-1x-47c368136342f235765e1a0b611f0783a73ce299.zip |
dynamic-dns: T1879: extend XML validators
-rw-r--r-- | interface-definitions/dns-dynamic.xml.in | 15 |
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"> |