Deprecate the mech_driver defined resource type
This defined type manages two configurations for SRIOV but both of these are required for ancient releases of Neutron and are invalid in recent releases. 1) The ml2_conf_sriov.ini file was removed during Ocata cycle by [1], and now no additional file is required by neutron-server. 2) The supported_pci_vendor_devs was deprecated during Newton cycle[2] and was removed during Ocata cycle[1]. [1] https://review.opendev.org/c/openstack/neutron/+/413439 [2] https://review.opendev.org/c/openstack/neutron/+/391911 This deprecates the mech_driver defined resource type because now it has no actual logics. We've implemented separate classes for individual mechanism driver and this common implementation is no longer required. Change-Id: I4b3a6ecf627c6d7203d51f13d69a9400085f8df6
This commit is contained in:
parent
df0d55cf78
commit
069b2226a9
@ -21,34 +21,15 @@
|
||||
#
|
||||
# [*supported_pci_vendor_devs*]
|
||||
# (required) Supported PCI vendor devices, defined by vendor_id:product_id according
|
||||
# to the PCI ID Repository. Default enables support for Intel and Mellanox SR-IOV capable NICs
|
||||
# to the PCI ID Repository.
|
||||
#
|
||||
define neutron::plugins::ml2::mech_driver (
|
||||
$supported_pci_vendor_devs,
|
||||
$supported_pci_vendor_devs = undef,
|
||||
){
|
||||
|
||||
include neutron::deps
|
||||
|
||||
if ($name == 'sriovnicswitch') {
|
||||
neutron_plugin_sriov {
|
||||
'ml2_sriov/supported_pci_vendor_devs': value => join(any2array($supported_pci_vendor_devs), ',');
|
||||
}
|
||||
case $::osfamily {
|
||||
'RedHat': {
|
||||
file { '/etc/neutron/conf.d/neutron-server/ml2_conf_sriov.conf':
|
||||
ensure => link,
|
||||
target => '/etc/neutron/plugins/ml2/ml2_conf_sriov.ini',
|
||||
}
|
||||
}
|
||||
/^(Debian|Ubuntu)$/: {
|
||||
file_line { 'DAEMON_ARGS':
|
||||
path => '/etc/default/neutron-server',
|
||||
line => 'DAEMON_ARGS="$DAEMON_ARGS --config-file /etc/neutron/plugins/ml2/ml2_conf_sriov.ini"',
|
||||
}
|
||||
}
|
||||
default: {
|
||||
fail("Unsupported osfamily ${::osfamily}")
|
||||
}
|
||||
}
|
||||
}
|
||||
warning('The neutron::plugins::ml2::mech_driver defined resource type has been deprecated \
|
||||
and has no effect now.')
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
deprecations:
|
||||
- |
|
||||
The ``neutron::plugins::ml2::mech_driver`` defined resource type has been
|
||||
deprecated and has no effect. This defined type was quite outdated and
|
||||
its implementation was no longer compatible with the recent versions.
|
Loading…
Reference in New Issue
Block a user