~fwereade/juju-core/uniter-relation-states

Viewing all changes in revision 2584.

[r=dimitern] provider/maas: StartInstance makes []NetworkInfo

This refactors a few bits related to networking
in the MAAS provider (mainly unexporting internal
methods and fixing types).
It also adds a method to get all MAC addresses
connected to a network. Combining that with
the previous work, now StartInstance returns
a populated []environs.NetworkInfo when networks
are specified. Any errors from MAAS will cancel
StartInstance.

Last two steps to enable VLANs on MAAS will follow:
 * Provisioner uses []NetworkInfo from StartInstance
   to add the networks and interfaces in state, as
   needed;
 * Implement the changes to cloudinit scripts for
   MAAS so that network interfaces are brought up on
   boot.

Few other steps will be finished after that, but with
the ones above VLAN support will be complete (i.e.
juju status to show networks and CLI changes to validate
networks).

https://codereview.appspot.com/85060043/

R=fwereade

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: