Here is my suggestion 1. Create the ports that you need using neutron. You will get back port ids. You can probably use fixed IPs or have neutron allocate some IPs for you when creating the ports.
2. Boot the instances using the port ids from step 1), I think you can use http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/nova/v2_0/domain/Network.html and http://jclouds.apache.org/reference/javadoc/1.8.x/org/jclouds/openstack/nova/v2_0/compute/options/NovaTemplateOptions.Builder.html#novaNetworks(java.util.Set) Let me know if are having issues. I am not sure if you can make it work going the other way, though. -Zack ________________________________ From: Raj [[email protected]] Sent: Thursday, November 13, 2014 8:23 AM To: [email protected] Subject: Can we build a template using a set of nova networks and use neutron API to assign floating IPs? Hi, I am completely new to Jclouds. Please bare with me :) We can build a template with a set of nova networks. Then when use that template to create an instance, it will get one private IP per network. For example, If I built my template with two nova networks, my instance will get two private IP. Then, I can somehow use the PortApi to get the port uuids of the above created instance. If I have port uuid, then I can use 1.8.1 neutron API to assign a floating IP to the port. Is this a proper way? Or is there any better way to achieve this? Looking forward to your comment on this. Regards. -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2
