Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1512)

Issue 91150044: environs: Add AllocateAddress(instId, netId) call (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by dimitern
Modified:
9 years, 11 months ago
Reviewers:
mp+218491, natefinch, fwereade
Visibility:
Public.

Description

environs: Add AllocateAddress(instId, netId) call This introduces a new Environ interface method which will be used to allocate extra addresses for an instance. It is the first step towards enabling container addressability for EC2 and MAAS in a unified way. Right now only the dummy provider has an implementation for the new method (for testing), EC2 will be first to implement it (in a follow-up, not to clutter the review). https://code.launchpad.net/~dimitern/juju-core/430-environs-allocate-instance-address/+merge/218491 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : environs: Add AllocateAddress(instId, netId) call #

Patch Set 3 : environs: Add AllocateAddress(instId, netId) call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -0 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/interface.go View 2 chunks +5 lines, -0 lines 0 comments Download
M provider/azure/environ.go View 2 chunks +8 lines, -0 lines 0 comments Download
M provider/dummy/environs.go View 3 chunks +39 lines, -0 lines 0 comments Download
M provider/dummy/environs_test.go View 1 2 2 chunks +60 lines, -0 lines 0 comments Download
M provider/ec2/ec2.go View 2 chunks +9 lines, -0 lines 0 comments Download
M provider/joyent/environ_instance.go View 2 chunks +8 lines, -0 lines 0 comments Download
M provider/local/environ.go View 2 chunks +8 lines, -0 lines 0 comments Download
M provider/maas/environ.go View 2 chunks +11 lines, -0 lines 0 comments Download
M provider/manual/environ.go View 2 chunks +8 lines, -0 lines 0 comments Download
M provider/openstack/provider.go View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dimitern
Please take a look.
9 years, 11 months ago (2014-05-06 18:48:56 UTC) #1
natefinch
LGTM with a little test cleanup. https://codereview.appspot.com/91150044/diff/1/environs/jujutest/tests.go File environs/jujutest/tests.go (right): https://codereview.appspot.com/91150044/diff/1/environs/jujutest/tests.go#newcode196 environs/jujutest/tests.go:196: c.Assert(address, gc.DeepEquals, expectAddress) ...
9 years, 11 months ago (2014-05-06 19:17:45 UTC) #2
fwereade
+1 to nate's comments; and I'd really like to see the network/address integration you speak ...
9 years, 11 months ago (2014-05-06 19:41:54 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/91150044/diff/1/environs/jujutest/tests.go File environs/jujutest/tests.go (right): https://codereview.appspot.com/91150044/diff/1/environs/jujutest/tests.go#newcode176 environs/jujutest/tests.go:176: expectAddress := instance.NewAddress("0.1.2.1", instance.NetworkCloudLocal) On ...
9 years, 11 months ago (2014-05-06 20:26:55 UTC) #4
natefinch
On 2014/05/06 20:26:55, dimitern wrote: > Please take a look. > > https://codereview.appspot.com/91150044/diff/1/environs/jujutest/tests.go > File ...
9 years, 11 months ago (2014-05-06 20:52:27 UTC) #5
dimitern
9 years, 11 months ago (2014-05-06 21:42:25 UTC) #6
Please take a look.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b