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

wants to merge 1 commit into from


Copy link

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.address)
return '<GCEAddress id="%s" name="%s" address="%s" region="%s">' % (,, self.address,
(hasattr(self.region, "name") and or self.region))
Copy link

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.

Copy link

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 <>
@erjohnso erjohnso deleted the GCE_GlobalAddress branch Dec 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants