Merge pull request #903 from nitin-maharana/nitin1

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 createdWhile 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.

* pr/903:
  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

Signed-off-by: Remi Bergsma <github@remi.nl>
This commit is contained in:
Remi Bergsma 2015-11-02 13:54:52 +01:00
commit abbdb2ef2f
1 changed files with 1 additions and 1 deletions

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];