def query_servers(name, type_, servers=None, timeout=3): servers = servers or os.environ.get("DESIGNATE_SERVERS", cfg.CONF.designate.nameservers) results = [] for srv in servers: server, port = srv.split(":") port = port or 53 result = utils.wait_for_condition( lambda: query(name, type_, server, port)) results.append(result) return results
def wait_for_404(self, zone_id, recordset_id): utils.wait_for_condition( lambda: self.is_recordset_404(zone_id, recordset_id))
def wait_for_recordset(self, zone_id, recordset_id): utils.wait_for_condition( lambda: self.is_recordset_active(zone_id, recordset_id))
def wait_for_zone_import(self, zone_import_id): utils.wait_for_condition( lambda: self.is_zone_import_active(zone_import_id))
def wait_for_zone_404(self, zone_id): utils.wait_for_condition(lambda: self.is_zone_404(zone_id))