当前位置: 首页>>代码示例>>Python>>正文


Python FeatureTests.libvirt_supports_iso_stream方法代码示例

本文整理汇总了Python中wok.plugins.kimchi.model.featuretests.FeatureTests.libvirt_supports_iso_stream方法的典型用法代码示例。如果您正苦于以下问题:Python FeatureTests.libvirt_supports_iso_stream方法的具体用法?Python FeatureTests.libvirt_supports_iso_stream怎么用?Python FeatureTests.libvirt_supports_iso_stream使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wok.plugins.kimchi.model.featuretests.FeatureTests的用法示例。


在下文中一共展示了FeatureTests.libvirt_supports_iso_stream方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _set_depend_capabilities

# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_supports_iso_stream [as 别名]
    def _set_depend_capabilities(self):
        wok_log.info("*** Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()

        self.libvirt_stream_protocols = []
        for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
            if FeatureTests.libvirt_supports_iso_stream(conn, p):
                self.libvirt_stream_protocols.append(p)

        wok_log.info("*** Dependable feature tests completed ***")
开发者ID:MalleshKoti,项目名称:kimchi,代码行数:13,代码来源:config.py

示例2: _set_depend_capabilities

# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_supports_iso_stream [as 别名]
    def _set_depend_capabilities(self):
        wok_log.info("\n*** Kimchi: Running dependable feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        msg = "QEMU stream support .......: %s"
        wok_log.info(msg % str(self.qemu_stream))

        self.libvirt_stream_protocols = []
        for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
            if FeatureTests.libvirt_supports_iso_stream(conn, p):
                self.libvirt_stream_protocols.append(p)
        msg = "Libvirt Stream Protocols ..: %s"
        wok_log.info(msg % str(self.libvirt_stream_protocols))
        wok_log.info("*** Kimchi: Dependable feature tests completed ***\n")
开发者ID:MontePreso,项目名称:kimchi,代码行数:16,代码来源:config.py

示例3: _set_capabilities

# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_supports_iso_stream [as 别名]
    def _set_capabilities(self):
        wok_log.info("*** Running feature tests ***")
        conn = self.conn.get()
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        self.nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
        self.fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
        self.kernel_vfio = FeatureTests.kernel_support_vfio()
        self.mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)

        self.libvirt_stream_protocols = []
        for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
            if FeatureTests.libvirt_supports_iso_stream(conn, p):
                self.libvirt_stream_protocols.append(p)

        wok_log.info("*** Feature tests completed ***")
开发者ID:madhawa,项目名称:kimchi,代码行数:17,代码来源:config.py

示例4: _set_capabilities

# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_supports_iso_stream [as 别名]
def _set_capabilities(conn=False):
    debug("Running feature tests. This can take a while.", True)
    if not conn:
        return
    qemu_stream = FeatureTests.qemu_supports_iso_stream()
    nfs_target_probe = FeatureTests.libvirt_support_nfs_probe(conn)
    fc_host_support = FeatureTests.libvirt_support_fc_host(conn)
    kernel_vfio = FeatureTests.kernel_support_vfio()
    nm_running = FeatureTests.is_nm_running()
    mem_hotplug_support = FeatureTests.has_mem_hotplug_support(conn)

    libvirt_stream_protocols = []
    for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
        if FeatureTests.libvirt_supports_iso_stream(conn, p):
            libvirt_stream_protocols.append(p)
    debug("Feature tests completed.", True)
开发者ID:pvital,项目名称:fuzzy-spice,代码行数:18,代码来源:libvirt_print_domain_XML.py

示例5: _set_depend_capabilities

# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import libvirt_supports_iso_stream [as 别名]
    def _set_depend_capabilities(self):
        wok_log.info('\n*** Kimchi: Running dependable feature tests ***')
        conn = self.conn.get()
        if conn is None:
            wok_log.info(
                '*** Kimchi: Dependable feature tests not completed ' '***\n')
            return
        self.qemu_stream = FeatureTests.qemu_supports_iso_stream()
        wok_log.info(f'QEMU stream support .......: {self.qemu_stream}')

        self.libvirt_stream_protocols = []
        for p in ['http', 'https', 'ftp', 'ftps', 'tftp']:
            if FeatureTests.libvirt_supports_iso_stream(conn, p):
                self.libvirt_stream_protocols.append(p)
        wok_log.info(
            f'Libvirt Stream Protocols ..: {self.libvirt_stream_protocols}')
        wok_log.info('*** Kimchi: Dependable feature tests completed ***\n')
开发者ID:alinefm,项目名称:kimchi,代码行数:19,代码来源:config.py


注:本文中的wok.plugins.kimchi.model.featuretests.FeatureTests.libvirt_supports_iso_stream方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。