Bases: nova.api.openstack.wsgi.MetadataXMLDeserializer
Bases: nova.api.openstack.xmlutil.TemplateBuilder
Bases: nova.api.openstack.wsgi.MetadataXMLDeserializer
Bases: nova.api.openstack.xmlutil.TemplateBuilder
Bases: nova.api.openstack.xmlutil.TemplateElement
Bases: nova.api.openstack.wsgi.XMLDeserializer
Marshal the metadata attribute of a parsed request.
Bases: object
Model API responses as dictionaries.
Return the id or uuid portion of a url.
Given: ‘http://www.foo.com/bar/123?q=4‘ Returns: ‘123’
Given: ‘http://www.foo.com/bar/abc123?q=4‘ Returns: ‘abc123’
get limited parameter from request.
Returns a prepared nw_info list for passing into the view builders
We end up with a data structure like:
{'public': {'ips': [{'addr': '10.0.0.1', 'version': 4},
{'addr': '2001::1', 'version': 6}],
'floating_ips': [{'addr': '172.16.0.1', 'version': 4},
{'addr': '172.16.2.1', 'version': 4}]},
...}
Return marker, limit tuple from request.
Parameters: | request – wsgi.Request possibly containing ‘marker’ and ‘limit’ GET variables. ‘marker’ is the id of the last element the client has seen, and ‘limit’ is the maximum number of items to return. If ‘limit’ is not specified, 0, or > max_limit, we default to max_limit. Negative values for either marker or limit will cause exc.HTTPBadRequest() exceptions to be raised. |
---|
Return a slice of items according to requested offset and limit.
Parameters: |
|
---|
Return a slice of items according to the requested marker and limit.
Return a webob.exc.HTTPConflict instance containing a message appropriate to return via the API based on the original InstanceInvalidState exception.
Removes the first api version from the href.
Given: ‘http://www.nova.com/v1.1/123‘ Returns: ‘http://www.nova.com/123‘
Given: ‘http://www.nova.com/v1.1‘ Returns: ‘http://www.nova.com‘
Given vm_state and task_state, return a status string.
Map the server status string to a vm state.