MAAS does not advertise its capabilities
Bug #1297814 reported by
Gavin Panella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin |
Bug Description
Clients of MAAS must sniff around to discover or infer what capabilities the MAAS they're talking to has. For example, support for VLANs. It would be useful if MAAS were to publish a list of its capabilities.
A simple implementation is all that's needed. For example, a /capabilities/ view would return a JSON list of capability names, e.g.:
["networks-
This would remove the need for a global API version, which is unwieldy, and let us add and remove smaller chunks of API when it makes sense.
Related branches
lp:~rvb/maas/add-version-api
- Gavin Panella (community): Approve
-
Diff: 112 lines (+74/-0)3 files modifiedsrc/maasserver/api.py (+29/-0)
src/maasserver/tests/test_api_version.py (+42/-0)
src/maasserver/urls_api.py (+3/-0)
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Instead of limiting the response to a list, I suggest we make room for providing other types of information in the future and return a dict: { 'capabilities': [...]}.