'Gets total capacity and free capacity, in bytes, of the flexvol.'

def get_flexvol_capacity(self, flexvol_path):

    api_args = {'volume': flexvol_path, 'verbose': 'false'}
    result = self.send_request('volume-list-info', api_args)
    flexvol_info_list = result.get_child_by_name('volumes')
    flexvol_info = flexvol_info_list.get_children()[0]
    size_total = float(flexvol_info.get_child_content('size-total'))
    size_available = float(flexvol_info.get_child_content('size-available'))
    return {'size-total': size_total, 'size-available': size_available}
