Commit af191eab by Sunil Kumar Veerappa

removed data generator

parent f96a707a
from oslo_log import log as logging
import glob
import os
import re
import fcntl, socket, struct
import hashlib
from cyborg.objects.driver_objects import driver_deployable, driver_device,\
driver_attach_handle, driver_controlpath_id
from cyborg.common import constants
from oslo_versionedobjects import base as object_base
from cyborg.objects import fields as object_fields
from cyborg.objects import base
LOG = logging.getLogger(__name__)
DEVICE_TYPE = ["GPU", "FPGA"]
#Added by Rahul for m2dc data generation
@base.CyborgObjectRegistry.register
class m2dcDataGenerator(base.CyborgObject, object_base.VersionedObjectDictCompat):
fields = {
#'id': object_fields.IntegerField(nullable=False),
#'uuid': object_fields.UUIDField(nullable=False),
'type': object_fields.EnumField(valid_values=DEVICE_TYPE,
nullable=False),
'vendor': object_fields.StringField(nullable=False),
'model': object_fields.StringField(nullable=False),
'std_board_info': object_fields.StringField(nullable=True),
'vendor_board_info': object_fields.StringField(nullable=True),
'hostname': object_fields.StringField(nullable=False),
'attach_type': object_fields.StringField(nullable=False),
# PCI BDF or mediated device ID...
'attach_info': object_fields.StringField(nullable=False),
# The status of attach_handle, is in use or not.
'in_use': object_fields.BooleanField(nullable=False, default=False),
'cpid_type': object_fields.StringField(nullable=False),
# PCI BDF, PowerVM device, etc.
'cpid_info': object_fields.StringField(nullable=False),
'dep_name': object_fields.StringField(nullable=False),
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment