functest.opnfv_tests.openstack.snaps.snaps_utils module

Some common utils wrapping snaps functions

functest.opnfv_tests.openstack.snaps.snaps_utils.get_active_compute_cnt(os_creds)

Returns the number of active compute servers :param: os_creds: an instance of snaps OSCreds object :return: the number of active compute servers

functest.opnfv_tests.openstack.snaps.snaps_utils.get_credentials(proxy_settings_str=None, ssh_proxy_cmd=None, overrides=None)

Returns snaps OSCreds object instance :param: proxy_settings_str: proxy settings string <host>:<port> :param: ssh_proxy_cmd: the SSH proxy command for the environment :param overrides: dict() values to override in credentials :return: an instance of snaps OSCreds object

functest.opnfv_tests.openstack.snaps.snaps_utils.get_ext_net_name(os_creds)

Returns the configured external network name or the first retrieved external network name :param: os_creds: an instance of snaps OSCreds object :return: