Merge "Add fabric zone missing property"
This commit is contained in:
commit
70de23ad5c
@ -27,10 +27,18 @@ LOG = logging.getLogger(__name__)
|
||||
class ZoneLinksField(base.CompositeField):
|
||||
endpoint_identities = base.Field('Endpoints', default=[],
|
||||
adapter=utils.get_members_identities)
|
||||
"""An array of references to the endpoints
|
||||
that are contained in this zone
|
||||
"""
|
||||
|
||||
involved_switches = base.Field('InvolvedSwitches', default=[],
|
||||
adapter=utils.get_members_identities)
|
||||
"""An array of references to the switchs
|
||||
that are utilized in this zone
|
||||
"""
|
||||
|
||||
|
||||
class Zone(base.ResourceBase):
|
||||
|
||||
description = base.Field('Description')
|
||||
"""The zone description"""
|
||||
|
||||
|
@ -45,6 +45,8 @@ class ZoneTestCase(testtools.TestCase):
|
||||
'Endpoints/HostRootComplex1',
|
||||
'/redfish/v1/Fabrics/PCIe/Endpoints/NVMeDrivePF2'),
|
||||
self.zone_inst.links.endpoint_identities)
|
||||
self.assertEqual(('/redfish/v1/Fabrics/PCIe/Switches/1',),
|
||||
self.zone_inst.links.involved_switches)
|
||||
self.assertEqual('Enabled', self.zone_inst.status.state)
|
||||
self.assertEqual('OK', self.zone_inst.status.health)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user