]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Raise proper exception in case duplicate ipv6 address is allocated
authorEugene Nikanorov <enikanorov@mirantis.com>
Fri, 22 Aug 2014 12:29:49 +0000 (16:29 +0400)
committerEugene Nikanorov <enikanorov@mirantis.com>
Mon, 25 Aug 2014 12:27:44 +0000 (16:27 +0400)
commiteb3be39521659d0d5a0ddfdc33b08f6d0c24db39
treec5e845dc45cbcfbae0c3fa90c2e682475e295add
parent8301f7c19cdf24dbff27317f08c940b398f8e09d
Raise proper exception in case duplicate ipv6 address is allocated

In case neutron tries to generate ipv6 address for slaac subnet,
it doesn't check that generated ip is unique and throws DB exception
that results in 500 HTTP error.

The fix throws proper IpAddressInUse exception.

Closes-Bug: #1358731
Change-Id: I66aed81b8d31d1eff6c87a77c4c4a813179ba458
neutron/db/db_base_plugin_v2.py
neutron/tests/unit/oneconvergence/test_nvsd_plugin.py
neutron/tests/unit/test_db_plugin.py