Merge "Support microversion 2.61 for nova flavors"
This commit is contained in:
commit
6b2b1e00cf
|
@ -29,6 +29,9 @@ class Flavor(resource.Resource):
|
||||||
min_disk="minDisk",
|
min_disk="minDisk",
|
||||||
min_ram="minRam")
|
min_ram="minRam")
|
||||||
|
|
||||||
|
# extra_specs introduced in 2.61
|
||||||
|
_max_microversion = '2.61'
|
||||||
|
|
||||||
# Properties
|
# Properties
|
||||||
#: Links pertaining to this flavor. This is a list of dictionaries,
|
#: Links pertaining to this flavor. This is a list of dictionaries,
|
||||||
#: each including keys ``href`` and ``rel``.
|
#: each including keys ``href`` and ``rel``.
|
||||||
|
@ -54,6 +57,10 @@ class Flavor(resource.Resource):
|
||||||
is_disabled = resource.Body('OS-FLV-DISABLED:disabled', type=bool)
|
is_disabled = resource.Body('OS-FLV-DISABLED:disabled', type=bool)
|
||||||
#: The bandwidth scaling factor this flavor receives on the network.
|
#: The bandwidth scaling factor this flavor receives on the network.
|
||||||
rxtx_factor = resource.Body('rxtx_factor', type=float)
|
rxtx_factor = resource.Body('rxtx_factor', type=float)
|
||||||
|
# TODO(mordred) extra_specs can historically also come from
|
||||||
|
# OS-FLV-WITH-EXT-SPECS:extra_specs. Do we care?
|
||||||
|
#: A dictionary of the flavor's extra-specs key-and-value pairs.
|
||||||
|
extra_specs = resource.Body('extra_specs', type=dict)
|
||||||
|
|
||||||
|
|
||||||
class FlavorDetail(Flavor):
|
class FlavorDetail(Flavor):
|
||||||
|
|
Loading…
Reference in New Issue