Add support for train

Add support for stable/train branch.

Changes include:
* neutron-lbaas doesn't have a stable/train branch. The
  legacy services code references LBaaS, but is no longer
  supported, so the include can be removed. A patch series
  should be created to deprecate the legacy services code.
* https://review.opendev.org/#/c/635664/ removed the
  common_db_mixin
* https://review.opendev.org/#/c/649672/ moved the trunk
  services constants to neutron-lib
* https://review.opendev.org/#/c/666409/ removed the
  _check_router_needs_rescheduling function, so it no
  longer needs to be mocked during UTs.
* https://review.opendev.org/#/c/635664/ removed the
  CommonDbMixin.
* https://review.opendev.org/#/c/648761/ moved the
  neutron constants to neutron-lib
* https://review.opendev.org/#/c/634497/ moved the
  neutron exceptions to neutron-lib
* https://review.opendev.org/#/c/649672/ moved the
  trunk constants to neutron-lib, which uses different
  trunk state constant names.
* Use the trunk resource names defined in neutron-lib
  callbacks, instead of trunk constants.
* https://review.opendev.org/#/c/729250/ moved the constant
  used for auto-deletion of neutron ports.
* https://review.opendev.org/#/c/657887/ moved the StaticSqlFixture
  class to neutron-lib.

Change-Id: I9a79c590de7e1654d815987d0f99cfdb4e7baab0
This commit is contained in:
Thomas Bachman
2020-09-01 22:09:03 +00:00
parent 70fb38e353
commit edfc259d88
25 changed files with 93 additions and 104 deletions

View File

@@ -59,8 +59,8 @@ from oslo_db.sqlalchemy import exc_filters
exc_filters.LOG.exception = exc_filters.LOG.debug
from neutron.db import db_base_plugin_v2
from neutron.common import _constants
DEVICE_OWNER_SVI_PORT = 'apic:svi'
db_base_plugin_v2.AUTO_DELETE_PORT_OWNERS.append(DEVICE_OWNER_SVI_PORT)
_constants.AUTO_DELETE_PORT_OWNERS.append(DEVICE_OWNER_SVI_PORT)