models: move AllowedAddressPair model under neutron/db/models
This patch moves the module into the canonical place. It does it in
backwards compatible way, by leaving the model available under the old
location, only emitting a deprecation warning on access from there. In
the future, the old module will be completely cleaned up.
This patch also makes head.py file that is used to import and register
all models in the tree to import everything from under neutron.db.models
without explicitly naming each module. In that way, we can avoid the
need to import each new module with models as long as it's located in
the designated place. The file is a well known abuser in terms of git
conflicts, and it's better to avoid manual work.
Reviewed: https:/ /review. openstack. org/351793 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=7c0f1893097 89ebcbd5c20c5a8 6835576ffb5db3
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7c0f189309789eb cbd5c20c5a86835 576ffb5db3
Author: Ihar Hrachyshka <email address hidden>
Date: Fri Aug 5 17:13:44 2016 +0200
models: move AllowedAddressPair model under neutron/db/models
This patch moves the module into the canonical place. It does it in
backwards compatible way, by leaving the model available under the old
location, only emitting a deprecation warning on access from there. In
the future, the old module will be completely cleaned up.
This patch also makes head.py file that is used to import and register
all models in the tree to import everything from under neutron.db.models
without explicitly naming each module. In that way, we can avoid the
need to import each new module with models as long as it's located in
the designated place. The file is a well known abuser in terms of git
conflicts, and it's better to avoid manual work.
Change-Id: I084031e6b3c8d9 113cc6ee6e3967f 0e1edaee0b5
Partial-Bug: #1597913