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

Issue 54210047: ec2: Added (Un)AssignPrivateIPAddresses APIs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by dimitern
Modified:
10 years, 2 months ago
Reviewers:
mp+205203, niemeyer, rog
Visibility:
Public.

Description

ec2: Added (Un)AssignPrivateIPAddresses APIs Added two new API calls: - AssignPrivateIPAddresses - UnassignPrivateIPAddresses They allow adding or removing secondary private IP addresses to a network interface of an instance. This is the final part of the VPC-related goamz changes needed to support initial container networking in juju-core. Added a live-only test for the two new APIs and a couple of example response tests. Removed ec2.*Status constants, as suggested in a prereq review, which I omitted previously. https://code.launchpad.net/~dimitern/goamz/vpc-private-ips/+merge/205203 Requires: https://code.launchpad.net/~dimitern/goamz/vpc-instance-addons/+merge/205148 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 12

Patch Set 2 : ec2: Added (Un)AssignPrivateIPAddresses APIs #

Total comments: 8

Patch Set 3 : ec2: Added (Un)AssignPrivateIPAddresses APIs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -24 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ec2/ec2test/server.go View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ec2/networkinterfaces.go View 1 2 1 chunk +0 lines, -11 lines 0 comments Download
M ec2/networkinterfaces_test.go View 1 2 6 chunks +6 lines, -11 lines 0 comments Download
A ec2/privateips.go View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A ec2/privateips_test.go View 1 2 1 chunk +157 lines, -0 lines 0 comments Download
M ec2/responses_test.go View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years, 2 months ago (2014-02-06 16:04:44 UTC) #1
rog
LGTM with some suggestions below. https://codereview.appspot.com/54210047/diff/1/ec2/privateips.go File ec2/privateips.go (right): https://codereview.appspot.com/54210047/diff/1/ec2/privateips.go#newcode6 ec2/privateips.go:6: // Copyright (c) 2011 ...
10 years, 2 months ago (2014-02-06 18:36:03 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/54210047/diff/1/ec2/privateips.go File ec2/privateips.go (right): https://codereview.appspot.com/54210047/diff/1/ec2/privateips.go#newcode6 ec2/privateips.go:6: // Copyright (c) 2011 Canonical ...
10 years, 2 months ago (2014-02-07 13:18:51 UTC) #3
niemeyer
LGTM https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go File ec2/privateips.go (right): https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go#newcode1 ec2/privateips.go:1: // FWIW, it doesn't feel like the functionality ...
10 years, 2 months ago (2014-02-12 16:30:30 UTC) #4
dimitern
10 years, 2 months ago (2014-02-12 17:31:30 UTC) #5
*** Submitted:

ec2: Added (Un)AssignPrivateIPAddresses APIs

Added two new API calls:
- AssignPrivateIPAddresses
- UnassignPrivateIPAddresses

They allow adding or removing secondary private
IP addresses to a network interface of an instance.

This is the final part of the VPC-related goamz
changes needed to support initial container
networking in juju-core.

Added a live-only test for the two new APIs and
a couple of example response tests.

Removed ec2.*Status constants, as suggested in
a prereq review, which I omitted previously.

R=rog, niemeyer
CC=
https://codereview.appspot.com/54210047

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go
File ec2/privateips.go (right):

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go#newcode1
ec2/privateips.go:1: //
On 2014/02/12 16:30:30, niemeyer wrote:
> FWIW, it doesn't feel like the functionality here needs a file on its own.

I followed the same approach as for the other CLs, it seems cleaner IMO. If you
feel strongly against it, I can move all these into networkinterfaces.go.

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go#newcode8
ec2/privateips.go:8: // Written by Gustavo Niemeyer
<gustavo.niemeyer@canonical.com>
On 2014/02/12 16:30:30, niemeyer wrote:
> Please drop this line.

Done.

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips.go#newcode26
ec2/privateips.go:26: // mutually exclusive).
On 2014/02/12 16:30:30, niemeyer wrote:
> Suggested wording for the whole block of documentation above:
> 
> // AssignPrivateIPAddresses assigns secondary IP addresses to the network
> // interface interfaceId.
> //
> // If ipCount is non-zero, ipAddresses must be nil, and the specified
> // number of secondary IP addresses will be allocated within the subnet's
> // CIDR block range.
> 

Done.

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips_test.go
File ec2/privateips_test.go (right):

https://codereview.appspot.com/54210047/diff/20001/ec2/privateips_test.go#new...
ec2/privateips_test.go:8: // Written by Gustavo Niemeyer
<gustavo.niemeyer@canonical.com>
On 2014/02/12 16:30:30, niemeyer wrote:
> Please drop this line.

Done.
Sign in to reply to this message.

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