Browse Source

Fix PEP8 errors in MLX plugin

PEP8 errors N340 and N341 were introduced into Neutron
checks and are failing pep8 tests for MLX plugin.

Change-Id: Icf5cf9b45ef6c793008dc6151fe049fc7dea7019
Angela Smith 3 years ago
parent
commit
23d837998a

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

@@ -17,8 +17,8 @@
17 17
 """
18 18
 Returns the driver based on the firmware version of the device
19 19
 """
20
-from neutron.i18n import _LE
21
-from neutron.i18n import _LI
20
+from networking_brocade._i18n import _LE
21
+from networking_brocade._i18n import _LI
22 22
 from oslo_log import log as logging
23 23
 from oslo_utils import importutils
24 24
 

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

@@ -17,6 +17,7 @@
17 17
 Common driver for both FI and NI devices
18 18
 """
19 19
 
20
+from networking_brocade._i18n import _
20 21
 from oslo_log import log as logging
21 22
 from oslo_utils import importutils
22 23
 

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

@@ -16,6 +16,7 @@
16 16
 
17 17
 """Implementation of Brocade ML2 Mechanism driver for ICX and MLX."""
18 18
 
19
+from networking_brocade._i18n import _
19 20
 from networking_brocade._i18n import _LE
20 21
 from networking_brocade._i18n import _LI
21 22
 from neutron.plugins.ml2.common import exceptions as ml2_exc

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

@@ -15,8 +15,9 @@
15 15
 
16 16
 """ Implementation of SSH Connector"""
17 17
 
18
+from networking_brocade._i18n import _
19
+from networking_brocade._i18n import _LE
18 20
 from networking_brocade.mlx.ml2 import device_connector as dev_conn
19
-from neutron.i18n import _LE
20 21
 from oslo_log import log as logging
21 22
 
22 23
 import paramiko

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

@@ -18,8 +18,9 @@
18 18
 import telnetlib
19 19
 import time
20 20
 
21
+from networking_brocade._i18n import _
22
+from networking_brocade._i18n import _LE
21 23
 from networking_brocade.mlx.ml2 import device_connector as dev_conn
22
-from neutron.i18n import _LE
23 24
 from oslo_log import log as logging
24 25
 
25 26
 LOG = logging.getLogger(__name__)

+ 1
- 0
networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py View File

@@ -17,6 +17,7 @@
17 17
 
18 18
 """Implementation of Brocade L3RouterPlugin for NI devices."""
19 19
 
20
+from networking_brocade._i18n import _
20 21
 from networking_brocade._i18n import _LE
21 22
 from networking_brocade._i18n import _LI
22 23
 from neutron.plugins.ml2.driver_context import NetworkContext

+ 1
- 1
networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py View File

@@ -15,11 +15,11 @@
15 15
 
16 16
 
17 17
 import mock
18
+from networking_brocade._i18n import _LE
18 19
 from networking_brocade.mlx.services.l3_router.brocade import (
19 20
     l3_router_plugin as brocadel3routerplugin)
20 21
 from neutron import context
21 22
 from neutron.db import l3_db
22
-from neutron.i18n import _LE
23 23
 from neutron.services.l3_router import l3_router_plugin as router
24 24
 from neutron.tests import base
25 25
 from oslo_utils import importutils

Loading…
Cancel
Save