Deprecate old interface to define mdev types
The mdev_types_device_addresses_mapping parameter is superseded by the mdev_types parameter. Change-Id: I714109bb2bc567a3b748c8528bfa8a40987ef9bb
This commit is contained in:
parent
82f108c160
commit
0be9d0a3c7
|
@ -8,6 +8,8 @@
|
|||
# (Optional) A hash to define the nova::compute::mdev_type resources.
|
||||
# Defaults to {}
|
||||
#
|
||||
# DEPRECATED PARAMETERS
|
||||
#
|
||||
# [*mdev_types_device_addresses_mapping*]
|
||||
# (Optional) Map of mdev type(s) the instances can get as key and list of
|
||||
# corresponding device addresses as value.
|
||||
|
@ -15,12 +17,14 @@
|
|||
#
|
||||
class nova::compute::mdev(
|
||||
$mdev_types = {},
|
||||
# DEPRECATED PARAMETERS
|
||||
$mdev_types_device_addresses_mapping = undef,
|
||||
) {
|
||||
include nova::deps
|
||||
|
||||
validate_legacy(Hash, 'validate_hash', $mdev_types)
|
||||
if $mdev_types_device_addresses_mapping != undef {
|
||||
warning('mdev_types_device_addresses_mapping is deprecated. Use mdev_types.')
|
||||
validate_legacy(Hash, 'validate_hash', $mdev_types_device_addresses_mapping)
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
deprecations:
|
||||
- |
|
||||
The ``nova::compute::mdev::mdev_types_device_addresses_mapping`` parameter
|
||||
has been deprecate in favor of the new ``mdev_types`` parameter.
|
Loading…
Reference in New Issue