003_basic_networking.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:ovirt-system-tests 作者: oVirt 项目源码 文件源码
def detach_vm_network_from_host_0(api):
    engine = api.system_service()

    host = test_utils.hosts_in_cluster_v4(engine, CLUSTER_NAME)[0]
    host_service = engine.hosts_service().host_service(id=host.id)

    network_utils_v4.set_network_required_in_cluster(
        engine, VM_NETWORK, CLUSTER_NAME, False)
    network_utils_v4.detach_network_from_host(engine, host_service, VM_NETWORK)

    nt.assert_false(_host_is_attached_to_network(engine, host_service,
                                                 VM_NETWORK))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号