Ejemplo n.º 1
0
def _get_vdsm_domains():
    """
    Return a list of Domains created by VDSM.
    """
    return [dom_obj for dom_obj, dom_xml in _list_domains()
            if vmxml.has_channel(dom_xml, vmchannels.LEGACY_DEVICE_NAME) or
            vmxml.has_vdsm_metadata(dom_xml)]
Ejemplo n.º 2
0
def _get_vdsm_domains():
    """
    Return a list of Domains created by VDSM.
    """
    return [
        dom_obj for dom_obj, dom_xml in _list_domains()
        if vmxml.has_channel(dom_xml, vmchannels.LEGACY_DEVICE_NAME)
        or vmxml.has_vdsm_metadata(dom_xml)
    ]
Ejemplo n.º 3
0
def _is_external_vm(dom_xml):
    return (not vmxml.has_channel(dom_xml, vmchannels.LEGACY_DEVICE_NAME)
            and not vmxml.has_vdsm_metadata(dom_xml))