Merge lp:~jtv/maas/take-node-disable-ipv4-from-nodegroup into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3051 |
Proposed branch: | lp:~jtv/maas/take-node-disable-ipv4-from-nodegroup |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
184 lines (+108/-9) 3 files modified
src/maasserver/api/tests/test_nodes.py (+57/-7) src/maasserver/forms.py (+14/-2) src/maasserver/tests/test_forms_node.py (+37/-0) |
To merge this branch: | bzr merge lp:~jtv/maas/take-node-disable-ipv4-from-nodegroup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | Approve | ||
Review via email: mp+235426@code.launchpad.net |
Commit message
Make Node.disable_ipv4 default to NodeGroup.
Description of the change
Doing this on the form seemed more appropriate to me than doing it on the model: this default value is basically a user-interface concept. Making such connections between model objects during model cleaning seems altogether too intricate.
The UI for disabling IPv4 is still hidden behind the REVEAL_IPv6 feature flag, and this new default setting does not have any UI at all yet. We can change that in a later branch.
While I was there I also updated some existing Node API tests with factory helpers we didn't have at the time, and made the basic test for creating a node through the API verify that the node actually gets created.
Jeroen