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

Issue 84850045: provider/maas: Get machine NICs in StartInstance (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by dimitern
Modified:
10 years ago
Reviewers:
mp+214528, vladislav.klyachin
Visibility:
Public.

Description

provider/maas: Get machine NICs in StartInstance If networks were specified, in StartInstance the MAAS provider now requests the node details from the server, which contain XML data from lshw that was gathered at commissioning time. The XML is parsed to extract a map of interface name to MAC address. This is needed so that in a follow-up we'll combine the information from there and from a GetNetworksList call to return []NetworkInfo from StartInstance. Live tested on MAAS and whitebox tested the XML parsing helper only, because gomaasapi's test server does not support getting node details yet. https://code.launchpad.net/~dimitern/juju-core/390-maas-get-node-nics/+merge/214528 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : provider/maas: Get machine NICs in StartInstance #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -2 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M provider/maas/environ.go View 1 3 chunks +77 lines, -0 lines 0 comments Download
M provider/maas/environ_whitebox_test.go View 1 2 chunks +51 lines, -2 lines 0 comments Download

Messages

Total messages: 5
dimitern
Please take a look.
10 years ago (2014-04-07 13:11:55 UTC) #1
vladislav.klyachin
I would prefer to have a reversed map to get interface name by mac address.
10 years ago (2014-04-07 14:45:37 UTC) #2
vladislav.klyachin
I would prefer to have a reversed map to get interface name by mac address. ...
10 years ago (2014-04-07 14:47:13 UTC) #3
vladislav.klyachin
LGTM
10 years ago (2014-04-07 16:37:24 UTC) #4
dimitern
10 years ago (2014-04-07 16:41:56 UTC) #5
Please take a look.

https://codereview.appspot.com/84850045/diff/1/provider/maas/environ.go
File provider/maas/environ.go (right):

https://codereview.appspot.com/84850045/diff/1/provider/maas/environ.go#newco...
provider/maas/environ.go:385: interfaces[node.LogicalName] = node.Serial
On 2014/04/07 14:47:13, vladislav.klyachin wrote:
> we need a reversed map here, because MAAS API provide us with MAC addresses
and
> this map should give an interface name by MAC address

Done.
Sign in to reply to this message.

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