The nova.objects.pci_device_pool
Module¶
-
class
PciDevicePool
(context=None, **kwargs)¶ Bases:
nova.objects.base.NovaObject
-
VERSION
= '1.1'¶
-
count
¶
-
fields
= {'count': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'numa_node': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vendor_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'product_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'tags': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
-
classmethod
from_dict
(value)¶
-
numa_node
¶
-
obj_make_compatible
(primitive, target_version)¶
-
product_id
¶
-
to_dict
()¶
-
vendor_id
¶
-
-
class
PciDevicePoolList
(*args, **kwargs)¶ Bases:
nova.objects.base.ObjectListBase
,nova.objects.base.NovaObject
-
VERSION
= '1.1'¶
-
fields
= {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
-
objects
¶
-
-
from_pci_stats
(pci_stats)¶ Create and return a PciDevicePoolList from the data stored in the db, which can be either the serialized object, or, prior to the creation of the device pool objects, a simple dict or a list of such dicts.