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

Issue 91000043: Show networks in juju status (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 12 months ago by dimitern
Modified:
9 years, 12 months ago
Reviewers:
gz, mp+217939, hduran
Visibility:
Public.

Description

Show networks in juju status This adds a new state method AllNetworks(), which returns all networks in state, and also makes the necessary changes to the API and cmd/juju so we can show networks as top-level entities in juju status: machines: ... services: ... networks: net1: provider-id: foo cidr: 0.1.2.0/24 vlan-tag: 42 https://code.launchpad.net/~dimitern/juju-core/410-show-networks-in-status/+merge/217939 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Show networks in juju status #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -1 line) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 6 chunks +40 lines, -0 lines 6 comments Download
M cmd/juju/status_test.go View 36 chunks +76 lines, -1 line 0 comments Download
M state/api/client.go View 2 chunks +10 lines, -0 lines 0 comments Download
M state/apiserver/client/api_test.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/client/status.go View 1 4 chunks +34 lines, -0 lines 0 comments Download
M state/apiserver/client/status_test.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state.go View 1 chunk +13 lines, -0 lines 0 comments Download
M state/state_test.go View 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
9 years, 12 months ago (2014-05-01 16:23:02 UTC) #1
hduran
LGTM Apart from that toubt on status https://codereview.appspot.com/91000043/diff/1/state/apiserver/client/status.go File state/apiserver/client/status.go (right): https://codereview.appspot.com/91000043/diff/1/state/apiserver/client/status.go#newcode380 state/apiserver/client/status.go:380: return Missing ...
9 years, 12 months ago (2014-05-01 16:28:43 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/91000043/diff/1/state/apiserver/client/status.go File state/apiserver/client/status.go (right): https://codereview.appspot.com/91000043/diff/1/state/apiserver/client/status.go#newcode380 state/apiserver/client/status.go:380: return On 2014/05/01 16:28:43, hduran ...
9 years, 12 months ago (2014-05-01 16:39:14 UTC) #3
gz
LGTM. https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go File cmd/juju/status.go (right): https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go#newcode97 cmd/juju/status.go:97: Networks map[string]networkStatus `json:"networks"` Add omitempty? Networks will just ...
9 years, 12 months ago (2014-05-01 17:17:29 UTC) #4
dimitern
9 years, 12 months ago (2014-05-01 18:08:03 UTC) #5
Message was sent while issue was closed.
https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go
File cmd/juju/status.go (right):

https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go#newcode97
cmd/juju/status.go:97: Networks    map[string]networkStatus `json:"networks"`
On 2014/05/01 17:17:29, gz wrote:
> Add omitempty? Networks will just never exist in many environments.

Good idea, will do in a follow-up.

https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go#newcode206
cmd/juju/status.go:206: VLANTag    int        `json:"vlan-tag" yaml:"vlan-tag"`
On 2014/05/01 17:17:29, gz wrote:
> VLANTag omitempty?

Done in a follow-up.

https://codereview.appspot.com/91000043/diff/20001/cmd/juju/status.go#newcode211
cmd/juju/status.go:211: func (n networkStatus) MarshalJSON() ([]byte, error) {
On 2014/05/01 17:17:29, gz wrote:
> We should really make these methods shared...

I'm not quite sure how to do that given goyaml issues.
Sign in to reply to this message.

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