Display acl name in listNetworks response (#4317) · zhangsirsdo/cloudstack@43a25c7 · GitHub
Skip to content

Commit 43a25c7

Browse files
authored
Display acl name in listNetworks response (apache#4317)
* Display acl name in listNetworks response Display acl name along with its id so that we dont need to make extra api call to get acl name * Add since tag
1 parent 1fb50de commit 43a25c7

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

api/src/main/java/org/apache/cloudstack/api/ApiConstants.java

Lines changed: 1 addition & 0 deletions

api/src/main/java/org/apache/cloudstack/api/response/NetworkResponse.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ public class NetworkResponse extends BaseResponse implements ControlledEntityRes
238238
@Param(description = "If the network has redundant routers enabled", since = "4.11.1")
239239
private Boolean redundantRouter;
240240

241+
@SerializedName(ApiConstants.ACL_NAME)
242+
@Param(description = "ACL name associated with the VPC network", since = "4.15.0")
243+
private String aclName;
244+
241245
public Boolean getDisplayNetwork() {
242246
return displayNetwork;
243247
}
@@ -458,4 +462,12 @@ public Boolean getRedundantRouter() {
458462
public void setRedundantRouter(Boolean redundantRouter) {
459463
this.redundantRouter = redundantRouter;
460464
}
465+
466+
public String getAclName() {
467+
return aclName;
468+
}
469+
470+
public void setAclName(String aclName) {
471+
this.aclName = aclName;
472+
}
461473
}

server/src/main/java/com/cloud/api/ApiResponseHelper.java

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)