diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-30 09:31:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-30 09:31:17 +0200 |
commit | 4326035e2319d969ad96d90ad5a8a1bc70427092 (patch) | |
tree | afd325e3235243c5efb17c1d00d4f6d1de7b0c7b /data | |
parent | d95f7036a00d758471a71c22fd014721eff0f007 (diff) | |
parent | 6aee08497522990b19291de42f9d445679eaae27 (diff) | |
download | vyos-1x-4326035e2319d969ad96d90ad5a8a1bc70427092.tar.gz vyos-1x-4326035e2319d969ad96d90ad5a8a1bc70427092.zip |
Merge pull request #2269 from indrajitr/ddclient-wait-time
ddclient: T5574: Support per-service cache management for providers
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/dns-dynamic/ddclient.conf.j2 | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/data/templates/dns-dynamic/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2 index 5905b19ea..6e77abdb5 100644 --- a/data/templates/dns-dynamic/ddclient.conf.j2 +++ b/data/templates/dns-dynamic/ddclient.conf.j2 @@ -14,10 +14,8 @@ if{{ ipv }}={{ address }}, \ {% endif %} {% endfor %} {# Other service options #} -{% for k,v in kwargs.items() %} -{% if v is vyos_defined %} -{{ k }}={{ v }}{{ ',' if not loop.last }} \ -{% endif %} +{% for k,v in kwargs.items() if v is vyos_defined %} +{{ k | replace('_', '-') }}={{ v }}{{ ',' if not loop.last }} \ {% endfor %} {# Actual hostname for the service #} {{ host }} @@ -49,7 +47,6 @@ use=no {{ render_config(host, address, service_cfg.web_options, protocol='nsupdate', server=config.server, zone=config.zone, password=config.key, ttl=config.ttl) }} - {% endfor %} {% endfor %} {% endif %} @@ -66,8 +63,8 @@ use=no # Web service dynamic DNS configuration for {{ name }}: [{{ config.protocol }}, {{ host }}] {{ render_config(host, address, service_cfg.web_options, ip_suffixes, protocol=config.protocol, server=config.server, zone=config.zone, - login=config.username, password=config.password, ttl=config.ttl) }} - + login=config.username, password=config.password, ttl=config.ttl, + min_interval=config.wait_time, max_interval=config.expiry_time) }} {% endfor %} {% endfor %} {% endif %} |