cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [34/50] [abbrv] git commit: updated refs/heads/kvm-vnc-listen to 895c51d
Date Mon, 16 Sep 2013 09:11:32 GMT
CLOUDSTACK-4662: UI > Network > IP Address > select a portable IP Address > Port
Forwarding > VM grid - select a VM - dropdown of VM NIC IP appears - dropdown option value
is networkID + VmGuestIp, split it and pass only VmGuestIp to API call.


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

Branch: refs/heads/kvm-vnc-listen
Commit: 2e2d1acefc89e157539fe2b2e3b846848dc1e427
Parents: 1042136
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Sep 12 19:11:13 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Sep 12 19:21:57 2013 -0700

----------------------------------------------------------------------
 ui/scripts/network.js | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2e2d1ace/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 0afa360..a09e565 100755
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -3842,10 +3842,20 @@
                                                     virtualmachineid: args.itemData[0].id,
                                                     openfirewall: false
                                                 };
+                                                
+                                                if (args.context.ipAddresses[0].isportable)
{
+                                                    var subselect = args.itemData[0]._subselect.split(',');
+                                                    //var networkid = subselect[0];
+                                                    var vmguestip = subselect[1];
 
-                                                if (args.itemData[0]._subselect &&
args.itemData[0]._subselect != -1) {
+                                                    //data.networkid = networkid;
+
+                                                    if (parseInt(vmguestip) !== -1) {
+                                                        data.vmguestip = vmguestip;
+                                                    }
+                                                } else if (args.itemData[0]._subselect &&
args.itemData[0]._subselect != -1) {
                                                     data.vmguestip = args.itemData[0]._subselect;
-                                                }
+                                                }                                       
        
 
                                                 if ('vpc' in args.context) { //from VPC section
                                                     if (args.data.tier == null) {


Mime
View raw message