'Set extra specs on a flavor.
:param metadata: A dict of key/value pairs to be set'

def set_keys(self, metadata):

    utils.validate_flavor_metadata_keys(metadata.keys())
    body = {'extra_specs': metadata}
    return self.manager._create(('/flavors/%s/os-extra_specs' % base.getid(self)), body, 'extra_specs', return_raw=True)
