Files
neutron/releasenotes/notes/Deprecate-plug_new-method-without-link_up-parameter-27f8310eb1e1910a.yaml
Slawek Kaplonski 3c0624b8f7 Allow usage of legacy 3rd-party interface drivers
In the patch [1] we changed definition of the abstract method
"plug" in the LinuxInterfaceDriver class.
That broke e.g. 3rd-party drivers which still don't accept this
new parameter called "link_up" in the plug_new method.

So this patch fixes this to make such legacy drivers to be still working
with the new base interface driver class.

This commit also marks such definition of the plug_new method as
deprecated. Possibility of using it without accepting link_up parameter
will be removed in the "W" release of the OpenStack.

[1] https://review.opendev.org/#/c/707406/

Conflicts:
      neutron/tests/unit/agent/linux/test_interface.py

Change-Id: Icd555987a1a57ca0b31fa7e4e830583d6c69c861
Closes-Bug: #1879307
(cherry picked from commit 30d573d5ab)
(cherry picked from commit 9c242a0329)
(cherry picked from commit bc8c38bda8)
(cherry picked from commit bd8240dc9d)
2020-05-21 08:43:44 +00:00

11 lines
470 B
YAML

---
deprecations:
- |
Abstract method ``plug_new`` from the
neutron.agent.linux.interface.LinuxInterfaceDriver class now accepts
an optional parameter ``link_up``.
Usage of this method, which takes from 5 to 9 positional arguments, without
``link_up`` is now deprecated and will not be possible starting in the W
release. Third-party drivers which inherit from this base class should update
the implementation of their ``plug_new`` method.