Fix wrong ReferenceableMemberField resource class

Change-Id: I935c9e78e33432202bdbf25b495e4e82edb5f3f1
This commit is contained in:
Lin Yang 2019-05-15 15:21:30 -07:00
parent 73c8b17c67
commit f98599c640
11 changed files with 16 additions and 20 deletions

View File

@ -77,7 +77,7 @@ class PowerLimitField(base.CompositeField):
"""
class InputRangeCollectionField(rsd_lib_base.ReferenceableMemberField):
class InputRangeCollectionField(base.ListField):
input_type = base.Field("InputType")
"""The Input type (AC or DC)"""

View File

@ -20,7 +20,7 @@ from rsd_lib.resources.v2_1.common import rack_location
from rsd_lib import utils as rsd_lib_utils
class PowerSupplyCollectionField(rsd_lib_base.ReferenceableMemberField):
class PowerSupplyCollectionField(base.ListField):
name = base.Field("Name")
"""The Power Supply name"""

View File

@ -20,7 +20,7 @@ from rsd_lib.resources.v2_1.common import rack_location
from rsd_lib import utils as rsd_lib_utils
class TemperatureSensorCollectionField(rsd_lib_base.ReferenceableMemberField):
class TemperatureSensorCollectionField(base.ListField):
name = base.Field("Name")
"""The Power Supply name"""
@ -46,7 +46,7 @@ class TemperatureSensorCollectionField(rsd_lib_base.ReferenceableMemberField):
"""The temperature sensors status"""
class FanCollectionField(rsd_lib_base.ReferenceableMemberField):
class FanCollectionField(base.ListField):
name = base.Field("Name")
"""The Power Supply name"""

View File

@ -15,10 +15,8 @@
from sushy.resources import base
from rsd_lib import base as rsd_lib_base
class IPv6AddressCollectionField(rsd_lib_base.ReferenceableMemberField):
class IPv6AddressCollectionField(base.ListField):
address = base.Field("Address")
"""This is the IPv6 Address."""
@ -33,7 +31,7 @@ class IPv6AddressCollectionField(rsd_lib_base.ReferenceableMemberField):
"""The current state of this address as defined in RFC 4862."""
class IPv6StaticAddressCollectionField(rsd_lib_base.ReferenceableMemberField):
class IPv6StaticAddressCollectionField(base.ListField):
"""IPv6StaticAddress field
This object represents a single IPv6 static address to be assigned on a
@ -47,7 +45,7 @@ class IPv6StaticAddressCollectionField(rsd_lib_base.ReferenceableMemberField):
"""The Prefix Length of this IPv6 address."""
class IPv4AddressCollectionField(rsd_lib_base.ReferenceableMemberField):
class IPv4AddressCollectionField(base.ListField):
address = base.Field("Address")
"""This is the IPv4 Address."""

View File

@ -55,7 +55,7 @@ class PciIdField(base.CompositeField):
"""The Subsystem Vendor ID of this PCIe function."""
class ConnectedEntityCollectionField(rsd_lib_base.ReferenceableMemberField):
class ConnectedEntityCollectionField(base.ListField):
"""ConnectedEntity field
Represents a remote resource that is connected to the network

View File

@ -47,7 +47,7 @@ class ChapField(base.CompositeField):
"""CHAP mutual secret."""
class TargetLUNCollectionField(rsd_lib_base.ReferenceableMemberField):
class TargetLUNCollectionField(base.ListField):
lun = base.Field("LUN", adapter=rsd_lib_utils.num_or_none)
"""Logical unit number"""
@ -78,12 +78,12 @@ class ISCSIAddressField(base.CompositeField):
"""CHAP parameters of iSCSI target."""
class InitiatorCollectionField(rsd_lib_base.ReferenceableMemberField):
class InitiatorCollectionField(base.ListField):
iscsi = iSCSIInitiatorField("iSCSI")
class AddressCollectionField(rsd_lib_base.ReferenceableMemberField):
class AddressCollectionField(base.ListField):
iscsi = ISCSIAddressField("iSCSI")

View File

@ -45,9 +45,7 @@ class LinksField(base.CompositeField):
""""The oem of Links"""
class IPv6AddressPolicyEntryCollectionField(
rsd_lib_base.ReferenceableMemberField
):
class IPv6AddressPolicyEntryCollectionField(base.ListField):
prefix = base.Field("Prefix")
"""The IPv6 Address Prefix (as defined in RFC 6724 section 2.1)"""

View File

@ -48,7 +48,7 @@ class MemoryLocationField(base.CompositeField):
"""Slot number in which Memory is connected"""
class RegionSetCollectionField(rsd_lib_base.ReferenceableMemberField):
class RegionSetCollectionField(base.ListField):
"""RegionSet field
Memory memory region information.

View File

@ -19,7 +19,7 @@ from rsd_lib import base as rsd_lib_base
from rsd_lib import utils as rsd_lib_utils
class DeviceCollectionField(rsd_lib_base.ReferenceableMemberField):
class DeviceCollectionField(base.ListField):
name = base.Field("Name")
"""The name of the resource or array element."""

View File

@ -135,7 +135,7 @@ class MemorySummaryField(base.CompositeField):
"""
class PciDeviceCollectionField(rsd_lib_base.ReferenceableMemberField):
class PciDeviceCollectionField(base.ListField):
vendor_id = base.Field("VendorId")

View File

@ -29,7 +29,7 @@ class LinksField(base.CompositeField):
"""
class OperationsCollectionField(rsd_lib_base.ReferenceableMemberField):
class OperationsCollectionField(base.ListField):
operation_name = base.Field("OperationName")
"""The name of the operation."""