could you please review this patch again? I'd like to have this fix in the new ipa-tests package for downstream team

On 09/29/2015 09:12 AM, Oleg Fayans wrote:
Hi all,

On 09/23/2015 09:13 AM, Petr Spacek wrote:
On 22.9.2015 10:42, Oleg Fayans wrote:
+++ b/ipatests/test_integration/
@@ -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)) + ""
+    host.run_command(["ipa",
+                      "dnszone-add",
+                      zone,
+                      "--name-from-ip=%s" % ip], raiseonerr=False)

- this will break IPv6-only hosts
- you should use DNSName class or other functions from python-dns for
DNS name

I hope this helps.

Thanks, it did :)
Used a ipalib.util get_reverse_zone_default function that does just
that: creates a reverse zone name.

Oleg Fayans
Quality Engineer
FreeIPA team

Manage your subscription for the Freeipa-devel mailing list:
Contribute to FreeIPA:

Reply via email to