Beispiel #1
0
class PoolInfo(BaseComponentInfo):
    '''
    API Info adapter factory for Pool.
    '''

    implements(IPoolInfo)
    adapts(Pool)

    master = RelationshipInfoProperty('master')
    default_sr = RelationshipInfoProperty('default_sr')
    suspend_image_sr = RelationshipInfoProperty('suspend_image_sr')
    crash_dump_sr = RelationshipInfoProperty('crash_dump_sr')

    ha_allow_overcommit = ProxyProperty('ha_allow_overcommit')
    ha_enabled = ProxyProperty('ha_enabled')
    ha_host_failures_to_tolerate = ProxyProperty('ha_host_failures_to_tolerate')
    name_description = ProxyProperty('name_description')
    name_label = ProxyProperty('name_label')
    oc_cpuid_feature_mask = ProxyProperty('oc_cpuid_feature_mask')
    oc_memory_ratio_hvm = ProxyProperty('oc_memory_ratio_hvm')
    oc_memory_ratio_pv = ProxyProperty('oc_memory_ratio_pv')
    vswitch_controller = ProxyProperty('vswitch_controller')

    host_count = RelationshipLengthProperty('hosts')
    vm_count = RelationshipLengthProperty('vms')
class PIFInfo(PooledComponentInfo):
    '''
    API Info adapter factor for PIF.
    '''

    implements(IPIFInfo)
    adapts(PIF)

    host = RelationshipInfoProperty('host')
    network = RelationshipInfoProperty('network')
    server_interface = RelationshipInfoProperty('server_interface')

    xenapi_metrics_ref = ProxyProperty('xenapi_metrics_ref')
    dns = ProxyProperty('dns')
    ipv4_addresses = ProxyProperty('ipv4_addresses')
    ipv6_addresses = ProxyProperty('ipv6_addresses')
    macaddress = ProxyProperty('macaddress')
    mtu = ProxyProperty('mtu')
    vlan = ProxyProperty('vlan')
    carrier = ProxyProperty('carrier')
    currently_attached = ProxyProperty('currently_attached')
    pif_device = ProxyProperty('pif_device')
    pif_device_id = ProxyProperty('pif_device_id')
    pif_device_name = ProxyProperty('pif_device_name')
    disallow_unplug = ProxyProperty('disallow_unplug')
    ipv4_gateway = ProxyProperty('ipv4_gateway')
    ipv4_configuration_mode = ProxyProperty('ipv4_configuration_mode')
    ipv6_configuration_mode = ProxyProperty('ipv6_configuration_mode')
    ipv6_gateway = ProxyProperty('ipv6_gateway')
    management = ProxyProperty('management')
    ipv4_netmask = ProxyProperty('ipv4_netmask')
    physical = ProxyProperty('physical')
    primary_address_type = ProxyProperty('primary_address_type')
    speed = ProxyProperty('speed')
    vendor_name = ProxyProperty('vendor_name')
class PBDInfo(PooledComponentInfo):
    '''
    API Info adapter factory for PBD.
    '''

    implements(IPBDInfo)
    adapts(PBD)

    host = RelationshipInfoProperty('host')
    sr = RelationshipInfoProperty('sr')
    server_disk = RelationshipInfoProperty('server_disk')

    currently_attached = ProxyProperty('currently_attached')
    dc_device = ProxyProperty('dc_device')
    dc_legacy_mode = ProxyProperty('dc_legacy_mode')
    dc_location = ProxyProperty('dc_location')
Beispiel #4
0
class VMInfo(PooledComponentInfo):
    '''
    API Info adapter factory for VM.
    '''

    implements(IVMInfo)
    adapts(VM)

    host = RelationshipInfoProperty('host')
    vmappliance = RelationshipInfoProperty('vmappliance')
    guest_device = RelationshipInfoProperty('guest_device')

    xenapi_metrics_ref = ProxyProperty('xenapi_metrics_ref')
    xenapi_guest_metrics_ref = ProxyProperty('xenapi_guest_metrics_ref')
    hvm_shadow_multiplier = ProxyProperty('hvm_shadow_multiplier')
    vcpus_at_startup = ProxyProperty('vcpus_at_startup')
    vcpus_max = ProxyProperty('vcpus_max')
    actions_after_crash = ProxyProperty('actions_after_crash')
    actions_after_reboot = ProxyProperty('actions_after_reboot')
    actions_after_shutdown = ProxyProperty('actions_after_shutdown')
    allowed_operations = ProxyProperty('allowed_operations')
    domarch = ProxyProperty('domarch')
    domid = ProxyProperty('domid')
    ha_always_run = ProxyProperty('ha_always_run')
    ha_restart_priority = ProxyProperty('ha_restart_priority')
    is_a_snapshot = ProxyProperty('is_a_snapshot')
    is_a_template = ProxyProperty('is_a_template')
    is_control_domain = ProxyProperty('is_control_domain')
    is_snapshot_from_vmpp = ProxyProperty('is_snapshot_from_vmpp')
    memory_actual = ProxyProperty('memory_actual')
    name_description = ProxyProperty('name_description')
    name_label = ProxyProperty('name_label')
    power_state = ProxyProperty('power_state')
    shutdown_delay = ProxyProperty('shutdown_delay')
    start_delay = ProxyProperty('start_delay')
    user_version = ProxyProperty('user_version')
    version = ProxyProperty('version')

    vbd_count = RelationshipLengthProperty('vbds')
    vif_count = RelationshipLengthProperty('vifs')
