]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix lb-vip does not get route to default gw
authorAaron Rosen <arosen@nicira.com>
Mon, 1 Apr 2013 22:26:12 +0000 (15:26 -0700)
committerAaron Rosen <arosen@nicira.com>
Tue, 2 Apr 2013 01:24:58 +0000 (18:24 -0700)
commit37b41833bf4f9500ee6be53d15298d0f4b964ea3
tree1a80e9f96084bf810f2b82990a915d809e729c41
parentf15b281a822595eef0a02cda13d2148c2b68343c
Fix lb-vip does not get route to default gw

Previously when creating a lb-vip it would be created without
a default gw. This patch fixes that and adds unit tests to check
that route add is called if the subnet has a gateway_ip.

Fixes bug 1162626

Change-Id: I155749fa6d9c843fca87a73f3cf85720aac26cfa
quantum/plugins/services/agent_loadbalancer/drivers/haproxy/namespace_driver.py
quantum/tests/unit/services/agent_loadbalancer/driver/haproxy/test_namespace_driver.py