Allow filtering by interface speed on machine listing
Bug #1848171 reported by
Steve Rydz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Lee Trager |
Bug Description
There is a roadmap item which requires the machine listing to allow filtering by link speed. The way this should work is the filter contains a list of all the link speeds which are being used in all interfaces. Besides each speed there is a count of the number of machines which have at least one interface using that speed.
We currently don't have interface data for the machines in the machine listing. Even with that we'd have to do a lot of data manipulation to get the data in the format required for filtering.
Ideally we'd have something in the machine object that gives up the link speeds for the interfaces.
Related branches
~ltrager/maas:lp1848171
Merged
into
maas:master
- Newell Jensen (community): Approve
- MAAS Lander: Needs Fixing
-
Diff: 84 lines (+30/-0)3 files modifiedsrc/maasserver/websockets/handlers/node.py (+9/-0)
src/maasserver/websockets/handlers/tests/test_device.py (+10/-0)
src/maasserver/websockets/handlers/tests/test_machine.py (+11/-0)
tags: | added: blocking-ui |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.7.0alpha1 |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
After some more investigation I can see that the filters do work with arrays. So, in order to get the filters to work as we want them we would need ideally an array of all interface link speeds e.g. ["1 Gbps", "5 Gbps"], failing that we'd need the interfaces data for each machine in the machines table and we can construct that array by looping through the interfaces (not ideal).