public TenantPort createTenantPort(String tenantNetworkUuid) {
TenantPort req = new TenantPort();
req.networkUuid = tenantNetworkUuid;
req.attachmentType = "NoAttachment";
HttpPost method = new HttpPost();
<BUG>method.setEntity(new StringEntity(new Gson().toJson(req), ContentType.APPLICATION_JSON));
HttpResponse res = executeMethod(method, "/ssp.v1/tenant-ports");

if (res == null || res.getStatusLine().getStatusCode() != HttpStatus.SC_CREATED) {
return null;
}
try {
return new Gson().fromJson(new InputStreamReader(res.getEntity().getContent(), "UTF-8"),</BUG>
TenantPort.class);

public TenantPort createTenantPort(String tenantNetworkUuid) {
TenantPort req = new TenantPort();
req.networkUuid = tenantNetworkUuid;
req.attachmentType = "NoAttachment";
HttpPost method = new HttpPost();
method.setEntity(new StringEntity(new Gson().toJson(req), ContentType.APPLICATION_JSON));
return new Gson().fromJson(
executeMethod(method, "/ssp.v1/tenant-ports"),
TenantPort.class);
