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

Issue 81550046: environs: Add EnvironCapability.SupportNetworks() (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:
vladislav.klyachin, mp+213262, fwereade
Visibility:
Public.

Description

environs: Add EnvironCapability.SupportNetworks() This provides a way to ask early if an environment supports the networking operations we need for VLANs. All providers, except MAAS and dummy return false for that. For MAAS used the newly created /version/ endpoint (in r2188, see bug #1297814) to check if support is there or not. In a follow-up we can finish the CLI changes now, with --networks / --no-networks arguments for deploy. https://code.launchpad.net/~dimitern/juju-core/365-environs-supportnetworks/+merge/213262 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 8

Patch Set 2 : environs: Add EnvironCapability.SupportNetworks() #

Patch Set 3 : environs: Add EnvironCapability.SupportNetworks() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -1 line) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/bootstrap/bootstrap.go View 1 chunk +1 line, -0 lines 0 comments Download
M environs/bootstrap/bootstrap_test.go View 1 chunk +4 lines, -0 lines 0 comments Download
M environs/interface.go View 1 chunk +4 lines, -0 lines 0 comments Download
M provider/azure/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/azure/environ_test.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/dummy/environs.go View 1 chunk +6 lines, -0 lines 0 comments Download
M provider/ec2/ec2.go View 1 chunk +7 lines, -0 lines 0 comments Download
M provider/ec2/local_test.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/joyent/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/local/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/local/environ_test.go View 2 chunks +7 lines, -1 line 0 comments Download
M provider/maas/environ.go View 1 2 2 chunks +57 lines, -0 lines 0 comments Download
M provider/maas/environ_whitebox_test.go View 1 chunk +7 lines, -0 lines 0 comments Download
M provider/manual/environ.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/manual/environ_test.go View 1 chunk +4 lines, -0 lines 0 comments Download
M provider/openstack/local_test.go View 1 chunk +5 lines, -0 lines 0 comments Download
M provider/openstack/provider.go View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6
dimitern
Please take a look.
10 years, 1 month ago (2014-03-28 13:36:23 UTC) #1
fwereade
LGTM https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go File provider/maas/environ.go (right): https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go#newcode160 provider/maas/environ.go:160: logger.Debugf(err.Error()) bit more context here please https://codereview.appspot.com/81550046/diff/1/provider/maas/environ_whitebox_test.go File ...
10 years, 1 month ago (2014-03-28 13:43:33 UTC) #2
vladislav.klyachin
LGTM https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go File provider/maas/environ.go (right): https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go#newcode156 provider/maas/environ.go:156: // SupportedArchitectures is specified on the EnvironCapability interface. ...
10 years, 1 month ago (2014-03-28 14:14:04 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go File provider/maas/environ.go (right): https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go#newcode160 provider/maas/environ.go:160: logger.Debugf(err.Error()) On 2014/03/28 13:43:34, fwereade ...
10 years, 1 month ago (2014-03-28 14:58:08 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go File provider/maas/environ.go (right): https://codereview.appspot.com/81550046/diff/1/provider/maas/environ.go#newcode156 provider/maas/environ.go:156: // SupportedArchitectures is specified on ...
10 years, 1 month ago (2014-03-28 15:12:39 UTC) #5
fwereade
10 years, 1 month ago (2014-03-28 16:24:36 UTC) #6
set.Strings looks eminently suitable, LGTM
Sign in to reply to this message.

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