neutron/neutron/tests/functional/db
Lujin 69b3762dda Add binding_index to NetworkDhcpAgentBinding
The patch proposes adding a new binding_index to the
NetworkDhcpAgentBinding table, with an additional Unique
Constraint that enforces a single <network_id, binding_index>
per network.

1. When a network is triggered to be auto-scheduled to DHCP
agents, the number of DHCP agents is constrained by
dhcp_agents_per_network in neutron.conf. This prevents
too many DHCP agents from being scheduled in the first place.

2. If users manually schedule a network to specific DHCP
agents, the binding_index increments to show the number of
DHCP agents hosting this network.

Co-Authored-By: Oleg Bondarev <obondarev@mirantis.com>
Change-Id: I1bc3f8b69c337f7c1cf7375509a0da61def9baf1
Closes-Bug: #1535554
2019-08-29 12:52:07 +04:00
..
migrations Add binding_index to NetworkDhcpAgentBinding 2019-08-29 12:52:07 +04:00
__init__.py Freeze models for healing migration 2014-07-14 18:36:05 +02:00
test_ipam.py Fix flake8 H404 errors 2018-10-05 21:48:41 +00:00
test_migrations.py Add skip_if_timeout to additional MySQL migration test 2019-05-10 13:32:49 +00:00
test_models.py All functional tests logs results now 2018-11-21 19:58:18 +00:00
test_network.py remove the neutron.db._resource_extend module 2019-01-02 13:02:06 -07:00