weizhouapache commented on a change in pull request #3804: Display capability
info in listNetwork response
URL: https://github.com/apache/cloudstack/pull/3804#discussion_r383883615
##########
File path: server/src/main/java/com/cloud/api/ApiResponseHelper.java
##########
@@ -2187,13 +2188,75 @@ public NetworkResponse
createNetworkResponse(ResponseView view, Network network)
CapabilityResponse capabilityResponse = new
CapabilityResponse();
String capabilityValue = ser_cap_entries.getValue();
capabilityResponse.setName(capability.getName());
- capabilityResponse.setValue(capabilityValue);
+ if (Service.Lb == service &&
capability.getName().equals(Capability.SupportedLBIsolation.getName())) {
+ //
capabilityResponse.setValue(networkOffering.getDedicatedLB() ? "dedicated" :
"shared");
Review comment:
@ravening the rest is ok for me, except this line.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services