]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Implement the SubnetId property in the Instance resource
authorWinson Chan <winson.c.chan@intel.com>
Wed, 8 May 2013 06:13:49 +0000 (23:13 -0700)
committerWinson Chan <winson.c.chan@intel.com>
Fri, 10 May 2013 15:00:40 +0000 (08:00 -0700)
commit58d88f64d79ecc336a15e5898b1de1efd605f112
treeecdeb7b312d3c3611a305f94dca513ae2df1044f
parent61090f485e3c57792d237bacf63d07970923b0e9
Implement the SubnetId property in the Instance resource

If the SubnetId parameter is given in the template, the handle_create method
in the Instance resource verifies the subnet in quantum and configures the
NetworkInterfaces for the subnet. If no NetworkInterface is specified, a port
is created for the subnet and the nic is configured to use that port.

Change-Id: I5a05cbe0798e6b181bf9dd3b547cda525e18480f
Fixes: bug #1163952
heat/engine/resources/instance.py
heat/engine/resources/network_interface.py
heat/tests/test_instance.py
heat/tests/test_instance_network.py [new file with mode: 0644]
heat/tests/test_vpc.py