Comments (3)
So the example above is working as it should. Allocating a floating IP is only saying hey.. add a floating IP from the given pool to the current Tenant.
Fixed IP is assigned to a Server and the call you were making is at a Tenant level. Are you sure your not looking for the "addFloatingIP" call?
If you want to see all Floating IPs against the tenant and the ones which have an associated fixed address (otherwise it will be null) then the call would be:
client.compute().floatingIps().list()
from openstack4j.
Thanks you for you reply,
yes, I am not call addFloadtingIP() but in my method createAndLunchServer() i call ServerCreate.addNetwork(netwworkID, ip) which IP here is floatingIP or fixed_IP,
public void createAndLunchServer(String serverName, String flavorID, String imageID, String networkID, String ip){
OSClient osClient = OSFactory.clientFromAccess(access);
System.err.println("OS_CLIENT: " + osClient.toString());
ServerCreate sc = Builders.server().name(serverName)
.flavor(flavorID)
.image(imageID)
.build();
sc.addNetwork(networkID, ip); // ip here is floatingIP or fixed_IP
osClient.compute().servers().boot(sc);
}
I will try addFloatingIP() and let you the result later.
BR,
from openstack4j.
Closing until further correspondence
from openstack4j.
Related Issues (20)
- Vulnerable dependency: resteasy-jaxrs-3.1.4.Final.jar HOT 2
- The Openstack4j firewall only supports one firewall_policy_id?
- osClientV3.networking().port().list(portListOptions) can not use some optional parameters
- JDK11: Okhttp Exception
- How to get the flavor metadata ? I can't open "http://www.openstack4j.com/" HOT 4
- java.lang.NullPointerException when rebootGuest is called HOT 1
- hope to join the team to coding
- I hope to get created_time and updated_time field but can not
- "/v2.0/subnetpools" can not use
- trouble with setting region with openstack4J and OVH
- api not support query /{project_id}/volumes...
- can not use routers-conntrack-helper-ct-target-rules HOT 1
- Join us to solve any problems of this project
- extension this api
- openstack4j how to handle https HOT 1
- MapWithoutMetaPrefixFunction parse fails parsing medatata object HOT 1
- HostAggregateMetadata can't be removed HOT 1
- Empty documents stored on swift
- os.identity().projects().list() not working!!!
- NeutronNetQosPolicy isDefault JsonProperty Not effective
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstack4j.