third-party repo as is done in the neutron repo,
i.e. ``networking_foo/db/migration/alembic_migrations/versions/*.py``
#. Remove the models from the neutron repo.
-#. Add the names of the removed tables to ``DRIVER_TABLES`` in
+#. Add the names of the removed tables to ``REPO_FOO_TABLES`` in
``neutron/db/migration/alembic_migrations/external.py`` (this is used for
testing, see below).
+++++++++++++
The model_sync test will be updated to ignore the models that have been moved
-out of tree. A ``DRIVER_TABLES`` list will be maintained in
+out of tree. ``REPO_FOO_TABLES`` lists will be maintained in
``neutron/db/migration/alembic_migrations/external.py``.
FWAAS_TABLES = ['firewall_rules', 'firewalls', 'firewall_policies']
-DRIVER_TABLES = [
- # Arista ML2 driver Models moved to openstack/networking-arista
+# Arista ML2 driver Models moved to openstack/networking-arista
+REPO_ARISTA_TABLES = [
'arista_provisioned_nets',
'arista_provisioned_vms',
'arista_provisioned_tenants',
- # Models moved to openstack/networking-cisco
+]
+
+# Models moved to openstack/networking-cisco
+REPO_CISCO_TABLES = [
'cisco_ml2_apic_contracts',
'cisco_ml2_apic_names',
'cisco_ml2_apic_host_links',
'ml2_nexus_vxlan_allocations',
'ml2_nexus_vxlan_mcast_groups',
'ml2_ucsm_port_profiles',
- # VMware-NSX models moved to openstack/vmware-nsx
+]
+
+# VMware-NSX models moved to openstack/vmware-nsx
+REPO_VMWARE_TABLES = [
'tz_network_bindings',
'neutron_nsx_network_mappings',
'neutron_nsx_security_group_mappings',
'nsxv_spoofguard_policy_network_mappings',
'nsxv_vdr_dhcp_bindings',
'vcns_router_bindings',
- # Add your tables with moved models here^. Please end with a comma.
]
-TABLES = (FWAAS_TABLES + LBAAS_TABLES + VPNAAS_TABLES + DRIVER_TABLES)
+TABLES = (FWAAS_TABLES + LBAAS_TABLES + VPNAAS_TABLES +
+ REPO_ARISTA_TABLES +
+ REPO_CISCO_TABLES +
+ REPO_VMWARE_TABLES)