cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [21/50] [abbrv] git commit: updated refs/heads/object_store to 18aeef3
Date Wed, 12 Jun 2013 18:22:30 GMT
CLOUDSTACK-747: Internal LB detailView - Assigned VMs tab - add source port, instance port
to listView.


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

Branch: refs/heads/object_store
Commit: 62025632f904b3f46f5d35b499235701be6f48cf
Parents: bdb5997
Author: Jessica Wang <jessicawang@apache.org>
Authored: Thu Jun 6 10:55:12 2013 -0700
Committer: Jessica Wang <jessicawang@apache.org>
Committed: Thu Jun 6 10:55:12 2013 -0700

----------------------------------------------------------------------
 ui/scripts/vpc.js | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/62025632/ui/scripts/vpc.js
----------------------------------------------------------------------
diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js
index f0b449f..082cc25 100644
--- a/ui/scripts/vpc.js
+++ b/ui/scripts/vpc.js
@@ -359,6 +359,8 @@
           fields: {
             name: { label: 'label.name' },
             sourceipaddress: { label: 'Source IP Address' },
+            sourceport: { label: 'Source Port' },
+            instanceport: { label: 'Instance Port' },
             algorithm: { label: 'label.algorithm' }   
           },
           dataProvider: function(args) {                
@@ -369,8 +371,15 @@
               },
               success: function(json) {                    
                 var items = json.listloadbalancerssresponse.loadbalancer;
-                args.response.success({ data: items });
-                
+                if(items != null) {
+                  for(var i = 0; i < items.length; i++) {
+                    var item = items[i];                    
+                    //there is only one element in loadbalancerrul array property.
+                    item.sourceport = item.loadbalancerrule[0].sourceport;
+                    item.instanceport = item.loadbalancerrule[0].instanceport;
+                  }
+                }                
+                args.response.success({ data: items });                
               }
             });                
           },


Mime
View raw message