Descriptionprovider/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://code.launchpad.net/~dimitern/juju-core/391-maas-map-networks-to-macs/+merge/214592
Requires: 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
MessagesTotal messages: 3
|