Beispiel #5
0
class VIFInfo(PooledComponentInfo):
    '''
    API Info adapter factory for VIF.
    '''

    implements(IVIFInfo)
    adapts(VIF)

    vm = RelationshipInfoProperty('vm')
    network = RelationshipInfoProperty('network')
    guest_interface = RelationshipInfoProperty('guest_interface')

    xenapi_metrics_ref = ProxyProperty('xenapi_metrics_ref')
    macaddress = ProxyProperty('macaddress')
    mac_autogenerated = ProxyProperty('mac_autogenerated')
    mtu = ProxyProperty('mtu')
    allowed_operations = ProxyProperty('allowed_operations')
    currently_attached = ProxyProperty('currently_attached')
    vif_device = ProxyProperty('vif_device')
    ipv4_allowed = ProxyProperty('ipv4_allowed')
    ipv6_allowed = ProxyProperty('ipv6_allowed')
    locking_mode = ProxyProperty('locking_mode')
class VBDInfo(PooledComponentInfo):
    '''
    API Info adapter factory for VBD.
    '''

    implements(IVBDInfo)
    adapts(VBD)

    vm = RelationshipInfoProperty('vm')
    vdi = RelationshipInfoProperty('vdi')
    guest_disk = RelationshipInfoProperty('guest_disk')

    xenapi_metrics_ref = ProxyProperty('xenapi_metrics_ref')
    allowed_operations = ProxyProperty('allowed_operations')
    bootable = ProxyProperty('bootable')
    currently_attached = ProxyProperty('currently_attached')
    vbd_device = ProxyProperty('vbd_device')
    empty = ProxyProperty('empty')
    mode = ProxyProperty('mode')
    storage_lock = ProxyProperty('storage_lock')
    vbd_type = ProxyProperty('vbd_type')
    unpluggable = ProxyProperty('unpluggable')
    userdevice = ProxyProperty('userdevice')
class HostInfo(PooledComponentInfo):
    '''
    API Info adapter factory for Host.
    '''

    implements(IHostInfo)
    adapts(Host)

    xenapi_metrics_ref = ProxyProperty('xenapi_metrics_ref')
    api_version_major = ProxyProperty('api_version_major')
    api_version_minor = ProxyProperty('api_version_minor')
    api_version_vendor = ProxyProperty('api_version_vendor')
    address = ProxyProperty('address')
    allowed_operations = ProxyProperty('allowed_operations')
    capabilities = ProxyProperty('capabilities')
    cpu_count = ProxyProperty('cpu_count')
    cpu_speed = ProxyProperty('cpu_speed')
    edition = ProxyProperty('edition')
    enabled = ProxyProperty('enabled')
    hostname = ProxyProperty('hostname')
    is_pool_master = ProxyProperty('is_pool_master')
    name_description = ProxyProperty('name_description')
    name_label = ProxyProperty('name_label')
    sched_policy = ProxyProperty('sched_policy')
    memory_total = ProxyProperty('memory_total')

    master_for = RelationshipInfoProperty('master_for')
    suspend_image_sr = RelationshipInfoProperty('suspend_image_sr')
    crash_dump_sr = RelationshipInfoProperty('crash_dump_sr')
    local_cache_sr = RelationshipInfoProperty('local_cache_sr')
    server_device = RelationshipInfoProperty('server_device')

    hostcpu_count = RelationshipLengthProperty('hostcpus')
    pbd_count = RelationshipLengthProperty('pbds')
    pif_count = RelationshipLengthProperty('pifs')
    vm_count = RelationshipLengthProperty('vms')