def get_blockdeviceapi():
    config = get_blockdevice_config()
    backend, api_args = backend_and_api_args_from_configuration(config)
    api = get_api(
        backend=backend,
        api_args=api_args,
        reactor=reactor,
        cluster_id=make_cluster_id(TestTypes.FUNCTIONAL),
    )
    return api
Validate and load cloud provider's yml config file.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/testtools/_blockdevice.py/get_blockdeviceapi