Skip to content

Commit 8c9cd6e

Browse files
committed
nTIER - detail view to show the acl name with which it is associated
1 parent bc98d8a commit 8c9cd6e

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

ui/scripts/vpc.js

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2731,6 +2731,7 @@
27312731
isEditable: true
27322732
},
27332733

2734+
aclname:{label:'ACL name'},
27342735
aclid:{label:'ACL id'},
27352736

27362737
domain: { label: 'label.domain' },
@@ -2745,12 +2746,23 @@
27452746
async: true,
27462747
success: function(json) {
27472748
var jsonObj = json.listnetworksresponse.network[0];
2748-
args.response.success(
2749-
{
2750-
actionFilter: cloudStack.actionFilter.guestNetwork,
2751-
data: jsonObj
2752-
}
2753-
);
2749+
2750+
$.ajax({
2751+
url:createURL("listNetworkACLLists&id=" + jsonObj.aclid),
2752+
dataType:"json",
2753+
success:function(json){
2754+
var aclObj = json.listnetworkacllistsresponse.networkacllist[0];
2755+
args.response.success({
2756+
actionFilter: cloudStack.actionFilter.guestNetwork,
2757+
data:$.extend(jsonObj , {aclname: aclObj.name})
2758+
2759+
});
2760+
},
2761+
error:function(json){
2762+
2763+
args.response.error(parseXMLHttpResponse(json));
2764+
}
2765+
});
27542766
}
27552767
});
27562768
}

0 commit comments

Comments
 (0)