diff options
author | zsdc <taras@vyos.io> | 2020-01-09 18:09:54 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2020-07-26 18:31:38 +0300 |
commit | b4459ea6df6e09f7c2395e59fe596acce228fc1f (patch) | |
tree | 51e31a7226f47e04bc471c867bc2fe639a12884f /interface-definitions | |
parent | aa60e1e383822d82e78788c1ea8117e1d371b950 (diff) | |
download | vyos-1x-b4459ea6df6e09f7c2395e59fe596acce228fc1f.tar.gz vyos-1x-b4459ea6df6e09f7c2395e59fe596acce228fc1f.zip |
dynamic DNS: T1953: Relaxed service name check
Internally, we can accept more than one server of each type for sending dynamic DNS updates, but due to a strong check in CLI, it is not possible to add more than one server with the same protocol (except "custom", but it allows to add only one more server). The patch relaxing this limitation by allowing adding as many servers with the same protocol, as needed.
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/dns-dynamic.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/interface-definitions/dns-dynamic.xml b/interface-definitions/dns-dynamic.xml index 725ebadac..498fd3f2f 100644 --- a/interface-definitions/dns-dynamic.xml +++ b/interface-definitions/dns-dynamic.xml @@ -70,11 +70,11 @@ <properties> <help>Service being used for Dynamic DNS [REQUIRED]</help> <completionHelp> - <list>custom afraid changeip cloudflare dnspark dslreports dyndns easydns namecheap noip sitelutions zoneedit</list> + <list><custom> afraid changeip cloudflare dnspark dslreports dyndns easydns namecheap noip sitelutions zoneedit</list> </completionHelp> <valueHelp> - <format>custom</format> - <description>Custom or predefined service</description> + <format><custom></format> + <description>Service with a custom name</description> </valueHelp> <valueHelp> <format>afraid</format> @@ -121,9 +121,9 @@ <description>zoneedit.com Services</description> </valueHelp> <constraint> - <regex>(custom|afraid|changeip|cloudflare|dnspark|dslreports|dyndns|easydns|namecheap|noip|sitelutions|zoneedit)</regex> + <regex>^(custom|afraid|changeip|cloudflare|dnspark|dslreports|dyndns|easydns|namecheap|noip|sitelutions|zoneedit|\w+)$</regex> </constraint> - <constraintErrorMessage>Please choose from the list of allowed services</constraintErrorMessage> + <constraintErrorMessage>You can use only predefined list of services or word characters (_, a-z, A-Z, 0-9) as service name</constraintErrorMessage> </properties> <children> <leafNode name="host-name"> |