CLOUDSTACK-8928: While adding VMs to LB rule, default NIC IP is always displayed rather than the IP corresponding to the NIC where LB is being created

While calling the listNics API, instead of sending the default nic id as parameter, it should send the network id as a parameter.
So, replaced that nicid parameter as networkid parameter.
This commit is contained in:
Nitin Kumar Maharana 2015-10-01 12:34:55 +05:30 committed by Nitin Kumar Maharana
parent 930ef8dc7b
commit 834ab53d87

View File

@ -173,7 +173,7 @@
url: createURL('listNics'),
data: {
virtualmachineid: instance.id,
nicId: instance.nic[0].id
networkid: network.id
},
success: function(json) {
var nic = json.listnicsresponse.nic[0];