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

Issue 76910044: state/api: Add Client.ServiceDeployWithNetworks (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+211773, jameinel, fwereade, rog
Visibility:
Public.

Description

state/api: Add Client.ServiceDeployWithNetworks This adds a new client API call: ServiceDeployWithNetworks, which works exactly like ServiceDeploy, but takes two extra arguments: IncludeNetworks and ExcludeNetworks. These specify a list of VLANs/networks to enable or disable at boot time for the machine being deployed, and also record that into the service document. AddUnits is also changed (and its tests) to respect networks set on the service and pass them through MachineTemplate when deploying or a new machine or container. https://code.launchpad.net/~dimitern/juju-core/350-api-service-deploy-with-networks/+merge/211773 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api: Add Client.ServiceDeployWithNetworks #

Total comments: 6

Patch Set 3 : state/api: Add Client.ServiceDeployWithNetworks #

Total comments: 4

Patch Set 4 : state/api: Add Client.ServiceDeployWithNetworks #

Patch Set 5 : state/api: Add Client.ServiceDeployWithNetworks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -49 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M juju/conn_test.go View 1 2 3 4 2 chunks +19 lines, -1 line 0 comments Download
M juju/deploy.go View 1 2 3 4 4 chunks +21 lines, -5 lines 0 comments Download
M state/api/client.go View 1 2 3 4 1 chunk +19 lines, -2 lines 0 comments Download
M state/api/params/params.go View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M state/apiserver/client/client.go View 1 2 3 4 1 chunk +15 lines, -6 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 3 4 2 chunks +45 lines, -23 lines 0 comments Download
M state/apiserver/client/perm_test.go View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M state/assign_test.go View 1 2 3 4 2 chunks +16 lines, -1 line 0 comments Download
M state/unit.go View 1 2 3 4 3 chunks +32 lines, -11 lines 0 comments Download

Messages

Total messages: 10
dimitern
Please take a look.
10 years, 1 month ago (2014-03-20 10:16:37 UTC) #1
fwereade
1) it's hard to approve this without an implementation in the background 2) should we ...
10 years, 1 month ago (2014-03-20 13:42:47 UTC) #2
rog
https://codereview.appspot.com/76910044/diff/20001/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/76910044/diff/20001/state/api/params/params.go#newcode155 state/api/params/params.go:155: type ServiceDeployWithNetworks struct { I suggest that instead of ...
10 years, 1 month ago (2014-03-20 14:06:22 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/76910044/diff/20001/state/api/params/params.go File state/api/params/params.go (right): https://codereview.appspot.com/76910044/diff/20001/state/api/params/params.go#newcode155 state/api/params/params.go:155: type ServiceDeployWithNetworks struct { On ...
10 years, 1 month ago (2014-03-20 15:41:47 UTC) #4
rog
much nicer, thanks. LGTM with one suggestion below. https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go File state/apiserver/client/client.go (right): https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go#newcode298 state/apiserver/client/client.go:298: if ...
10 years, 1 month ago (2014-03-20 15:45:03 UTC) #5
jameinel
https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go File state/apiserver/client/client.go (right): https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go#newcode298 state/apiserver/client/client.go:298: if len(args.IncludedNetworks) == 0 && len(args.ExcludedNetworks) == 0 { ...
10 years, 1 month ago (2014-03-20 20:38:21 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go File state/apiserver/client/client.go (right): https://codereview.appspot.com/76910044/diff/40001/state/apiserver/client/client.go#newcode298 state/apiserver/client/client.go:298: if len(args.IncludedNetworks) == 0 && ...
10 years, 1 month ago (2014-03-21 15:09:26 UTC) #7
fwereade
On 2014/03/20 20:38:21, jameinel wrote: > As William pointed out in IRC, I think the ...
10 years, 1 month ago (2014-03-24 09:57:32 UTC) #8
dimitern
Please take a look.
10 years, 1 month ago (2014-03-26 11:04:02 UTC) #9
gz
10 years, 1 month ago (2014-03-26 12:20:18 UTC) #10
LGTM.
Sign in to reply to this message.

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