Preparing for Pike support

1. Get rid of log translation (since oslo doesnt support it
any more)

2. Use service based class from neutron_lib

Change-Id: I15cf50984313bc217a4b38707c19b635e4eca039
This commit is contained in:
Sumit Naiksatam
2017-10-24 13:52:55 -07:00
parent 42ccdb6e0d
commit 599f9c70e2
62 changed files with 787 additions and 901 deletions

View File

@@ -17,7 +17,6 @@ from neutron.tests.unit.plugins.ml2.drivers import (
mechanism_logger as ml2_logger)
from oslo_log import log
from gbpservice._i18n import _LI
from gbpservice.neutron.plugins.ml2plus import driver_api
LOG = log.getLogger(__name__)
@@ -31,10 +30,10 @@ class LoggerPlusMechanismDriver(driver_api.MechanismDriver,
"""
def initialize(self):
LOG.info(_LI("initialize called"))
LOG.info("initialize called")
def ensure_tenant(self, plugin_context, tenant_id):
LOG.info(_LI("ensure_tenant called with tenant_id %s"), tenant_id)
LOG.info("ensure_tenant called with tenant_id %s", tenant_id)
def _log_subnetpool_call(self, method_name, context):
LOG.info(_("%(method)s called with subnetpool settings %(current)s "