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

[google] global IP addresses #394

Closed
wants to merge 1 commit into from

Conversation

erjohnso
Copy link
Member

I should've really added this as part of #390 but didn't catch it until after it had been merged.

Google Compute Engine typically has region-based IP addresses, but with the introduction of HTTP load-balancing, a global static IP addresses have been introduced. This PR is a small change to allow the GCEAddress class to allow for 'global' to be specified as the region.

New tests added to ensure both the original 'region-only' and new 'global' addresses are supported.

self.id, self.name, self.address)
return '<GCEAddress id="%s" name="%s" address="%s" region="%s">' % (
self.id, self.name, self.address,
(hasattr(self.region, "name") and self.region.name or self.region))
Copy link
Member

Choose a reason for hiding this comment

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

That's fine for now, but next time, for readability purposes, I would prefer to declare a separate region variable in the method and use that.

@Kami
Copy link
Member

Kami commented Nov 25, 2014

Merged into trunk. Thanks.

@asfgit asfgit closed this in ec4ac70 Nov 25, 2014
erjohnso added a commit to erjohnso/libcloud that referenced this pull request Dec 1, 2014
Closes apache#394

Signed-off-by: Tomaz Muraus <tomaz@apache.org>
@erjohnso erjohnso deleted the GCE_GlobalAddress branch December 18, 2014 22:16
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.

None yet

2 participants