]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
lbaas on a network without gateway
authorLipingMao <limao@cisco.com>
Mon, 31 Mar 2014 05:49:18 +0000 (05:49 +0000)
committerLiping Mao <limao@cisco.com>
Sun, 4 May 2014 01:24:06 +0000 (01:24 +0000)
commit4f4fef9c2129fba14c38ac0e9414b5bead7d593a
tree4d1adea81958226bc6c776ba1e3528bb790a61ce
parent26182d681960f4297f193c560525b07a10789c73
lbaas on a network without gateway

Not only check the gateway_ip in subnet, but also
check the host_routes. If there is a default route in host_routes
then the next hop of the default route is also a gateway_ip.

Closes-Bug: 1300017
DocImpact

Change-Id: Id3ae04bfa6cefb1c030857894f0594828b8e856d
neutron/services/loadbalancer/drivers/haproxy/namespace_driver.py
neutron/tests/unit/services/loadbalancer/drivers/haproxy/test_namespace_driver.py