DescriptionAdded network inclusion/exclusion to acquireNode
I added Networks structure as a parameter of acquireNode
in maas provider. Its two members IncludedNetworks and
ExcludedNetworks get converted, in a similar fashion than
constraints, into url encoded parameters, according to
~maas-maintainers/maas/trunk/view/head:/docs/networks.rst
they become, respectively "networks" and "not_networks"
For this I create an analog to convertConstraints which
I called convertNetworks, mostly to keep the two
conceptually separated.
I added testing for the four variants I could think of
the structure values that where representative.
I also made a small cosmetic change to the converConstraints
test since it was very hard to read and I needed to based my
own test on it
https://code.launchpad.net/~hduran-8/juju-core/add_networks_to_maas_acquireNode/+merge/211748
Requires: https://code.launchpad.net/~gz/juju-core/add_startinstance_params/+merge/211588
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 5
Patch Set 2 : Added network inclusion/exclusion to acquireNode #Patch Set 3 : Added network inclusion/exclusion to acquireNode #
MessagesTotal messages: 9
|