boto/boto — pull request #1195 by jamesls (2012-12-20 19:20:23+00:00)
Title: Support network interface param to EC2 API

These changes allow a user to specify network interfaces
to associate with an instance when using either run_instances
or request_spot_instances. This also allows a user to configure
multiple secondary private IP addresses
(http://docs.amazonwebservices.com/AmazonVPC/latest/UserGuide/VPC_MultipleIP.html)

These changes are broken down into four commits:

* First, there was a bug fix/enhancement to allow multiple
private IPs to be properly parsed from a DescribeInstanceResponse.
* Then a `NetworkInterfaceSpecification` and a `NetworkInterfaceCollection`
class were added. These are used to specify the network_interfaces param to
run_instances, and were modeled after the block device mapping arg (but using a
collection instead of a mapping).
* The network_interfaces arg was added to request_spot_instances.
* An integration test was added that shows an example of configuring and
retrieving multiple IP addresses.

Unittests was also added for the parsing of responses and serializing of
parameters.