'Set extra Specs to the mentioned flavor.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#create-extra-specs-for-a-flavor'

def set_flavor_extra_spec(self, flavor_id, **kwargs):

    post_body = json.dumps({'extra_specs': kwargs})
    (resp, body) = self.post(('flavors/%s/os-extra_specs' % flavor_id), post_body)
    body = json.loads(body)
    self.validate_response(schema_extra_specs.set_get_flavor_extra_specs, resp, body)
    return rest_client.ResponseBody(resp, body)
