]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Add dependency between RouterGateway and RouterInterface
authorSteve Baker <sbaker@redhat.com>
Tue, 21 May 2013 01:21:11 +0000 (13:21 +1200)
committerSteve Baker <sbaker@redhat.com>
Wed, 26 Jun 2013 23:55:37 +0000 (11:55 +1200)
commit718c195a1be18470e9d5cb5a7a199f62548b937b
tree510e11bcd37601b11e9e729998c48b697594a6c3
parent84e0ed42a5bd13bee446f45bc13352b047988ae9
Add dependency between RouterGateway and RouterInterface

When a template has a RouterGateway and a RouterInterface with the
same router_id, there is an implicit dependency on delete where
the gateway must be deleted before the interface.

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

Fixed bug: #1182266

Change-Id: I90ebe987c1d6e81f8936ceb81b81376c7e0d497a
heat/engine/resources/quantum/router.py
heat/tests/test_quantum.py