]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Unify exception thrown in l3-agent-scheduler fails
authorJaume Devesa <devvesa@gmail.com>
Wed, 24 Jul 2013 14:54:09 +0000 (16:54 +0200)
committerJaume Devesa <devvesa@gmail.com>
Thu, 15 Aug 2013 08:50:34 +0000 (10:50 +0200)
commit5db010a9a737356e426e6f2e10c8fcafb36c533c
tree86a4a68f9444e41ffd3d26657a6d322ac92f2961
parentea16d6583abff37276fe37cf32a2dbaf766fc766
Unify exception thrown in l3-agent-scheduler fails

Since you can only attach a single l3 agent to a router, when you try
to add another l3 agent to a router that already have one, the l3
agent scheduler raises an exception.

This fix removes the discrimination by id: either it is the same agent
or another one, the router can not be hosted and the same exception is
raised.

Change-Id: If832bbd4bf17e4e0c4720172aded4c9fffedc6fc
Fixes: bug #1154622
neutron/db/agentschedulers_db.py
neutron/tests/unit/openvswitch/test_agent_scheduler.py