neutron/neutron/db/models
Henry Gessau 1c5bf09a03 Use DB field sizes instead of _MAX_LEN constants
Remove The following _MAX_LEN constants from
neutron/api/v2/attributes.py and use the corresponding DB field size
constants from neutron_lib.db.constants instead.

 NAME_MAX_LEN              -->  NAME_FIELD_SIZE
 TENANT_ID_MAX_LEN         -->  PROJECT_ID_FIELD_SIZE
 DESCRIPTION_MAX_LEN       -->  DESCRIPTION_FIELD_SIZE
 LONG_DESCRIPTION_MAX_LEN  -->  LONG_DESCRIPTION_FIELD_SIZE
 DEVICE_ID_MAX_LEN         -->  DEVICE_ID_FIELD_SIZE
 DEVICE_OWNER_MAX_LEN      -->  DEVICE_NAME_FIELD_SIZE

In alembic migration scripts, the raw numerical value is used.

For more information, see:
http://lists.openstack.org/pipermail/openstack-dev/2016-October/105789.html

NeutronLibImpact

Change-Id: I734890372584fe27e5d6ec38c0cad2de882ff11c
2016-12-23 13:48:57 +00:00
..
plugins Relocate Geneve DB models 2016-09-29 15:48:31 -05:00
README Update README to reflect ML2 Exception in Dir Tree 2016-08-22 15:20:35 +00:00
__init__.py Add devref for Relocating DB models 2016-08-09 15:55:18 +02:00
address_scope.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
agent.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
allowed_address_pair.py Add missing revision number altercations 2016-09-25 02:18:01 -07:00
dns.py Relocate DNS db models 2016-10-07 21:35:35 +00:00
dvr.py Relocate dvr model 2016-10-04 08:41:33 +00:00
external_net.py Add missing revises_on_change attribute 2016-11-28 10:04:03 +09:00
flavor.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
l3.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
l3_attrs.py Add missing revises_on_change attribute 2016-11-28 10:04:03 +09:00
l3agent.py Remove deprecation warnings for agents_db 2016-10-13 15:33:22 +00:00
l3ha.py Remove deprecation warnings for agents_db 2016-10-13 15:33:22 +00:00
metering.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
portbinding.py Add missing revises_on_change attribute 2016-11-28 10:04:03 +09:00
provisioning_block.py Relocate Provisioning Block DB Model 2016-09-27 04:30:03 +00:00
securitygroup.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
segment.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
servicetype.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
subnet_service_type.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
tag.py Bump revision of resource on tag add/remove 2016-12-19 11:20:54 -08:00

README

This directory is designed to contain all SQLAlchemy models shipped with core
Neutron.

* The expected directory structure is flat, except for the ML2 plugins. All ML2
  plugin models should fall under the plugins subdirectory (i.e. plugins/ml2/gre_allocation).
* Module names should use singular forms for nouns (port.py, not ports.py).