Repository: cloudstack
Updated Branches:
  refs/heads/master 970f95c35 -> abbdb2ef2


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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/834ab53d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/834ab53d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/834ab53d

Branch: refs/heads/master
Commit: 834ab53d87fd2bef954ffb768b4923d823c631a7
Parents: 930ef8d
Author: Nitin Kumar Maharana <[email protected]>
Authored: Thu Oct 1 12:34:55 2015 +0530
Committer: Nitin Kumar Maharana <[email protected]>
Committed: Fri Oct 30 15:12:36 2015 +0530

----------------------------------------------------------------------
 ui/scripts/network.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/834ab53d/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 110bc4b..787ae05 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -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];

Reply via email to