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.
Reviewed: https:/ /review. opendev. org/729733 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=3c0624b8f7b 2c2399426f4d721 afab66ec648ef8
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 3c0624b8f7b2c23 99426f4d721afab 66ec648ef8
Author: Slawek Kaplonski <email address hidden>
Date: Tue May 19 10:04:18 2020 +0200
Allow usage of legacy 3rd-party interface drivers
In the patch [1] we changed definition of the abstract method river class.
"plug" in the LinuxInterfaceD
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: Icd555987a1a57c a0b31fa7e4e8305 83d6c69c861 251d08dc5384f5c 0ff372eff8) d18705198f637cd 717a414a26) d989b221dbd9fed b9e3a3d9a2) ad9656a58c8cbf7 ce7ae84cee)
Closes-Bug: #1879307
(cherry picked from commit 30d573d5abeb4a5
(cherry picked from commit 9c242a032915141
(cherry picked from commit bc8c38bda821b0f
(cherry picked from commit bd8240dc9dc56a6