logging-not-lazy,
no-init,
non-parent-init-called,
- pointless-string-statement,
protected-access,
redefined-builtin,
redefined-outer-name,
import pep8
-"""
-Guidelines for writing new hacking checks
-
- - Use only for Neutron specific tests. OpenStack general tests
- should be submitted to the common 'hacking' module.
- - Pick numbers in the range N3xx. Find the current test with
- the highest allocated number and then pick the next value.
- - Keep the test method code in the source file ordered based
- on the N3xx value.
- - List the new rule in the top level HACKING.rst file
- - Add test cases for each new rule to
- neutron/tests/unit/test_hacking.py
-
-"""
+# Guidelines for writing new hacking checks
+#
+# - Use only for Neutron specific tests. OpenStack general tests
+# should be submitted to the common 'hacking' module.
+# - Pick numbers in the range N3xx. Find the current test with
+# the highest allocated number and then pick the next value.
+# - Keep the test method code in the source file ordered based
+# on the N3xx value.
+# - List the new rule in the top level HACKING.rst file
+# - Add test cases for each new rule to
+# neutron/tests/unit/test_hacking.py
log_translation = re.compile(
r"(.)*LOG\.(audit|error|info|warn|warning|critical|exception)\(\s*('|\")")
"""
base.FAULT_MAP.update(self.CISCO_FAULT_MAP)
- """
- Extension API implementation
- """
+ #
+ # Extension API implementation
+ #
def get_all_qoss(self, tenant_id):
"""Get all QoS levels."""
LOG.debug("get_all_qoss() called")
LOG.debug("MidonetPluginV2.get_port called: id=%(id)s "
"fields=%(fields)r", {'id': id, 'fields': fields})
port = super(MidonetPluginV2, self).get_port(context, id, fields)
- "Check if the port exists in MidoNet DB"""
+ # Check if the port exists in MidoNet DB
try:
self.client.get_port(id)
except midonet_lib.MidonetResourceNotFound as exc:
from oslo.config import cfg
-""" Arista ML2 Mechanism driver specific configuration knobs.
-Following are user configurable options for Arista ML2 Mechanism
-driver. The eapi_username, eapi_password, and eapi_host are
-required options. Region Name must be the same that is used by
-Keystone service. This option is available to support multiple
-OpenStack/Neutron controllers.
-"""
+# Arista ML2 Mechanism driver specific configuration knobs.
+#
+# Following are user configurable options for Arista ML2 Mechanism
+# driver. The eapi_username, eapi_password, and eapi_host are
+# required options. Region Name must be the same that is used by
+# Keystone service. This option is available to support multiple
+# OpenStack/Neutron controllers.
ARISTA_DRIVER_OPTS = [
cfg.StrOpt('eapi_username',
from neutronclient.v2_0 import client
from oslo.config import cfg
-"""Freescale CRD Server Configuration used by ML2 Mechanism Driver.
-
-The following configuration is used by Freescale Drivers/Plugin
-like, FWaaS Plugin, VPNaaS Plugin etc.. which connect to Cloud Resource
-Discovery Service (CRD).
-"""
+# Freescale CRD Server Configuration used by ML2 Mechanism Driver.
+#
+# The following configuration is used by Freescale Drivers/Plugin
+# like, FWaaS Plugin, VPNaaS Plugin etc.. which connect to Cloud Resource
+# Discovery Service (CRD).
# CRD service options required for FSL SDN OS Mech Driver
ml2_fslsdn_opts = [
from neutron.db import models_v2
-"""New mapping tables."""
+# New mapping tables.
class OFCId(object):
except Exception as err_message:
raise plum_excep.PLUMgridException(err_msg=err_message)
- """
- Internal PLUMgrid Functions
- """
+ #
+ # Internal PLUMgrid Functions
+ #
def _get_plugin_version(self):
return plugin_ver.VERSION