diff options
author | Henry Gessau <gessau@gmail.com> | 2016-03-20 18:31:45 -0400 |
---|---|---|
committer | Henry Gessau <gessau@gmail.com> | 2016-04-23 21:23:56 -0400 |
commit | 4148a347b365ec2ff9b8f5255b100208e23efbc8 (patch) | |
tree | cfbe66064ad943675c42082253a65ebff80895aa /neutron/db/db_base_plugin_common.py | |
parent | cdb47fe53a4bc6e12ca4feff2e1edc8e4d84d4ee (diff) | |
download | neutron-4148a347b365ec2ff9b8f5255b100208e23efbc8.tar.gz |
Use constants from neutron-lib
With this we enable the deprecation warnings by default.
Related-Blueprint: neutron-lib
Change-Id: I5b9e53751dd164010e5bbeb15f534ac0fe2a5105
Diffstat (limited to 'neutron/db/db_base_plugin_common.py')
-rw-r--r-- | neutron/db/db_base_plugin_common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/neutron/db/db_base_plugin_common.py b/neutron/db/db_base_plugin_common.py index 8f57423346..79c23b80e6 100644 --- a/neutron/db/db_base_plugin_common.py +++ b/neutron/db/db_base_plugin_common.py @@ -15,13 +15,14 @@ import functools +from neutron_lib import constants from neutron_lib import exceptions as n_exc from oslo_config import cfg from oslo_log import log as logging from sqlalchemy.orm import exc from neutron.api.v2 import attributes -from neutron.common import constants +from neutron.common import constants as n_const from neutron.common import exceptions from neutron.common import utils from neutron.db import common_db_mixin @@ -274,7 +275,7 @@ class DbBasePluginCommon(common_db_mixin.CommonDbMixin): 'name': network['name'], 'tenant_id': network['tenant_id'], 'admin_state_up': network['admin_state_up'], - 'mtu': network.get('mtu', constants.DEFAULT_NETWORK_MTU), + 'mtu': network.get('mtu', n_const.DEFAULT_NETWORK_MTU), 'status': network['status'], 'subnets': [subnet['id'] for subnet in network['subnets']]} |