neutron/neutron/db
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
..
allowed_address_pairs debtcollector for globals 2016-08-30 10:18:19 -04:00
availability_zone Trival: Remove unused logging import 2015-12-26 12:49:56 +08:00
extra_dhcp_opt Add missing revision number altercations 2016-09-25 02:18:01 -07:00
metering Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
migration Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
models Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
network_dhcp_agent_binding Relocate Agent DB model 2016-10-07 14:18:19 -04:00
port_security Add missing revision number altercations 2016-09-25 02:18:01 -07:00
qos Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
quota Refactor/prepare db common utils for neutron-lib 2016-10-28 10:53:11 -04:00
__init__.py Update License Headers to replace Nicira with VMware 2014-02-27 08:11:15 +00:00
_utils.py Refactor/prepare db common utils for neutron-lib 2016-10-28 10:53:11 -04:00
address_scope_db.py Integrate Address Scope OVO into DB 2016-11-28 11:09:52 +00:00
agents_db.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
agentschedulers_db.py Move AgentStatusCheckWorker to PeriodicWorker 2016-11-17 15:31:19 -08:00
allowedaddresspairs_db.py objects: add delete_objects public method 2016-12-13 17:35:47 +00:00
api.py Merge "Stop using osprofiler options as if they are part of public API" 2016-11-22 06:29:29 +00:00
common_db_mixin.py Remove unused LOG 2016-11-21 11:22:47 +08:00
db_base_plugin_common.py Use subqueries for rbac_entries and subnets<->network 2016-12-19 18:33:43 +00:00
db_base_plugin_v2.py Convert filters to empty dict if None in DB's get_subnetpools(). 2016-12-06 14:28:38 +01:00
dns_db.py Add OVO for dns Objects 2016-10-27 17:39:45 +00:00
dvr_mac_db.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
external_net_db.py Merge "Fix InvalidInput exception output" 2016-11-24 10:49:19 +00:00
extradhcpopt_db.py Integrate the Extra Dhcp Opt VersionedObject in Neutron 2016-04-07 16:44:33 +01:00
extraroute_db.py Restore extraroute dict after OVO change 2016-12-14 23:50:19 +09:00
flavors_db.py Usage of new enginefacade for flavor db 2016-11-01 16:54:50 +03:00
ipam_backend_mixin.py Merge "Fix DHCP Port Creation on Service Subnets" 2016-12-19 11:35:14 +00:00
ipam_pluggable_backend.py Fix IPv6 PD with pluggable IPAM 2016-10-10 15:54:21 +01:00
l3_agentschedulers_db.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
l3_attrs_db.py Relocate Router Extra Attributes DB Model 2016-09-30 15:59:38 +00:00
l3_db.py Merge "Get rid of DVR override of remove_router_interface" 2016-12-12 13:40:54 +00:00
l3_dvr_db.py Get rid of DVR override of remove_router_interface 2016-12-09 23:36:21 +00:00
l3_dvr_ha_scheduler_db.py Remove unused LOG 2016-07-05 15:22:13 +08:00
l3_dvrscheduler_db.py Refactor ml2_db to pass context 2016-12-14 14:23:50 +04:00
l3_gwmode_db.py Relocate L3 DB Models 2016-09-27 16:58:55 +00:00
l3_hamode_db.py Migrate device_owner for router's interface 2016-11-29 17:54:27 +02:00
l3_hascheduler_db.py Adopt neutron-lib plugin directory 2016-11-23 04:45:33 -07:00
models_v2.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
netmtu_db.py Calculate MTU on every network fetch instead of on create 2016-07-20 13:26:50 +02:00
network_ip_availability_db.py IP Availability: remove unused imports 2016-03-01 07:06:10 -08:00
portbindings_base.py Remove @author(s) from copyright statements 2014-09-15 21:40:09 +09:00
portbindings_db.py Relocate PortBindingPort DB Model 2016-09-22 19:35:03 +00:00
portsecurity_db.py Use converters and validators from neutron-lib 2016-04-24 19:13:10 -04:00
portsecurity_db_common.py Refactor/prepare db common utils for neutron-lib 2016-10-28 10:53:11 -04:00
provisioning_blocks.py Merge "Relocate Provisioning Block DB Model" 2016-09-30 09:05:10 +00:00
quota_db.py Create packages for quota modules 2015-07-28 11:55:01 -07:00
rbac_db_mixin.py Refactor/prepare db common utils for neutron-lib 2016-10-28 10:53:11 -04:00
rbac_db_models.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
securitygroups_db.py Merge "Add sg_id in the AFTER_DELETE event of sg_rule delete" 2016-11-17 11:19:09 +00:00
securitygroups_rpc_base.py neutron-lib: start using neutron-lib helpers 2016-10-10 01:30:26 -07:00
segments_db.py Improved readibility and fixed indentation 2016-10-10 11:03:53 +02:00
servicetype_db.py objects: add delete_objects public method 2016-12-13 17:35:47 +00:00
sqlalchemytypes.py Truncate microseconds before DB insertion 2016-09-01 13:25:24 +00:00
standard_attr.py Use DB field sizes instead of _MAX_LEN constants 2016-12-23 13:48:57 +00:00
standardattrdescription_db.py Add common way to extend standard attribute models 2016-09-15 01:42:24 +00:00
subnet_service_type_db_models.py debtcollector for globals 2016-08-30 10:18:19 -04:00
tag_db.py Relocate Tag DB model 2016-10-03 10:20:05 -05:00
vlantransparent_db.py Moving VLAN Transparency support from core to extension 2015-04-08 08:35:13 -07:00