On 22.9.2015 10:42, Oleg Fayans wrote: > +++ b/ipatests/test_integration/tasks.py > @@ -58,6 +58,14 @@ def check_arguments_are(slice, instanceof): > return wrapped > return wrapper > > +def prepare_reverse_zone(host, ip): > + nums = ip.split('.')[:-1] > + zone = ".".join(reversed(nums)) + ".in-addr.arpa." > + host.run_command(["ipa", > + "dnszone-add", > + zone, > + "--name-from-ip=%s" % ip], raiseonerr=False) > +
NACK: - this will break IPv6-only hosts - you should use DNSName class or other functions from python-dns for DNS name manipulation I hope this helps. -- Petr^2 Spacek -- Manage your subscription for the Freeipa-devel mailing list: https://www.redhat.com/mailman/listinfo/freeipa-devel Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code