Merge "Deprecate OpenDaylight support"

This commit is contained in:
Zuul 2023-12-20 11:11:28 +00:00 committed by Gerrit Code Review
commit eb23c39717
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import warnings
from oslo_log import log
from urllib import parse as urlparse
@ -77,6 +79,11 @@ class OpenDayLightDriver(driver.Driver):
http://127.0.0.1:8080/controller/nb/v2/statistics/default/flow
http://127.0.0.1:8080/controller/nb/v2/statistics/egg/flow
"""
def __init__(self, conf):
warnings.warn('Support for OpenDaylight is deprecated.',
category=DeprecationWarning, stacklevel=3)
super(OpenDayLightDriver, self).__init__(conf)
def _prepare_cache(self, endpoint, params, cache):
if 'network.statistics.opendaylight' in cache:

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
Support for OpenDaylight has been deprecated and will be removed in
a future release.