Remove unused LOG
This is to remove unused LOG to keep code clean. Change-Id: I5623fb0b22464c39a28c6e8f28878e6db4504e24
This commit is contained in:
parent
8d6c6ccc14
commit
80c3a7aba0
|
@ -18,13 +18,9 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
from neutron.agent.linux import ip_lib
|
from neutron.agent.linux import ip_lib
|
||||||
from neutron.agent.linux import utils
|
from neutron.agent.linux import utils
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
# NOTE(toabctl): Don't use /sys/devices/virtual/net here because not all tap
|
# NOTE(toabctl): Don't use /sys/devices/virtual/net here because not all tap
|
||||||
# devices are listed here (i.e. when using Xen)
|
# devices are listed here (i.e. when using Xen)
|
||||||
BRIDGE_FS = "/sys/class/net/"
|
BRIDGE_FS = "/sys/class/net/"
|
||||||
|
|
|
@ -16,10 +16,6 @@
|
||||||
import neutron.db.l3_dvrscheduler_db as l3agent_dvr_sch_db
|
import neutron.db.l3_dvrscheduler_db as l3agent_dvr_sch_db
|
||||||
import neutron.db.l3_hascheduler_db as l3_ha_sch_db
|
import neutron.db.l3_hascheduler_db as l3_ha_sch_db
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class L3_DVR_HA_scheduler_db_mixin(l3agent_dvr_sch_db.L3_DVRsch_db_mixin,
|
class L3_DVR_HA_scheduler_db_mixin(l3agent_dvr_sch_db.L3_DVRsch_db_mixin,
|
||||||
l3_ha_sch_db.L3_HA_scheduler_db_mixin):
|
l3_ha_sch_db.L3_HA_scheduler_db_mixin):
|
||||||
|
|
|
@ -15,7 +15,6 @@ import abc
|
||||||
|
|
||||||
from neutron_lib.api import validators
|
from neutron_lib.api import validators
|
||||||
from neutron_lib import exceptions
|
from neutron_lib import exceptions
|
||||||
from oslo_log import log as logging
|
|
||||||
import six
|
import six
|
||||||
import webob.exc
|
import webob.exc
|
||||||
|
|
||||||
|
@ -28,8 +27,6 @@ from neutron import manager
|
||||||
from neutron.services import service_base
|
from neutron.services import service_base
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
TAG = 'tag'
|
TAG = 'tag'
|
||||||
TAGS = TAG + 's'
|
TAGS = TAG + 's'
|
||||||
MAX_TAG_LEN = 60
|
MAX_TAG_LEN = 60
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import netaddr
|
import netaddr
|
||||||
from oslo_log import log
|
|
||||||
from oslo_versionedobjects import base as obj_base
|
from oslo_versionedobjects import base as obj_base
|
||||||
from oslo_versionedobjects import fields as obj_fields
|
from oslo_versionedobjects import fields as obj_fields
|
||||||
|
|
||||||
|
@ -23,8 +22,6 @@ from neutron.db import models_v2 as models
|
||||||
from neutron.objects import base
|
from neutron.objects import base
|
||||||
from neutron.objects import common_types
|
from neutron.objects import common_types
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
@obj_base.VersionedObjectRegistry.register
|
@obj_base.VersionedObjectRegistry.register
|
||||||
class SubnetPool(base.NeutronDbObject):
|
class SubnetPool(base.NeutronDbObject):
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
from neutron_lib.api import converters
|
from neutron_lib.api import converters
|
||||||
from neutron_lib import exceptions as n_exc
|
from neutron_lib import exceptions as n_exc
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
import pecan
|
import pecan
|
||||||
from pecan import request
|
from pecan import request
|
||||||
|
@ -28,7 +27,6 @@ from neutron.common import constants
|
||||||
from neutron.pecan_wsgi.controllers import utils
|
from neutron.pecan_wsgi.controllers import utils
|
||||||
from neutron.quota import resource_registry
|
from neutron.quota import resource_registry
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
RESOURCE_NAME = "quota"
|
RESOURCE_NAME = "quota"
|
||||||
TENANT_ID_ATTR = {'tenant_id':
|
TENANT_ID_ATTR = {'tenant_id':
|
||||||
{'allow_post': False,
|
{'allow_post': False,
|
||||||
|
|
|
@ -16,11 +16,8 @@
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkSegment(object):
|
class NetworkSegment(object):
|
||||||
"""Represents a Neutron network segment"""
|
"""Represents a Neutron network segment"""
|
||||||
|
|
|
@ -22,7 +22,6 @@ from keystoneauth1 import session
|
||||||
from keystoneauth1 import token_endpoint
|
from keystoneauth1 import token_endpoint
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log
|
|
||||||
|
|
||||||
from neutron._i18n import _
|
from neutron._i18n import _
|
||||||
from neutron.extensions import dns
|
from neutron.extensions import dns
|
||||||
|
@ -33,7 +32,6 @@ IPV4_PTR_ZONE_PREFIX_MAX_SIZE = 24
|
||||||
IPV6_PTR_ZONE_PREFIX_MIN_SIZE = 4
|
IPV6_PTR_ZONE_PREFIX_MIN_SIZE = 4
|
||||||
IPV6_PTR_ZONE_PREFIX_MAX_SIZE = 124
|
IPV6_PTR_ZONE_PREFIX_MAX_SIZE = 124
|
||||||
|
|
||||||
LOG = log.getLogger(__name__)
|
|
||||||
_SESSION = None
|
_SESSION = None
|
||||||
|
|
||||||
designate_opts = [
|
designate_opts = [
|
||||||
|
|
|
@ -19,7 +19,6 @@ import functools
|
||||||
|
|
||||||
from neutron_lib import constants
|
from neutron_lib import constants
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
|
||||||
from oslo_utils import uuidutils
|
from oslo_utils import uuidutils
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from sqlalchemy import orm
|
from sqlalchemy import orm
|
||||||
|
@ -36,9 +35,6 @@ from neutron import manager
|
||||||
from neutron.services.segments import exceptions
|
from neutron.services.segments import exceptions
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class SegmentHostMapping(model_base.BASEV2):
|
class SegmentHostMapping(model_base.BASEV2):
|
||||||
|
|
||||||
segment_id = sa.Column(sa.String(36),
|
segment_id = sa.Column(sa.String(36),
|
||||||
|
|
|
@ -17,7 +17,6 @@ import functools
|
||||||
from oslo_db import api as oslo_db_api
|
from oslo_db import api as oslo_db_api
|
||||||
from oslo_db import exception as db_exc
|
from oslo_db import exception as db_exc
|
||||||
from oslo_log import helpers as log_helpers
|
from oslo_log import helpers as log_helpers
|
||||||
from oslo_log import log as logging
|
|
||||||
from sqlalchemy.orm import exc
|
from sqlalchemy.orm import exc
|
||||||
|
|
||||||
from neutron.api.v2 import attributes
|
from neutron.api.v2 import attributes
|
||||||
|
@ -28,9 +27,6 @@ from neutron.db import tag_db as tag_model
|
||||||
from neutron.extensions import tag as tag_ext
|
from neutron.extensions import tag as tag_ext
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
resource_model_map = {
|
resource_model_map = {
|
||||||
attributes.NETWORKS: models_v2.Network,
|
attributes.NETWORKS: models_v2.Network,
|
||||||
# other resources can be added
|
# other resources can be added
|
||||||
|
|
|
@ -13,14 +13,10 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
from neutron.agent.linux import ip_lib
|
from neutron.agent.linux import ip_lib
|
||||||
from neutron.agent.linux import tc_lib
|
from neutron.agent.linux import tc_lib
|
||||||
from neutron.tests.functional import base as functional_base
|
from neutron.tests.functional import base as functional_base
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
TEST_HZ_VALUE = 250
|
TEST_HZ_VALUE = 250
|
||||||
LATENCY = 50
|
LATENCY = 50
|
||||||
BW_LIMIT = 1024
|
BW_LIMIT = 1024
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
from oslo_log import log as logging
|
|
||||||
|
|
||||||
from tempest.common import waiters
|
from tempest.common import waiters
|
||||||
from tempest.lib.common import ssh
|
from tempest.lib.common import ssh
|
||||||
|
@ -23,7 +22,6 @@ from neutron.tests.tempest import config
|
||||||
from neutron.tests.tempest.scenario import constants
|
from neutron.tests.tempest.scenario import constants
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class BaseTempestTestCase(base_api.BaseNetworkTest):
|
class BaseTempestTestCase(base_api.BaseNetworkTest):
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
from oslo_log import log as logging
|
|
||||||
from tempest.common import waiters
|
from tempest.common import waiters
|
||||||
from tempest import test
|
from tempest import test
|
||||||
|
|
||||||
|
@ -21,7 +20,6 @@ from neutron.tests.tempest.scenario import base
|
||||||
from neutron.tests.tempest.scenario import constants
|
from neutron.tests.tempest.scenario import constants
|
||||||
|
|
||||||
CONF = config.CONF
|
CONF = config.CONF
|
||||||
LOG = logging.getLogger(__name__)
|
|
||||||
|
|
||||||
|
|
||||||
class NetworkBasicTest(base.BaseTempestTestCase):
|
class NetworkBasicTest(base.BaseTempestTestCase):
|
||||||
|
|
Loading…
Reference in New Issue