diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-29 20:23:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-29 20:23:36 +0000 |
commit | c0c599b2f5ea861f515e82ec8b1dad30c11e2575 (patch) | |
tree | 4c78a76cd36da62f95ce020e1e3594a366a740b6 | |
parent | 1e65e21614aa37bd53a8fc1437f7cda23e2b9de0 (diff) | |
parent | 0c9ffbf17c20750d95d3d8b7e6f1602e64406c0c (diff) | |
download | designate-c0c599b2f5ea861f515e82ec8b1dad30c11e2575.tar.gz |
Merge "Infoblox: Reverse lookup zone creation fails" into stable/newton3.0.0.0rc23.0.0
-rw-r--r-- | designate/backend/impl_infoblox/object_manipulator.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/designate/backend/impl_infoblox/object_manipulator.py b/designate/backend/impl_infoblox/object_manipulator.py index 8871e72d..9d696a67 100644 --- a/designate/backend/impl_infoblox/object_manipulator.py +++ b/designate/backend/impl_infoblox/object_manipulator.py @@ -111,11 +111,17 @@ class InfobloxObjectManipulator(object): def create_zone_auth(self, fqdn, dns_view): try: + if fqdn.endswith("in-addr.arpa"): + zone_format = 'IPV4' + elif fqdn.endswith("ip6.arpa"): + zone_format = 'IPV6' + else: + zone_format = 'FORWARD' self._create_infoblox_object( 'zone_auth', {'fqdn': fqdn, 'view': dns_view}, {'ns_group': self.connector.ns_group, - 'restart_if_needed': True}, + 'restart_if_needed': True, 'zone_format': zone_format}, check_if_exists=True) except exc.InfobloxCannotCreateObject as e: LOG.warning(e) |