summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-replica-install
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-09-05 09:56:27 +0200
committerMartin Kosek <mkosek@redhat.com>2012-09-19 17:32:02 +0200
commitef7b8ab764420baa4e959c0bf060e390b314c18f (patch)
tree5c1bb869799928ea5aebfb3ed88fa88eced8da35 /install/tools/ipa-replica-install
parent26166deb0c3a9938eeb94725705d49d259aa6e70 (diff)
downloadfreeipa-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-replica-install')
-rwxr-xr-xinstall/tools/ipa-replica-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-replica-install b/install/tools/ipa-replica-install
index 0378827d5..2c392754b 100755
--- a/install/tools/ipa-replica-install
+++ b/install/tools/ipa-replica-install
@@ -223,7 +223,7 @@ def install_bind(config, options):
else:
reverse_zone = bindinstance.find_reverse_zone(config.ip)
if reverse_zone is None and not options.no_reverse:
- reverse_zone = bindinstance.get_reverse_zone_default(config.ip)
+ reverse_zone = util.get_reverse_zone_default(config.ip)
if not options.unattended and bindinstance.create_reverse():
reverse_zone = bindinstance.read_reverse_zone(reverse_zone, config.ip)