Previous topic

The nova.api.openstack.compute.contrib.extended_status Module

Next topic

The nova.api.openstack.compute.contrib.flavorextraspecs Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.api.openstack.compute.contrib.flavorextradata Module

The Flavor extra data extension

OpenStack API version 1.1 lists “name”, “ram”, “disk”, “vcpus” as flavor attributes. This extension adds to that list:

  • OS-FLV-EXT-DATA:ephemeral
class Flavorextradata(ext_mgr)

Bases: nova.api.openstack.extensions.ExtensionDescriptor

Provide additional data for flavors

alias = 'OS-FLV-EXT-DATA'
get_controller_extensions()
name = 'FlavorExtraData'
namespace = 'http://docs.openstack.org/compute/ext/flavor_extra_data/api/v1.1'
updated = '2011-09-14T00:00:00+00:00'
class FlavorextradataController(view_builder=None)

Bases: nova.api.openstack.wsgi.Controller

create(req, body, resp_obj)
detail(req, resp_obj)
show(req, resp_obj, id)
wsgi_actions = {}
wsgi_extensions = [('show', None), ('create', 'create'), ('detail', None)]
class FlavorextradataTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
class FlavorextradatumTemplate

Bases: nova.api.openstack.xmlutil.TemplateBuilder

construct()
make_flavor(elem)