kuryr-kubernetes/releasenotes/notes/reusable-pool-drivers-00e7fdc1f4738441.yaml
Yash Gupta b0dfd35d76 Use same pool_driver for different pod_vif_drivers
New config option vif_pool_mapping is added and pools_vif_drivers is
deprecated. The newer vif_pool_mapping is simply inverted mapping of
pools_vif_drivers.
Also, with the scoping ability added in cb2d308f84, independent
drv_pool instances can be acquired from base driver manager.

Earlier as a single instance of drv_pool was used by all
pod_drivers. This meant only the pod_driver which was
passed to drv_pool.set_vif_driver finally was used (for a given
drv_pool).

Please see release notes for further details.

Related-Bug: 1747406
Change-Id: Id0137f6b1a78e7aa3e3d3de639a5e989f4fd408c
Signed-off-by: Yash Gupta <y.gupta@samsung.com>
2019-02-04 11:44:02 +03:00

31 lines
1.2 KiB
YAML

---
features:
- |
It is now possible to use same pool_driver for different pod_vif_drivers
when using MultiVIFPool driver.
A new config option `vif_pool.vif_pool_mapping` is introduced which is a
dict/mapping from pod_vif_driver => pool_driver. So different
pod_vif_drivers can be configured to use the same pool_driver.
.. code-block:: ini
[vif_pool]
vif_pool_mapping=nested-vlan:nested,neutron-vif:neutron
Earlier each instance of a pool_driver was mapped to a single
pod_driver, thus requiring a unique pool_driver for each pod_vif_driver.
upgrade:
- |
If ``vif_pool.pools_vif_drivers`` config option is used, new config option
`vif_pool.vif_pool_mapping` should be populated with inverted mapping
from the present value of ``vif_pool.pools_vif_drivers``.
deprecations:
- |
Configuration option ``vif_pool.pools_vif_drivers`` has been deprecated in
favour of ``vif_pool.vif_pool_mapping`` to allow reuse of pool_drivers for
different pod_vif_drivers.
If ``vif_pool_mapping`` is not configured, ``pools_vif_drivers`` will still
continue to work for now, but ``pools_vif_drivers`` will be completely
removed in a future release.