diff options
author | Martin Kosek <mkosek@redhat.com> | 2012-09-05 09:56:27 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-09-19 17:32:02 +0200 |
commit | ef7b8ab764420baa4e959c0bf060e390b314c18f (patch) | |
tree | 5c1bb869799928ea5aebfb3ed88fa88eced8da35 /install/tools/ipa-dns-install | |
parent | 26166deb0c3a9938eeb94725705d49d259aa6e70 (diff) | |
download | freeipa-ef7b8ab764420baa4e959c0bf060e390b314c18f.tar.gz freeipa-ef7b8ab764420baa4e959c0bf060e390b314c18f.tar.xz freeipa-ef7b8ab764420baa4e959c0bf060e390b314c18f.zip |
Use default reverse zone consistently
When a new reverse zone is to be generated based on an IP address without
a network prefix length, we need to use some default value. While netaddr
library default ones (32b for IPv4 and 128b for IPv6) are not very sensible
we should use the defaults already applied in installers. That is 24b for
IPv6 and 64 for IPv6.
Test case has been added to cover the new default.
https://fedorahosted.org/freeipa/ticket/2461
Diffstat (limited to 'install/tools/ipa-dns-install')
-rwxr-xr-x | install/tools/ipa-dns-install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-dns-install b/install/tools/ipa-dns-install index d4795f72e..84d1bdc2e 100755 --- a/install/tools/ipa-dns-install +++ b/install/tools/ipa-dns-install @@ -213,7 +213,7 @@ def main(): else: reverse_zone = bindinstance.find_reverse_zone(ip) if reverse_zone is None and not options.no_reverse: - reverse_zone = bindinstance.get_reverse_zone_default(ip) + reverse_zone = util.get_reverse_zone_default(ip) if not options.unattended and bindinstance.create_reverse(): reverse_zone = bindinstance.read_reverse_zone(reverse_zone, ip) |