]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add validation for the dvr router l3agent binding
authorSwaminathan Vasudevan <swaminathan.vasudevan@hp.com>
Tue, 2 Sep 2014 16:48:54 +0000 (09:48 -0700)
committerCarl Baldwin <carl.baldwin@hp.com>
Tue, 23 Dec 2014 19:40:08 +0000 (19:40 +0000)
commit7e65529923953c815e77d726b56f94635367532f
tree02d913d9bdc1ee27c174b3867827e913f2f8417b
parent77a54d50e6a17d527bac310c58ad3cab8ac1ff0f
Add validation for the dvr router l3agent binding

Validates dvr router add/remove cases to the
l3agents running in different dvr modes such
as "dvr_snat" and "dvr" mode.

In the case of distributed virtual routers it
does not make sense to move distributed routers
from one "dvr" node to another "dvr" node.

Also added some unit tests that addresses the
validation of legacy routers to dvr agent and
dvr routers to legacy agent.

Partial-Bug: #1369721

Change-Id: I008dda6abaf25094b11f3730b951e096dd3b7025
neutron/db/l3_agentschedulers_db.py
neutron/extensions/l3agentscheduler.py
neutron/tests/unit/test_l3_schedulers.py