'Add flavor access for the specified tenant.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#add-flavor-access-to-tenant-addtenantaccess-action'

def add_flavor_access(self, flavor_id, tenant_id):

    post_body = {'addTenantAccess': {'tenant': tenant_id}}
    post_body = json.dumps(post_body)
    (resp, body) = self.post(('flavors/%s/action' % flavor_id), post_body)
    body = json.loads(body)
    self.validate_response(schema_access.add_remove_list_flavor_access, resp, body)
    return rest_client.ResponseBody(resp, body)
