summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-05-13 00:55:33 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-06-04 00:34:38 -0500
commitf4ea61dd5bf0ef2baa7d545b12e168b652412509 (patch)
treee20e0a4e7a15051f4bd5b86d0ef2e4029b56c491
parent79040279b0400cd819c165e5ed38c24bf3c387e3 (diff)
downloadvyos-1x-f4ea61dd5bf0ef2baa7d545b12e168b652412509.tar.gz
vyos-1x-f4ea61dd5bf0ef2baa7d545b12e168b652412509.zip
dns: T5144: Relocate ddclient template path for consistency with config path
-rw-r--r--data/templates/dns-dynamic/ddclient.conf.j2 (renamed from data/templates/dynamic-dns/ddclient.conf.j2)2
-rw-r--r--interface-definitions/dns-dynamic.xml.in2
-rwxr-xr-xsrc/conf_mode/dns_dynamic.py (renamed from src/conf_mode/dynamic_dns.py)2
3 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/dynamic-dns/ddclient.conf.j2 b/data/templates/dns-dynamic/ddclient.conf.j2
index 6d1eb03a7..945191bb7 100644
--- a/data/templates/dynamic-dns/ddclient.conf.j2
+++ b/data/templates/dns-dynamic/ddclient.conf.j2
@@ -22,7 +22,7 @@ if{{ ipv }}={{ address }}, \
{# Actual hostname for the service #}
{{ host }}
{% endmacro %}
-### Autogenerated by dynamic_dns.py ###
+### Autogenerated by dns_dynamic.py ###
daemon=1m
syslog=yes
ssl=yes
diff --git a/interface-definitions/dns-dynamic.xml.in b/interface-definitions/dns-dynamic.xml.in
index 308dc5de0..292c50603 100644
--- a/interface-definitions/dns-dynamic.xml.in
+++ b/interface-definitions/dns-dynamic.xml.in
@@ -7,7 +7,7 @@
<help>Domain Name System related services</help>
</properties>
<children>
- <node name="dynamic" owner="${vyos_conf_scripts_dir}/dynamic_dns.py">
+ <node name="dynamic" owner="${vyos_conf_scripts_dir}/dns_dynamic.py">
<properties>
<help>Dynamic DNS</help>
</properties>
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dns_dynamic.py
index fe72a3180..e4e2cf30e 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dns_dynamic.py
@@ -107,7 +107,7 @@ def generate(dyndns):
if not dyndns:
return None
- render(config_file, 'dynamic-dns/ddclient.conf.j2', dyndns)
+ render(config_file, 'dns-dynamic/ddclient.conf.j2', dyndns)
return None
def apply(dyndns):