Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LIBCLOUD-780] Add Rackspace RDNS support #652

Closed
wants to merge 1 commit into from

Conversation

jimbobhickville
Copy link
Contributor

New DNS driver methods:

  • ex_iterate_ptr_records
  • ex_get_ptr_record
  • ex_create_ptr_record
  • ex_update_ptr_record
  • ex_delete_ptr_record

This should cover all of the functionality offered by the Rackspace
DNS API in regards to RDNS.

@jimbobhickville
Copy link
Contributor Author

This depends on #650 going in first.

@jimbobhickville
Copy link
Contributor Author

Hrm... testing this against the real API there's some issues still. Closing it for now, will reopen when I sort 'em out.

@jimbobhickville
Copy link
Contributor Author

The documented response for listing PTR records is apparently not what is actually returned by the real API. Adjusted the code/tests to match reality.

New DNS driver methods:
  * ex_iterate_ptr_records
  * ex_get_ptr_record
  * ex_create_ptr_record
  * ex_update_ptr_record
  * ex_delete_ptr_record

This should cover all of the functionality offered by the Rackspace
DNS API in regards to RDNS.
self.connection.set_context({'resource': 'record', 'id': record_id})
response = self.connection.request(
action='/rdns/%s/%s' % (service_name, record_id)).object
item = next(iter(response['recordsList']['records']))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC, this is only available in python 2.6+

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next, that is

EDIT: Confirmed

@tonybaloney
Copy link
Contributor

#650 is closed.

@tonybaloney
Copy link
Contributor

LGTM 👍 thanks Greg

@asfgit asfgit closed this in 994f7a4 Dec 4, 2015
asfgit pushed a commit that referenced this pull request Dec 4, 2015
@Kami
Copy link
Member

Kami commented Dec 6, 2015

Great, thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants