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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user