]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Implement Internet Gateway and VPC attachment
authorSteve Baker <sbaker@redhat.com>
Wed, 13 Feb 2013 21:05:11 +0000 (10:05 +1300)
committerSteve Baker <sbaker@redhat.com>
Sun, 17 Feb 2013 20:13:58 +0000 (09:13 +1300)
commitd22734c32600fbe121a50734e2ee30bf7bdf15ad
tree8274cd26ac44358ca20ef0a5675747d9d5d02581
parentb9ed62c6b4ded4cf856388da651c6d86e4ddb779
Implement Internet Gateway and VPC attachment

Please note that this takes a different approach for
all VPC resources types. Previously the resource_id matched
the underlying quantum resource UUID (or a composite of the
underlying UUIDs)

This had some problems, including:
- it was resource_id abuse
- it required extra quantum _list and _show calls to get enough
  data to wire up new resources
- it made the already difficult job of mapping VPC <-> quantum
  even harder

The new approach is to store all quantum UUIDs in resource metadata.
The resource id is just the resource name, so resources can easily
fetch other resources from the stack by ref/name then look up
their metadata to find the underlying quantum UUIDs to perform
operations with.

Implements blueprint resource-type-internetgateway

Change-Id: I69937254566b74f173439b3c5ce4c4e8d8c49afa
heat/engine/resources/internet_gateway.py [new file with mode: 0644]
heat/engine/resources/network_interface.py
heat/engine/resources/subnet.py
heat/engine/resources/vpc.py
heat/tests/test_vpc.py