'Returns a set of flexvol names.'

def _get_flexvol_names_from_hosts(self, hosts):

    flexvols = set()
    ssc = self.ssc_library.get_ssc()
    for host in hosts:
        pool_name = volume_utils.extract_host(host, level='pool')
        for (flexvol_name, ssc_volume_data) in ssc.items():
            if (ssc_volume_data['pool_name'] == pool_name):
                flexvols.add(flexvol_name)
    return flexvols
