]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix get_subnet_for_dvr() to return correct gateway mac
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 30 Dec 2015 17:24:55 +0000 (20:24 +0300)
committerOleg Bondarev <obondarev@mirantis.com>
Mon, 11 Jan 2016 06:42:29 +0000 (09:42 +0300)
commit0a00205c2a209f20a9d900ddb30f25628a32ebd9
tree0c1b5670282db1798b52e983807ea1362e04b7ea
parenta6547e9cf0b7ce1dfc8b616c7c6521e31ba592c4
Fix get_subnet_for_dvr() to return correct gateway mac

Fix filters to get the right gateway port for a subnet.
Wrong filters led to random port's mac being returned which may cause
side effects. See bug for details.

Closes-Bug: #1530179
Change-Id: I8368255f00ab3e9586c8ff28dfe6739541000810
neutron/db/dvr_mac_db.py
neutron/tests/unit/db/test_dvr_mac_db.py