summaryrefslogtreecommitdiff
path: root/boto/ec2/address.py
diff options
context:
space:
mode:
authornevins-b <nbartolomeo@cashstar.com>2014-08-06 14:07:06 -0400
committernevins-b <nbartolomeo@cashstar.com>2014-08-06 14:07:06 -0400
commit4b4a0727563451548ee256098d2a22f13da165ee (patch)
treedeab916b8ab16cdeda34f0b2ccff78c2b78be696 /boto/ec2/address.py
parenta14767c4d14cb43ba66f9c85b414401a49a23060 (diff)
downloadboto-4b4a0727563451548ee256098d2a22f13da165ee.tar.gz
allow private IP be specified when associating with ENI
Diffstat (limited to 'boto/ec2/address.py')
-rw-r--r--boto/ec2/address.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/boto/ec2/address.py b/boto/ec2/address.py
index 2d83b22e..8a93ac83 100644
--- a/boto/ec2/address.py
+++ b/boto/ec2/address.py
@@ -88,7 +88,7 @@ class Address(EC2Object):
delete = release
- def associate(self, instance_id=None, network_interface_id=None, allow_reassociation=False, dry_run=False):
+ def associate(self, instance_id=None, network_interface_id=None, private_ip_address=None, allow_reassociation=False, dry_run=False):
"""
Associate this Elastic IP address with a currently running instance.
:see: :meth:`boto.ec2.connection.EC2Connection.associate_address`
@@ -99,6 +99,7 @@ class Address(EC2Object):
public_ip=self.public_ip,
allocation_id=self.allocation_id,
network_interface_id=network_interface_id,
+ private_ip_address=private_ip_address,
allow_reassociation=allow_reassociation,
dry_run=dry_run
)
@@ -106,6 +107,7 @@ class Address(EC2Object):
instance_id=instance_id,
public_ip=self.public_ip,
network_interface_id=network_interface_id,
+ private_ip_address=private_ip_address,
allow_reassociation=allow_reassociation,
dry_run=dry_run
)