ravening commented on a change in pull request #3804: Display capability info 
in listNetwork response
URL: https://github.com/apache/cloudstack/pull/3804#discussion_r385728240
 
 

 ##########
 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:
   @weizhouapache fixed it.

----------------------------------------------------------------
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

Reply via email to