Merge lp:~jtv/maas/ui-maas_url into lp:~maas-committers/maas/trunk
Proposed by
Jeroen T. Vermeulen
Status: | Rejected |
---|---|
Rejected by: | Andres Rodriguez |
Proposed branch: | lp:~jtv/maas/ui-maas_url |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
94 lines (+47/-4) 3 files modified
src/maasserver/forms.py (+4/-3) src/maasserver/models/nodegroup.py (+6/-1) src/maasserver/tests/test_forms_nodegroup.py (+37/-0) |
To merge this branch: | bzr merge lp:~jtv/maas/ui-maas_url |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella (community) | Approve | ||
Review via email: mp+236817@code.launchpad.net |
Commit message
Expose NodeGroup.maas_url in the NodeGroupEdit, so that it can be edited through the UI and the API.
Users will typically have to edit this URL before they can disable IPv4 on nodes. Otherwise, this will default to an IPv4 address which the nodes won't be able to reach.
Description of the change
I didn't bother testing the API side separately. We don't test that for other fields either; it's just another item in the request data as far as the API is concerned.
Along the way I touched up the help text for the ‘name’ field. Makes it feel more like this branch actually makes some changes. :)
Jeroen
To post a comment you must log in.
This looks good, but beware: maas_url is automatically updated by m.api.node_ groups. update_ nodegroup_ maas_url( ) each time the cluster starts. I guess that behaviour will need to be changed.