fix port name in Port resource
The name of the port is in the 'name' field coming back from the API and not in the 'port_name' field. Change-Id: Iad986ea693396a1bdb93345c7c9e778560ae7c06 Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
@@ -806,7 +806,7 @@ class TestBaremetalPortList(TestBaremetalPort):
|
|||||||
'Local Link Connection', 'Portgroup UUID',
|
'Local Link Connection', 'Portgroup UUID',
|
||||||
'PXE boot enabled', 'Physical Network', 'Updated At',
|
'PXE boot enabled', 'Physical Network', 'Updated At',
|
||||||
'Internal Info', 'Is Smart NIC port',
|
'Internal Info', 'Is Smart NIC port',
|
||||||
'Port Name')
|
'Name')
|
||||||
self.assertEqual(collist, columns)
|
self.assertEqual(collist, columns)
|
||||||
|
|
||||||
datalist = ((
|
datalist = ((
|
||||||
|
@@ -157,7 +157,6 @@ class Resource(object):
|
|||||||
'parent_node': 'Parent Node',
|
'parent_node': 'Parent Node',
|
||||||
'children': 'Child Nodes',
|
'children': 'Child Nodes',
|
||||||
'firmware_interface': 'Firmware Interface',
|
'firmware_interface': 'Firmware Interface',
|
||||||
'port_name': 'Port Name',
|
|
||||||
'public': 'Public'
|
'public': 'Public'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,7 +346,7 @@ PORT_DETAILED_RESOURCE = Resource(
|
|||||||
'updated_at',
|
'updated_at',
|
||||||
'internal_info',
|
'internal_info',
|
||||||
'is_smartnic',
|
'is_smartnic',
|
||||||
'port_name',
|
'name',
|
||||||
],
|
],
|
||||||
sort_excluded=[
|
sort_excluded=[
|
||||||
'extra',
|
'extra',
|
||||||
|
4
releasenotes/notes/fix-port-name-0d8190665b89c6d7.yaml
Normal file
4
releasenotes/notes/fix-port-name-0d8190665b89c6d7.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
fixes:
|
||||||
|
- |
|
||||||
|
Display correct field for the port name of the Port resource.
|
Reference in New Issue
Block a user