what to pass in for "domain"

15 views
Skip to first unread message

Sherry

unread,
Dec 2, 2012, 4:13:33 PM12/2/12
to boto-...@googlegroups.com

Hi,

function allocate_address (domain) in ec2.connection.EC2Connection asks to pass in domain. What should I specify the domain for a VPC EIP allocation?

Thanks!

Sherry

Sherry

unread,
Dec 2, 2012, 4:56:05 PM12/2/12
to boto-...@googlegroups.com
OK, I passed 'vpc' to allocate_address('vpc') and it worked. It did allocate a EIP in the scope of vpc. But I only get the EIP as return value, how do I get allocation_id??

Thanks!

Mitchell Garnaat

unread,
Dec 6, 2012, 1:57:42 PM12/6/12
to boto-...@googlegroups.com
Hi -

It appears that the response from AllocateAddress is not different depending on whether you have allocated a VPC IP or not.  Boto has not yet been updated to accomodate these different responses.  I have created this ticket:


To track this issue.  Thanks!

Mitch

--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/boto-users/-/v2Kyv5ywV28J.

To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.

Mitchell Garnaat

unread,
Dec 6, 2012, 1:58:21 PM12/6/12
to boto-...@googlegroups.com
Sorry, that should read "is NOW different" not "is not different"

mitch

unread,
Dec 6, 2012, 4:12:09 PM12/6/12
to boto-...@googlegroups.com
In looking at this further, it does appear that the code in the develop branch on github already supports this.  When allocating an address, you should get an Address object returned and that object has the attributes described here:


So you should be able to access the allocation_id attribute of that object to get the value you want.

What version of boto are you using?

Mitch


On Sunday, December 2, 2012 1:13:33 PM UTC-8, Sherry wrote:
Reply all
Reply to author
Forward
0 new messages