]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use admin context when requesting floating ip's router info
authorOleg Bondarev <obondarev@mirantis.com>
Wed, 28 Oct 2015 06:08:26 +0000 (15:08 +0900)
committerOleg Bondarev <obondarev@mirantis.com>
Fri, 13 Nov 2015 16:48:33 +0000 (19:48 +0300)
commit912ce0c9450417624e161037ee87a7b042b99050
tree979ffceaf1daf228ba95c9101b6cc445d884dc31
parent8ee67e477c70ad0a15c415217e8b0f69e9ecaaac
Use admin context when requesting floating ip's router info

Currently it is possible for admin to create router and add any
tenant subnet to it, thus connecting the subnet to the external
network. In this case tenant user can assign floating ips to its
VMs though it does not own the router.
For proper notification we need to get router info using admin
context.

Closes-Bug: #1507602
Change-Id: I17330ddca577d15e42c13ef0af96d56e6f20abd7
neutron/db/l3_dvr_db.py
neutron/tests/unit/extensions/test_l3.py