Skip to content

[LIBCLOUD-640] Add support for Softlayer DNS driver #413

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

Closed

Conversation

vanclevstik
Copy link
Contributor

  • Refactored SoftLayer connection, moved it to common, to be used by compute and dns driver
  • Added support for DNS driver methods
  • Unit tests for all methods

Driver has been tested a bit manually too and it seems to work. Looking for review/any comments

One thing missing is support for "update_zone" method as SoftLayer doesn't support so I don't really know how to tackle this problem?

@vanclevstik vanclevstik force-pushed the create_softlayer_dns_driver branch from 2007cc9 to 81e844d Compare December 9, 2014 12:23
@Kami
Copy link
Member

Kami commented Dec 9, 2014

Great, thanks. I will review it ASAP.

As far as update_zone goes - you can just leave it unimplemented. Most providers who support zone editing only allow you to change attributes such as "ttl" and "email" (email address of the zone owner).

@vanclevstik vanclevstik force-pushed the create_softlayer_dns_driver branch from 81e844d to 9be2d8b Compare December 9, 2014 21:57
@vanclevstik
Copy link
Contributor Author

Had some Travis fails on py3 builds, should be fine now.

RecordType.TXT: 'txt',
}

def _to_zone(self, item):
Copy link
Member

Choose a reason for hiding this comment

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

Minor style and consistency things - can you please re-order the methods and put "private" methods at the end (https://libcloud.readthedocs.org/en/latest/development.html#function-and-method-ordering)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK will fix.

@vanclevstik vanclevstik force-pushed the create_softlayer_dns_driver branch from 9be2d8b to 0e76368 Compare December 15, 2014 18:11
@vanclevstik
Copy link
Contributor Author

@Kami Fixed, ready for review :)

@asfgit asfgit closed this in dd7ba77 Dec 16, 2014
@Kami
Copy link
Member

Kami commented Dec 16, 2014

I've made some more missed changes (updated delete_* methods to return a boolean on success) and merged patch into trunk.

Thanks!

@dz0ny dz0ny deleted the create_softlayer_dns_driver branch August 18, 2015 13:46
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.

2 participants