neutron/neutron/db/models
Rodolfo Alonso Hernandez cc3dc7c850 Add CONTEXT_READER decorator to "get_ha_router_port_bindings"
This method, when called from outside an active session, must create
a new one, given the context.

This patch also changes the L3HARouterAgentPortBinding.port and
L3HARouterAgentPortBinding.agent relationships to be "joined". That
will retrieve the port and the agent DB registers in the main query
and the returned object won't need to make subqueries to retrieve
them. The SQL query looks like
http://paste.openstack.org/show/806275/.

Change-Id: I7870b869a755054ef1989f86ebdd3470ec5cf435
Closes-Bug: #1930397
2021-06-09 17:01:33 +00:00
..
plugins Limit ml2_vlan_allocations.vlan_id value in DB backend 2020-06-05 10:04:52 +00: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_group.py Allow sharing of address groups via RBAC mechanism 2021-03-01 18:28:31 -06:00
address_scope.py Allow sharing of address scopes via RBAC mechanism 2020-03-19 16:51:39 +02:00
agent.py New agent attribute: resources_synced 2019-02-21 13:45:15 +01:00
allowed_address_pair.py Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
conntrack_helper.py Conntrack Helper - OVO and db script 2019-05-20 18:00:18 +02:00
data_plane_status.py Port data plane status extension implementation 2017-04-11 19:56:13 +00:00
dns.py Allow to select subnets to publish DNS records 2019-12-14 13:36:09 +00:00
dvr.py Ensure there is always at most 1 dvr fip gw port per agent and network 2020-02-07 08:32:33 +00:00
external_net.py Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
flavor.py Define orm relationships after db classes 2019-05-16 13:45:56 +04:00
l3.py Set "floatingip.fixed_port" as viewonly 2021-06-03 15:51:46 +00:00
l3_attrs.py Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
l3agent.py Remove deprecation warnings for agents_db 2016-10-13 15:33:22 +00:00
l3ha.py Add CONTEXT_READER decorator to "get_ha_router_port_bindings" 2021-06-09 17:01:33 +00:00
loggingapi.py [log]: db models and migration rules 2017-06-13 08:52:12 +07:00
metering.py Add source_ip_prefix and destination_ip_prefix to metering label rules 2020-09-29 09:06:03 -03:00
network_segment_range.py Support Network Segment Range CRUD as extensions 2019-03-07 08:20:30 +00:00
ovn.py ovn: Always use UTC for Hash ring timestamps 2020-09-08 12:09:48 -04:00
port_device_profile.py Add port device profile extension 2021-01-22 16:17:30 +00:00
port_forwarding.py Add description field to portforwarding NAT rules 2020-01-22 11:19:55 -03:00
port_numa_affinity_policy.py Add port NUMA affinity policy 2020-11-13 15:49:34 +00:00
portbinding.py Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
provisioning_block.py Relocate Provisioning Block DB Model 2016-09-27 04:30:03 +00:00
securitygroup.py Support remote address group in SG rules 2020-11-25 10:34:02 -06:00
segment.py Revert "use segment api def from neutron-lib" 2018-03-22 10:03:45 +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 Cleanup _find_related_obj 2017-02-25 06:29:33 +00:00
tag.py Fix SQLAlchemy backref warnings for viewonly columns 2021-04-26 16:06:16 +00:00
uplink_status_propagation.py Change "propagate_uplink_status" default value to True 2020-09-07 15:52:52 +00: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).