]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Preserve DVR FIP rule priority over Agent restarts
authorAdolfo Duarte <adolfo.duarte@hp.com>
Fri, 19 Jun 2015 02:50:13 +0000 (19:50 -0700)
committerRyan Moats <rmoats@us.ibm.com>
Wed, 12 Aug 2015 20:52:19 +0000 (15:52 -0500)
commitde81ab8385e8490b2320e23ee7dd86b43e22fd32
tree89b9edd89cdcae9a56dfcddc9258eb788913e563
parent0cdff4f7ccf2acd41cdbab51c81c4e065d2f4a38
Preserve DVR FIP rule priority over Agent restarts

IP rule priorities assigned to DVR floating IPs need
to be preserved over L3 agent restarts. Reuse
the ItemAllocator class decomposed from Link Local IP
address allocation.  Also move commn unit tests to
ItemAllocator class.

Closes-Bug: #1414779
Change-Id: I6a75aa8ad612ee80b391f0a27a8a7e29519c3f8d
Co-Authored-By: Rajeev Grover <rajeev.grover@hp.com>
Co-Authored-By: Ryan Moats <rmoats@us.ibm.com>
neutron/agent/l3/dvr_fip_ns.py
neutron/agent/l3/dvr_local_router.py
neutron/agent/l3/fip_rule_priority_allocator.py [new file with mode: 0644]
neutron/tests/functional/agent/test_l3_agent.py
neutron/tests/unit/agent/l3/test_dvr_fip_ns.py
neutron/tests/unit/agent/l3/test_fip_rule_priority_allocator.py [new file with mode: 0644]
neutron/tests/unit/agent/l3/test_item_allocator.py
neutron/tests/unit/agent/l3/test_link_local_allocator.py