octavia/octavia/db
Michael Johnson 66d71b0150 Fix L7 repository create methods
SQLAlchemy can get confused if the parent database objects are not
linked when creating new records using the repository.
For example, when creating an L7 policy, even if you specify the
listener_id, sqlalchemy will drop the ID from the final SQL INSERT
parameter.
This patch corrects the L7 policy and rule create methods to have
the required parent objects linked.

Story: 2006305
Task: 36021

Change-Id: I4380605bdb346eee824b2ce05fa25175c4cc3034
(cherry picked from commit 36afa82d0c)
2019-08-26 14:10:05 +00:00
..
migration Extend api to accept qos_policy_id 2017-12-20 09:23:16 +08:00
__init__.py Initial directory skeleton 2014-09-04 15:28:10 -06:00
api.py Make health checks resilient to DB outages 2018-09-13 20:00:42 +00:00
base_models.py Fix fields translation on filtering 2018-07-03 11:47:52 +00:00
models.py Fix the API list performance regression 2019-04-08 15:48:45 +02:00
prepare.py Add support for single-create for APIv2 2017-05-05 20:56:22 -07:00
repositories.py Fix L7 repository create methods 2019-08-26 14:10:05 +00:00