}
return null;
}
private FloatingIp toModel(VirtualIp vip) {
VirtualIpData data = vip.getData();
FloatingIp model = new FloatingIp();
// model.id = vip.getId();
model.id = toId(vip.getData());
if (data.hasInstanceId()) {
model.instanceId = Long.toString(data.getInstanceId());
}
InetAddress address = InetAddresses.forString(data.getIp());
String ip;
if (address instanceof Inet4Address) {
ip = InetAddresses.toAddrString(address);
} else {
throw new UnsupportedOperationException();