summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngela Smith <aallen@brocade.com>2016-04-13 12:08:34 -0700
committerAngela Smith <aallen@brocade.com>2016-04-13 12:24:25 -0700
commit23d837998a299291ce35f18b0d3dd779d2052506 (patch)
treed39c948c020c209f46e33b63ab139e9b0dceda45
parent8bfc8971a47ecde1e0bf2d06e75728c446286fd2 (diff)
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
Notes
Notes (review): Code-Review+2: Shiv Haris <shivharis@hotmail.com> Workflow+1: Shiv Haris <shivharis@hotmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 13 Apr 2016 21:56:26 +0000 Reviewed-on: https://review.openstack.org/305454 Project: openstack/networking-brocade Branch: refs/heads/master
-rw-r--r--networking_brocade/mlx/ml2/fi_ni/driver_factory.py4
-rw-r--r--networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py1
-rw-r--r--networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py1
-rw-r--r--networking_brocade/mlx/ml2/ssh_connector.py3
-rw-r--r--networking_brocade/mlx/ml2/telnet_connector.py3
-rw-r--r--networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py1
-rw-r--r--networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py2
7 files changed, 10 insertions, 5 deletions
diff --git a/networking_brocade/mlx/ml2/fi_ni/driver_factory.py b/networking_brocade/mlx/ml2/fi_ni/driver_factory.py
index 44d0524..ad76c51 100644
--- a/networking_brocade/mlx/ml2/fi_ni/driver_factory.py
+++ b/networking_brocade/mlx/ml2/fi_ni/driver_factory.py
@@ -17,8 +17,8 @@
17""" 17"""
18Returns the driver based on the firmware version of the device 18Returns the driver based on the firmware version of the device
19""" 19"""
20from neutron.i18n import _LE 20from networking_brocade._i18n import _LE
21from neutron.i18n import _LI 21from networking_brocade._i18n import _LI
22from oslo_log import log as logging 22from oslo_log import log as logging
23from oslo_utils import importutils 23from oslo_utils import importutils
24 24
diff --git a/networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py b/networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py
index 492885a..907b590 100644
--- a/networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py
+++ b/networking_brocade/mlx/ml2/fi_ni/fi_ni_driver.py
@@ -17,6 +17,7 @@
17Common driver for both FI and NI devices 17Common driver for both FI and NI devices
18""" 18"""
19 19
20from networking_brocade._i18n import _
20from oslo_log import log as logging 21from oslo_log import log as logging
21from oslo_utils import importutils 22from oslo_utils import importutils
22 23
diff --git a/networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py b/networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py
index 403003a..0005429 100644
--- a/networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py
+++ b/networking_brocade/mlx/ml2/fi_ni/mechanism_brocade_fi_ni.py
@@ -16,6 +16,7 @@
16 16
17"""Implementation of Brocade ML2 Mechanism driver for ICX and MLX.""" 17"""Implementation of Brocade ML2 Mechanism driver for ICX and MLX."""
18 18
19from networking_brocade._i18n import _
19from networking_brocade._i18n import _LE 20from networking_brocade._i18n import _LE
20from networking_brocade._i18n import _LI 21from networking_brocade._i18n import _LI
21from neutron.plugins.ml2.common import exceptions as ml2_exc 22from neutron.plugins.ml2.common import exceptions as ml2_exc
diff --git a/networking_brocade/mlx/ml2/ssh_connector.py b/networking_brocade/mlx/ml2/ssh_connector.py
index 03d83e2..90f6551 100644
--- a/networking_brocade/mlx/ml2/ssh_connector.py
+++ b/networking_brocade/mlx/ml2/ssh_connector.py
@@ -15,8 +15,9 @@
15 15
16""" Implementation of SSH Connector""" 16""" Implementation of SSH Connector"""
17 17
18from networking_brocade._i18n import _
19from networking_brocade._i18n import _LE
18from networking_brocade.mlx.ml2 import device_connector as dev_conn 20from networking_brocade.mlx.ml2 import device_connector as dev_conn
19from neutron.i18n import _LE
20from oslo_log import log as logging 21from oslo_log import log as logging
21 22
22import paramiko 23import paramiko
diff --git a/networking_brocade/mlx/ml2/telnet_connector.py b/networking_brocade/mlx/ml2/telnet_connector.py
index 4f61bc5..299fe69 100644
--- a/networking_brocade/mlx/ml2/telnet_connector.py
+++ b/networking_brocade/mlx/ml2/telnet_connector.py
@@ -18,8 +18,9 @@
18import telnetlib 18import telnetlib
19import time 19import time
20 20
21from networking_brocade._i18n import _
22from networking_brocade._i18n import _LE
21from networking_brocade.mlx.ml2 import device_connector as dev_conn 23from networking_brocade.mlx.ml2 import device_connector as dev_conn
22from neutron.i18n import _LE
23from oslo_log import log as logging 24from oslo_log import log as logging
24 25
25LOG = logging.getLogger(__name__) 26LOG = logging.getLogger(__name__)
diff --git a/networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py b/networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py
index 13d4dc9..3969a3e 100644
--- a/networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py
+++ b/networking_brocade/mlx/services/l3_router/brocade/l3_router_plugin.py
@@ -17,6 +17,7 @@
17 17
18"""Implementation of Brocade L3RouterPlugin for NI devices.""" 18"""Implementation of Brocade L3RouterPlugin for NI devices."""
19 19
20from networking_brocade._i18n import _
20from networking_brocade._i18n import _LE 21from networking_brocade._i18n import _LE
21from networking_brocade._i18n import _LI 22from networking_brocade._i18n import _LI
22from neutron.plugins.ml2.driver_context import NetworkContext 23from neutron.plugins.ml2.driver_context import NetworkContext
diff --git a/networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py b/networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py
index fa2f290..a179ee6 100644
--- a/networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py
+++ b/networking_brocade/mlx/tests/unit/services/l3_router/brocade/test_l3_router_plugin.py
@@ -15,11 +15,11 @@
15 15
16 16
17import mock 17import mock
18from networking_brocade._i18n import _LE
18from networking_brocade.mlx.services.l3_router.brocade import ( 19from networking_brocade.mlx.services.l3_router.brocade import (
19 l3_router_plugin as brocadel3routerplugin) 20 l3_router_plugin as brocadel3routerplugin)
20from neutron import context 21from neutron import context
21from neutron.db import l3_db 22from neutron.db import l3_db
22from neutron.i18n import _LE
23from neutron.services.l3_router import l3_router_plugin as router 23from neutron.services.l3_router import l3_router_plugin as router
24from neutron.tests import base 24from neutron.tests import base
25from oslo_utils import importutils 25from oslo_utils import importutils