Log a deprecated warning for ODL v1 driver
From Ocata release the new ODL BGPVPN Driver v2 is available and v1 diver is being deprecated. Add a warning log message to inform users of v1 driver so they can switch to the new v2 driver. Change-Id: Id58f0df0b0825ad78dff586a1bea07a78a19ec05 Partial-Bug: #1632117 Depends-On: I08485db8f10f15591d70474a4b8546990d4de166
This commit is contained in:
1 changed files with 6 additions and 1 deletions
@@ -22,6 +22,8 @@ from oslo_utils import excutils
from networking_odl.common import client as odl_client
from networking_bgpvpn._i18n import _LW
from networking_bgpvpn.neutron.extensions import bgpvpn as bgpvpn_ext
from networking_bgpvpn.neutron.services.service_drivers import driver_api
@@ -41,7 +43,10 @@ class OpenDaylightBgpvpnDriver(driver_api.BGPVPNDriver):
"""
def __init__(self, service_plugin):
LOG.debug("Initializing OpenDaylight BGPVPN driver")
LOG.warning(_LW("This OpenDaylight BGPVPN driver has been deprecated"
"and will be removed. Switch to new v2 Driver: "
"BGPVPN:OpenDaylight:networking_odl.bgpvpn.odl_v2."
"OpenDaylightBgpvpnDriver:default"))
super(OpenDaylightBgpvpnDriver, self).__init__(service_plugin)
self.service_plugin = service_plugin
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.