neutron/neutron/db/models
Manjeet Singh Bhatia 2b66c6a2ed Relocate L3 DB Models
As we have started oslo versioned objects implementations. There
would be issue of cyclic import while implementation for objects
which have db models definitions and mixins in same file. This patch
will move routers models as discussed in [1].

For example DNS models and some queries are in same file [2]. for object
implementation I have separate models definitions and mixins where
queries were being done [3].

[1]. https://www.mail-archive.com/openstack-dev@lists.openstack.org/msg88910.html
[2]. https://review.openstack.org/#/c/334695/15/neutron/db/dns_db.py
[3]. https://review.openstack.org/#/c/334695/15/neutron/db/models/dns_models.py

Change-Id: I9b9a44da5d28252be58cea1a920a64e18d8bbf32
Partial-Bug: #1597913
2016-09-27 16:58:55 +00:00
..
plugins Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04: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 Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04:00
allowed_address_pair.py Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04:00
l3.py Relocate L3 DB Models 2016-09-27 16:58:55 +00:00
securitygroup.py Add common way to extend standard attribute models 2016-09-15 01:42:24 +00:00
subnet_service_type.py Switch to neutron-lib for model_base 2016-08-31 11:12:18 -04: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).