Browse Source

Fix logging imports to oslo log

Partial-Bug: #1431916
Change-Id: I885a8430e51d82b82a79bd2e85f95e892ea4eb08
Angela Smith 4 years ago
parent
commit
2fdcdb17e4

+ 1
- 1
networking_brocade/mlx/ml2/device_connector.py View File

@@ -19,7 +19,7 @@
19 19
     the argument passed
20 20
 """
21 21
 import networking_brocade.mlx.ml2.commands as Commands
22
-from neutron.openstack.common import log as logging
22
+from oslo_log import log as logging
23 23
 
24 24
 LOG = logging.getLogger(__name__)
25 25
 

+ 1
- 1
networking_brocade/mlx/ml2/fi_ni/driver_factory.py View File

@@ -19,7 +19,7 @@ Returns the driver based on the firmware version of the device
19 19
 """
20 20
 from neutron.i18n import _LE
21 21
 from neutron.i18n import _LI
22
-from neutron.openstack.common import log as logging
22
+from oslo_log import log as logging
23 23
 from oslo_utils import importutils
24 24
 
25 25
 LOG = logging.getLogger(__name__)

+ 1
- 1
networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py View File

@@ -17,7 +17,7 @@
17 17
 Common driver for both FI and NI devices
18 18
 """
19 19
 
20
-from neutron.openstack.common import log as logging
20
+from oslo_log import log as logging
21 21
 from oslo_utils import importutils
22 22
 
23 23
 CONNECTION_FACTORY = ("networking_brocade.mlx.ml2.connector_factory."

+ 1
- 1
networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py View File

@@ -18,9 +18,9 @@
18 18
 
19 19
 from neutron.i18n import _LE
20 20
 from neutron.i18n import _LI
21
-from neutron.openstack.common import log as logging
22 21
 from neutron.plugins.ml2.common import exceptions as ml2_exc
23 22
 from neutron.plugins.ml2 import driver_api
23
+from oslo_log import log as logging
24 24
 from oslo_utils import importutils
25 25
 
26 26
 MECHANISM_VERSION = 0.1

+ 2
- 1
networking_brocade/mlx/ml2/ssh_connector.py View File

@@ -19,8 +19,9 @@ import networking_brocade.mlx.ml2.commands as Commands
19 19
 from networking_brocade.mlx.ml2.device_connector import (
20 20
     DeviceConnector as DevConn)
21 21
 from neutron.i18n import _LE
22
-from neutron.openstack.common import log as logging
22
+from oslo_log import log as logging
23 23
 import paramiko
24
+
24 25
 LOG = logging.getLogger(__name__)
25 26
 WRITE = "wb"
26 27
 READ = "rb"

+ 1
- 1
networking_brocade/mlx/ml2/telnet_connector.py View File

@@ -20,7 +20,7 @@ import telnetlib
20 20
 from networking_brocade.mlx.ml2.device_connector import (
21 21
     DeviceConnector as DevConn)
22 22
 from neutron.i18n import _LE
23
-from neutron.openstack.common import log as logging
23
+from oslo_log import log as logging
24 24
 
25 25
 LOG = logging.getLogger(__name__)
26 26
 

+ 1
- 2
networking_brocade/mlx/services/l3_router/brocade/l3_router_fi_ni_plugin.py View File

@@ -17,12 +17,11 @@
17 17
 
18 18
 """Implementation of Brocade L3RouterPlugin for NI devices."""
19 19
 
20
-
21 20
 from neutron.i18n import _LE
22 21
 from neutron.i18n import _LI
23
-from neutron.openstack.common import log as logging
24 22
 from neutron.plugins.ml2.drivers.brocade.db import models as brocade_db
25 23
 from neutron.services.l3_router import l3_router_plugin as router
24
+from oslo_log import log as logging
26 25
 from oslo_utils import importutils
27 26
 
28 27
 LOG = logging.getLogger(__name__)

+ 1
- 1
networking_brocade/mlx/tests/unit/ml2/drivers/brocade/test_brocade_fi_ni_mechanism_driver.py View File

@@ -17,8 +17,8 @@ import mock
17 17
 from networking_brocade.mlx.ml2.fi_ni import (
18 18
     mechanism_brocade_fi_ni as brocadefinimechanism)
19 19
 from neutron import context
20
-from neutron.openstack.common import log as logging
21 20
 from neutron.tests import base
21
+from oslo_log import log as logging
22 22
 from oslo_utils import importutils
23 23
 
24 24
 LOG = logging.getLogger(__name__)

Loading…
Cancel
Save