Пример #1
0
def getVsSystemType(vs):
    """
    This function gets the list of system types for the virtual system and
    selects one based on the libvirt capabilities.  It will select the
    first type in the list that is present on the system.
    @type node: DOM node
    @param node: Virtual System node

    @rtype: String
    @return: Platform type for Virtual System
    """
    virtTypes = OvfLibvirt.getOvfSystemType(vs)

    for virtType in virtTypes:
        # check if this virtType is available
        if virtTypeIsAvailable(virtType):
            return virtType

    return None