weizhouapache commented on a change in pull request #5769:
URL: https://github.com/apache/cloudstack/pull/5769#discussion_r778625119
##########
File path: server/src/main/java/com/cloud/api/ApiResponseHelper.java
##########
@@ -3188,6 +3206,16 @@ public PrivateGatewayResponse
createPrivateGatewayResponse(PrivateGateway result
response.setAclName(acl.getName());
}
+ final NetworkDetailVO detail =
networkDetailsDao.findDetail(result.getNetworkId(),
Network.AssociatedNetworkId);
+ if (detail != null) {
+ Long associatedNetworkId = Long.valueOf(detail.getValue());
+ NetworkVO associatedNetwork =
ApiDBUtils.findNetworkById(associatedNetworkId);
+ if (associatedNetwork != null) {
+ response.setAssociatedNetworkId(associatedNetwork.getUuid());
+ response.setAssociatedNetworkName(associatedNetwork.getName());
+ }
+ }
+
Review comment:
they are different response. anyway, I will add a new base response.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]