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

Implement floating ips digitalocean #1177

Closed
wants to merge 4 commits into from

Commits on Mar 4, 2018

  1. implement ex_create_floating_ip for DigitalOcean

    create a new unassociated floating IP in a region
    vdloo committed Mar 4, 2018
    Configuration menu
    Copy the full SHA
    13f9217 View commit details
    Browse the repository at this point in the history
  2. implement ex_delete_floating_ip for DigitalOcean

    delete a floating IP by passing the object into conn.ex_delete_floating_ip
    or by running .delete on the floating IP object
    vdloo committed Mar 4, 2018
    Configuration menu
    Copy the full SHA
    3416df6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f3d517f View commit details
    Browse the repository at this point in the history
  4. implement ex_get_floating_ip for DigitalOcean

    Throws ValueError if the IP can not be found.
    
    Inspired by ex_get_floating_ip from openstack.py,
    but that one does `ip_obj, = [x for x in floating_ips if x.ip_address == ip]`
    which will cause an ugly unpacking error if the IP can not be found:
    `ValueError: need more than 0 values to unpack`
    vdloo committed Mar 4, 2018
    Configuration menu
    Copy the full SHA
    da8eaeb View commit details
    Browse the repository at this point in the history