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

Issue 84570043: api/provisioner: Allow adding networks and NICs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by dimitern
Modified:
10 years, 1 month ago
Reviewers:
gz, mp+214272, fwereade
Visibility:
Public.

Description

api/provisioner: Allow adding networks and NICs This adds two new Provisioner API calls: * AddNetwork (exposed as st.AddNetworks bulk call on the client-side provisioner API) * AddNetworkInterface (exposed in the client-side API as machine.AddNetworkInterfaces bulk call) These will be used to set the networks/interfaces that will be configured by MAAS at provisioning time. Next, we'll make the necessary changes to StartInstance() in general (and in provider/maas specifically) to return what networks will the machine start with. https://code.launchpad.net/~dimitern/juju-core/382-api-provisioner-machine-nics/+merge/214272 Requires: https://code.launchpad.net/~dimitern/juju-core/381-state-machine-nics/+merge/213796 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 15

Patch Set 2 : api/provisioner: Allow adding networks and NICs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -4 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 chunk +26 lines, -0 lines 0 comments Download
M state/api/provisioner/machine.go View 1 chunk +28 lines, -0 lines 0 comments Download
M state/api/provisioner/provisioner.go View 1 chunk +20 lines, -0 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 3 chunks +94 lines, -2 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 1 chunk +36 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 3 chunks +134 lines, -2 lines 0 comments Download
M state/apiserver/testing/errors.go View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 4
dimitern
Please take a look.
10 years, 1 month ago (2014-04-04 14:58:11 UTC) #1
gz
LGTM. I am a little panicked around future-proofing though, I think these api structs will ...
10 years, 1 month ago (2014-04-04 15:40:02 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/84570043/diff/1/[revision%20details] File [revision details] (right): https://codereview.appspot.com/84570043/diff/1/[revision%20details]#newcode1 [revision details]:1: Old revision: dimiter.naydenov@canonical.com-20140404130803-ud1wt0tvilokd5vx ...
10 years, 1 month ago (2014-04-04 16:34:41 UTC) #3
fwereade
10 years, 1 month ago (2014-04-04 17:54:23 UTC) #4
Message was sent while issue was closed.
I'm a bit disappointed that we're making this so chatty, when ISTM that we could
pack all this into SetProvisioned, but... well, deadlines are tight and internal
APIs are much easier to change in future. Let it stand, I guess :).
Sign in to reply to this message.

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