devices results missing interface_set
Bug #1567213 reported by
Tim Penhey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse | ||
1.9 |
Fix Released
|
High
|
Blake Rouse |
Bug Description
/MAAS/api/
whereas
/MAAS/api/
Noticed when I added an interface to a device and then tried to work out where it appeared.
I know I can get it by listing /MAAS/api/
Related branches
lp://staging/~blake-rouse/maas/fix-1567213
- Andres Rodriguez (community): Needs Fixing (missing changelog entry)
- Mike Pontillo (community): Approve
-
Diff: 165 lines (+20/-23)6 files modifiedsrc/maasserver/api/devices.py (+16/-1)
src/maasserver/api/machines.py (+0/-2)
src/maasserver/api/nodes.py (+0/-8)
src/maasserver/api/tests/test_devices.py (+4/-2)
src/maasserver/api/tests/test_enlistment.py (+0/-2)
src/maasserver/api/tests/test_machines.py (+0/-8)
lp://staging/~blake-rouse/maas/fix-1567213-1.9
- Blake Rouse (community): Approve
-
Diff: 58 lines (+19/-0)3 files modifieddocs/changelog.rst (+2/-0)
src/maasserver/api/devices.py (+15/-0)
src/maasserver/api/tests/test_devices.py (+2/-0)
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I noticed that (on 2.0/trunk) we have the following DISPLAYED_ MACHINE_ FIELDS in api/machines.py:
('interface _set', (
'mac_address' ,
'discovered' ,
'effective_ mtu',
'id',
'name',
'type',
'vlan',
'parents',
'children',
'tags',
'enabled',
'links',
'params',
)),
In devices.py, we only have:
'macaddress _set',
Prior to MAAS 1.9, macaddress_set would have been correct. It looks like when we moved to the new networking model in MAAS 1.9, we missed changing the displayed API fields for devices.