]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
do not raise exception on ip address recycle operation
authorJiajun Liu <jiajun@unitedstack.com>
Wed, 17 Jul 2013 03:00:23 +0000 (03:00 +0000)
committerJiajun Liu <jiajun@unitedstack.com>
Thu, 25 Jul 2013 02:06:32 +0000 (10:06 +0800)
commitd6cddd430c237c9496a97978070e6891d4625d00
treea9a78edf3cf0fb1a3d2a441b0cd54382b69dcc26
parent58424dd6166f08c4d246aad1157a20b348d3af45
do not raise exception on ip address recycle operation

Currenty a exception will raise on ip address recycle operation if the ip
address doesn't belong to any allocation pool which will make user unable
to update port, even worse it will make user unable to create new port.
So do not raise exception if the ip address to be recycled doesn't belong
to any allocation, just delete it from the ip allocation table.

fixes bug 1201692

Change-Id: Icfbded5158f1f4043f69bb1463fd4c830c9714a9
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/test_db_plugin.py