Package org.openstack.model.compute

Examples of org.openstack.model.compute.FloatingIp


    }

    final OpenstackComputeClient compute = getComputeClient(cloud);

    log.info("Creating floating IP");
    FloatingIp floatingIp = compute.root().floatingIps().create();

    // TODO: Don't abandon the IP e.g. if the attach fails
    log.info("Attching floating IP " + floatingIp.getIp() + " to " + server.getId());
    compute.root().servers().server(server.getId()).addFloatingIp(floatingIp.getIp());

    final String serverId = server.getId();

    try {
      server = TimeoutPoll.poll(TimeSpan.FIVE_MINUTES, TimeSpan.TEN_SECONDS, new PollFunction<Server>() {
View Full Code Here

TOP

Related Classes of org.openstack.model.compute.FloatingIp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.