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

Issue 52710048: provider/openstack: Add network config option

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by gz
Modified:
10 years, 3 months ago
Reviewers:
natefinch, fwereade, mp+203114
Visibility:
Public.

Description

provider/openstack: Add network config option Resolve issue with running juju on openstack setups with multiple networks, by allowing the user to supply a network label or id that juju should use for its machines. https://code.launchpad.net/~gz/juju-core/openstack_network_config_1241674/+merge/203114 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : provider/openstack: Add network config option #

Total comments: 4

Patch Set 3 : provider/openstack: Add network config option #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -9 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M dependencies.tsv View 1 1 chunk +1 line, -1 line 0 comments Download
M provider/openstack/config.go View 3 chunks +6 lines, -0 lines 0 comments Download
M provider/openstack/config_test.go View 3 chunks +11 lines, -0 lines 0 comments Download
M provider/openstack/export_test.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/openstack/local_test.go View 1 2 2 chunks +70 lines, -0 lines 0 comments Download
M provider/openstack/provider.go View 1 2 5 chunks +55 lines, -8 lines 0 comments Download

Messages

Total messages: 5
gz
Please take a look.
10 years, 3 months ago (2014-01-24 16:47:12 UTC) #1
fwereade
quick comments -- thoughts? https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go File provider/openstack/config.go (right): https://codereview.appspot.com/52710048/diff/1/provider/openstack/config.go#newcode42 provider/openstack/config.go:42: "network": "", this feels like ...
10 years, 3 months ago (2014-01-24 16:53:48 UTC) #2
gz
Please take a look. https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go File provider/openstack/local_test.go (right): https://codereview.appspot.com/52710048/diff/1/provider/openstack/local_test.go#newcode364 provider/openstack/local_test.go:364: "network": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6", On 2014/01/24 16:53:49, ...
10 years, 3 months ago (2014-01-24 17:03:01 UTC) #3
natefinch
LGTM with a couple small points. https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go File provider/openstack/provider.go (right): https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provider.go#newcode79 provider/openstack/provider.go:79: # networks specifies ...
10 years, 3 months ago (2014-01-24 20:12:40 UTC) #4
gz
10 years, 3 months ago (2014-01-24 20:43:52 UTC) #5
Please take a look.

https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
File provider/openstack/provider.go (right):

https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:79: # networks specifies the network label or
uuid to bring machines up on, in
On 2014/01/24 20:12:45, nate.finch wrote:
> s/networks/network

Will fix... I did plan to allow supplying multiple initially, but we'll leave
that for later.

https://codereview.appspot.com/52710048/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:642: var uuidRegexp =
regexp.MustCompile(uuidPattern)
On 2014/01/24 20:12:45, nate.finch wrote:
> Seems like there ought to be a function that verifies guids in Go instead of
> hand-writing a regex... 

Yes, yes there should. The best I could find was:

<https://github.com/nu7hatch/gouuid/blob/master/uuid.go>
Sign in to reply to this message.

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