summaryrefslogtreecommitdiffstats
path: root/ipaserver/dns_data_management.py
diff options
context:
space:
mode:
authorMartin Basti <mbasti@redhat.com>2016-06-23 14:50:11 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-28 15:23:51 +0200
commit104040cf363ec50d8006474422f2c13e44266806 (patch)
tree3f9f0e163110d246d8c949ec0d731ca502dd38e1 /ipaserver/dns_data_management.py
parenta636842889f832e977df61dbeac4e1055e129c0f (diff)
downloadfreeipa-104040cf363ec50d8006474422f2c13e44266806.tar.gz
freeipa-104040cf363ec50d8006474422f2c13e44266806.tar.xz
freeipa-104040cf363ec50d8006474422f2c13e44266806.zip
DNS Locations: cleanup of bininstance
We don't need anymore: * sample of zone file - list of all records required by IPa will be provided * NTP related params - DNS records will be updated automatically, based on LDAP values * CA related params - DNS records will be updated automatically based * on LDAP values https://fedorahosted.org/freeipa/ticket/2008 Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipaserver/dns_data_management.py')
-rw-r--r--ipaserver/dns_data_management.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/ipaserver/dns_data_management.py b/ipaserver/dns_data_management.py
index e7f65958f..48717c7c4 100644
--- a/ipaserver/dns_data_management.py
+++ b/ipaserver/dns_data_management.py
@@ -477,3 +477,12 @@ class IPASystemRecords(object):
)
)
return records
+
+ @classmethod
+ def records_list_from_zone(cls, zone_obj, sort=True):
+ records = []
+ for name, node in zone_obj.items():
+ records.extend(IPASystemRecords.records_list_from_node(name, node))
+ if sort:
+ records.sort()
+ return records