You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Raj <ra...@apache.org> on 2014/11/19 05:46:15 UTC

If port id of a FloatingIP is null, can I decide that the floating IP is not allocated to any instances?

Hi devs,

I am using neutron API.

How can I decide whether a floating IP is not allocated to any instances.
Is $Subject correct approach? In Nova API we had instance id for a floating
IP, so we can check whether the instance id is null or not, and decide
whether the floating IP is allocated or not. Since in Neutron API, we
floating IPs doesn't have instance ids, how about doing $Subject?

Thanks.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Re: If port id of a FloatingIP is null, can I decide that the floating IP is not allocated to any instances?

Posted by Jeremy Daggett <je...@RACKSPACE.COM>.
Hi Raj!

Can you please provide us with some sample code, along with any classes you are currently using? Does the Neutron Layer3 Floating IP extension [1] provide what you are looking for?

/jd

[1] https://github.com/jclouds/jclouds-labs-openstack/blob/master/openstack-neutron/src/main/java/org/jclouds/openstack/neutron/v2/extensions/FloatingIPApi.java

From: Raj <ra...@apache.org>>
Reply-To: "user@jclouds.apache.org<ma...@jclouds.apache.org>" <us...@jclouds.apache.org>>
Date: Tuesday, November 18, 2014 at 8:46 PM
To: user <us...@jclouds.apache.org>>
Subject: If port id of a FloatingIP is null, can I decide that the floating IP is not allocated to any instances?

Hi devs,

I am using neutron API.

How can I decide whether a floating IP is not allocated to any instances. Is $Subject correct approach? In Nova API we had instance id for a floating IP, so we can check whether the instance id is null or not, and decide whether the floating IP is allocated or not. Since in Neutron API, we floating IPs doesn't have instance ids, how about doing $Subject?

Thanks.

--
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2