]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Add dependency between FloatingIP and RouterGateway
authorSteve Baker <sbaker@redhat.com>
Tue, 21 May 2013 01:21:22 +0000 (13:21 +1200)
committerSteve Baker <sbaker@redhat.com>
Mon, 17 Jun 2013 23:26:59 +0000 (11:26 +1200)
commitccba71e38adff7a57ba2e471378cadd0421793f3
tree0b1ad4b90e31e55491f21c1fc7eb37f8effdb34d
parentd25c1e94edff5ce0350b73037a7b3da3dfc70eec
Add dependency between FloatingIP and RouterGateway

When a template has a FloatingIP and a RouterGateway on the same
external network, there is an implicit dependency on create where
the gateway must be created before the floating ip.

This is implemented by overiding add_dependencies in FloatingIP
and looking in the stack for RouterGateway resource to depend on.

Fixed bug: #1182266

Change-Id: I40f281e5bf2a27280d328fe11d32e6404f412a79
heat/engine/resources/quantum/floatingip.py
heat/tests/test_quantum.py