]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Do not count dvr agents while creating HA ports
authorNuman Siddique <numan.siddique@enovance.com>
Mon, 1 Dec 2014 13:19:30 +0000 (18:49 +0530)
committerNuman Siddique <numan.siddique@enovance.com>
Thu, 25 Dec 2014 05:52:50 +0000 (11:22 +0530)
commit787c8dd29f7abf5f4e828b38bfd56f509f7f89ce
tree33de82b7eb5043cf5f74d89299c0b9690559069b
parent844a453a6a277b24a80374fbe4def34dc6725886
Do not count dvr agents while creating HA ports

Presently dvr agents are not excluded when a
ha router interface is created, because of which
an interface is created even in the dvr agent namespace.

This patch fixes the issue by supporting a filter - 'agent_modes'
in the function L3AgentSchedulerDbMixin.get_l3_agents.
If this filter is defined, only the l3 agents whose modes
defined in this filter are returned

Change-Id: I9383e2a30ddc4f2c3e04ff0821726b8dc3ec89a0
Closes-bug: #1397209
neutron/db/l3_agentschedulers_db.py
neutron/db/l3_hamode_db.py
neutron/tests/unit/db/test_l3_ha_db.py
neutron/tests/unit/test_l3_schedulers.py