public class ComputeFloatingIPServiceImpl extends BaseComputeServices implements ComputeFloatingIPService
| Constructor and Description |
|---|
ComputeFloatingIPServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
addFloatingIP(Server server,
String ipAddress)
Adds floating-ip to server.
|
ActionResponse |
addFloatingIP(Server server,
String fixedIpAddress,
String ipAddress)
Adds floating-ip to server.
|
FloatingIP |
allocateIP(String pool)
Allocate a floating ip address to tenant.
|
ActionResponse |
deallocateIP(String id)
Deallocate ip address from tenant.
|
List<String> |
getPoolNames()
Lists the current Floating IP Pool Names
|
List<? extends FloatingIP> |
list()
List floating ips associated with current tenant.
|
ActionResponse |
removeFloatingIP(Server server,
String ipAddress)
Remove floating-ip from server
|
public List<? extends FloatingIP> list()
list in interface ComputeFloatingIPServicepublic List<String> getPoolNames()
getPoolNames in interface ComputeFloatingIPServicepublic FloatingIP allocateIP(String pool)
allocateIP in interface ComputeFloatingIPServicepool - the poolpublic ActionResponse deallocateIP(String id)
deallocateIP in interface ComputeFloatingIPServiceid - the id of floating ip addresspublic ActionResponse addFloatingIP(Server server, String fixedIpAddress, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserver - the serverfixedIpAddress - the fixed ip addressipAddress - the ip addresspublic ActionResponse addFloatingIP(Server server, String ipAddress)
addFloatingIP in interface ComputeFloatingIPServiceserver - the serveripAddress - the ip addresspublic ActionResponse removeFloatingIP(Server server, String ipAddress)
removeFloatingIP in interface ComputeFloatingIPServiceserver - the serveripAddress - the ip address