'Returns the names of the flexvols on the controller.'

def list_flexvols(self):

    api_args = {'query': {'volume-attributes': {'volume-id-attributes': {'type': 'rw', 'style': 'flex'}, 'volume-state-attributes': {'is-vserver-root': 'false', 'is-inconsistent': 'false', 'is-invalid': 'false', 'state': 'online'}}}, 'desired-attributes': {'volume-attributes': {'volume-id-attributes': {'name': None}}}}
    result = self.send_iter_request('volume-get-iter', api_args)
    if (not self._has_records(result)):
        return []
    volumes = []
    attributes_list = (result.get_child_by_name('attributes-list') or netapp_api.NaElement('none'))
    for volume_attributes in attributes_list.get_children():
        volume_id_attributes = (volume_attributes.get_child_by_name('volume-id-attributes') or netapp_api.NaElement('none'))
        volumes.append(volume_id_attributes.get_child_content('name'))
    return volumes
