function vtn_crt_ctl param1 param2 var post_data JSON stringify contro

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
function vtn_crt_ctl(param1, param2) {
var post_data = JSON.stringify({
controller: {
controller_id: param1,
ipaddr: param2,
type: 'odc',
version: '1.0',
auditstatus: 'enable'
}
});
$.ajax({
url: vtn_coord_base_URI + '/vtn-webapi/controllers.json',
type: 'POST',
dataType: 'json',
headers: vtn_coord_hdr,
processData: false,
data: post_data
}).done(function( data ) {
vtn_terminal.echo(JSON.stringify(data));
});
}