summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-02 12:02:57 +0200
committerChristian Poessinger <christian@poessinger.com>2021-10-02 12:03:44 +0200
commit3600f42ba23fc42de5f13b9d79c24f6fa0043187 (patch)
tree3e00f3660ed8dcd9c202fc68656e65de399519db /src/conf_mode
parent75559f559cb13a83089d68d7fbd63fd0e8a02a46 (diff)
downloadvyos-1x-3600f42ba23fc42de5f13b9d79c24f6fa0043187.tar.gz
vyos-1x-3600f42ba23fc42de5f13b9d79c24f6fa0043187.zip
dns: forwarding: T3882: remove deprecated code to work with PowerDNS 4.5
(cherry picked from commit 8e6c48563d1612916bd7fcc665d70bfa77ec5667)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index c44e6c974..06366362a 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -66,21 +66,6 @@ def get_config(config=None):
if conf.exists(base_nameservers_dhcp):
dns.update({'system_name_server_dhcp': conf.return_values(base_nameservers_dhcp)})
- # Split the source_address property into separate IPv4 and IPv6 lists
- # NOTE: In future versions of pdns-recursor (> 4.4.0), this logic can be removed
- # as both IPv4 and IPv6 addresses can be specified in a single setting.
- source_address_v4 = []
- source_address_v6 = []
-
- for source_address in dns['source_address']:
- if is_ipv6(source_address):
- source_address_v6.append(source_address)
- else:
- source_address_v4.append(source_address)
-
- dns.update({'source_address_v4': source_address_v4})
- dns.update({'source_address_v6': source_address_v6})
-
return dns
def verify(dns):