Merge "Support microversion 2.61 for nova flavors"

This commit is contained in:
Zuul 2019-04-12 18:26:14 +00:00 committed by Gerrit Code Review
commit 6b2b1e00cf
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,9 @@ class Flavor(resource.Resource):
min_disk="minDisk",
min_ram="minRam")
# extra_specs introduced in 2.61
_max_microversion = '2.61'
# Properties
#: Links pertaining to this flavor. This is a list of dictionaries,
#: each including keys ``href`` and ``rel``.
@ -54,6 +57,10 @@ class Flavor(resource.Resource):
is_disabled = resource.Body('OS-FLV-DISABLED:disabled', type=bool)
#: The bandwidth scaling factor this flavor receives on the network.
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):