"node-interface" API should just be "interface" - to allow devices to use it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Unassigned | ||
1.9 |
Fix Released
|
Critical
|
Unassigned |
Bug Description
The "node-interfaces" and "node-interface" API should really just be "interfaces" and "interface" respectively. This is because it can be used on a device as well, with some limitation for devices.
This will also be important in 2.0 when rack controllers will be able to have there interfaces modified. The same endpoint can be used for that as well.
This will also improve Juju. Juju will be able to use this endpoint on a device to make sure the device gets the correct IP address for the subnet they request. At the moment the "claim-
maas my-session devices new hostname=
maas my-session interface link-subnet <new-device-id> <new-device-
Related branches
- Andres Rodriguez (community): Approve
- Mike Pontillo (community): Needs Information
-
Diff: 1023 lines (+375/-94)7 files modifieddocs/changelog.rst (+2/-1)
src/maasserver/api/interfaces.py (+73/-34)
src/maasserver/api/tests/test_interfaces.py (+219/-51)
src/maasserver/forms_interface_link.py (+21/-7)
src/maasserver/models/__init__.py (+20/-1)
src/maasserver/tests/test_auth.py (+28/-0)
src/maasserver/urls_api.py (+12/-0)
- Blake Rouse (community): Approve
-
Diff: 1057 lines (+408/-94)7 files modifieddocs/changelog.rst (+31/-1)
src/maasserver/api/interfaces.py (+73/-34)
src/maasserver/api/tests/test_interfaces.py (+223/-51)
src/maasserver/forms_interface_link.py (+21/-7)
src/maasserver/models/__init__.py (+20/-1)
src/maasserver/tests/test_auth.py (+28/-0)
src/maasserver/urls_api.py (+12/-0)
Changed in maas: | |
milestone: | 1.9.0 → next |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
milestone: | next → none |