]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
select router with subnet's gateway_ip for floatingip
authorvenkata anil <anil.venkata@enovance.com>
Thu, 3 Sep 2015 13:07:44 +0000 (13:07 +0000)
committervenkata anil <anil.venkata@enovance.com>
Wed, 9 Dec 2015 05:44:04 +0000 (05:44 +0000)
commit526d28c5dba75e517bf833b895b69b840f03c6a4
tree67b0caadc4b6f3ae545707d3c33a06b86a46007a
parent1a8838357e5279f9f154a261d3dc6dd781cfba0c
select router with subnet's gateway_ip for floatingip

1) when a subnet is connected to multiple routers and
all these routers are connected to same external network,
then select the router with subnet's gateway_ip, if available,
for managing floatingip.

2) Otherwise go with default existing behavior i.e
select first router in internal subnet, that also present on external network.

For scenario 1), if the router with gateway ip not selected,
then for connections initiated by external agent towards floatingip
won't get response with floatingip as source address,
instead gw ip of router(i.e router with subnet's gateway_ip) as source.
Details about the bug at [1]

[1] https://bugs.launchpad.net/neutron/+bug/1470765/comments/4

Closes-bug: #1470765
Change-Id: If054945eab058c7138aabbb22cda15890ccb502c
neutron/db/l3_db.py
neutron/db/l3_dvr_db.py
neutron/tests/unit/extensions/test_l3.py