"render": function (data, type, row) {
return '<div class="btn-group">\n' +
' <button type="button" class="btn btn-default"\n' +
- ' onclick="javascript:showOperationDetails(\''+row["nsInstanceId"]+'\', \''+row["_id"]+'\')"\n' +
+ ' onclick="javascript:showOperationDetails(\''+instance_type+'\', \''+instance_id+'\', \''+row["_id"]+'\')"\n' +
' data-toggle="tooltip" data-placement="top" data-container="body" title="Show Info">\n' +
' <i class="fa fa-info"></i>\n' +
' </button>\n' +
{% block footer %}
{% include "footer.html" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
result = {'error': True, 'data': ''}
headers = {"Content-Type": "application/json", "accept": "application/json",
'Authorization': 'Bearer {}'.format(token['id'])}
- _url = "{0}/nsilcm/v1/nsi_lcm_op_occs/?nsInstanceId={1}".format(self._base_path, id)
+ _url = "{0}/nsilcm/v1/nsi_lcm_op_occs/?netsliceInstanceId={1}".format(self._base_path, id)
try:
r = requests.get(_url, params=None, verify=False, stream=True, headers=headers)
*/
-function showOperationDetails(instance_id, operation_id) {
- var url_info = '/instances/ns/'+instance_id+'/operation/' + operation_id;
+function showOperationDetails(type, instance_id, operation_id) {
+ var url_info = '/instances/'+type+'/'+instance_id+'/operation/' + operation_id;
var dialog = bootbox.dialog({
message: '<div class="text-center"><i class="fa fa-spin fa-spinner"></i> Loading...</div>',
closeButton: true
}, json_editor_settings);
-});
\ No newline at end of file
+});