cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [03/16] git commit: updated refs/heads/master to b074fc7
Date Fri, 07 Aug 2015 21:10:17 GMT
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2bdbaf45/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 0f8fe6a..d4dc302 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -16,27 +16,27 @@
 // under the License.
 
 (function ($, cloudStack) {
-    
+
     var zoneObjs, podObjs, clusterObjs, domainObjs, networkOfferingObjs, physicalNetworkObjs;
     var selectedClusterObj, selectedZoneObj, selectedPublicNetworkObj, selectedManagementNetworkObj, selectedPhysicalNetworkObj, selectedGuestNetworkObj;
     var nspMap = {
     };
     //from listNetworkServiceProviders API
     var nspHardcodingArray =[]; //for service providers listView (hardcoding, not from listNetworkServiceProviders API)
-    
+
     // Add router type to virtual router
     // -- can be either Project, VPC, or System (standard)
     var mapRouterType = function (index, router) {
         var routerType = _l('label.menu.system');
-        
+
         if (router.projectid) routerType = _l('label.project');
         if (router.vpcid) routerType = _l('label.vpc');
-        
+
         return $.extend(router, {
             routerType: routerType
         });
     };
-    
+
     cloudStack.publicIpRangeAccount = {
         dialog: function (args) {
             return function (args) {
@@ -71,7 +71,7 @@
                     }
                 };
                 var success = args.response.success;
-                
+
                 if (args.$item) {
                     // Account data is read-only after creation
                     $.ajax({
@@ -82,7 +82,7 @@
                         },
                         success: function (json) {
                             var domain = json.listdomainsresponse.domain[0];
-                            
+
                             cloudStack.dialog.notice({
                                 message: '<ul><li>' + _l('label.account') + ': ' + data.account + '</li>' + '<li>' + _l('label.domain') + ': ' + domain.path + '</li></ul>'
                             });
@@ -97,7 +97,7 @@
                         },
                         after: function (args) {
                             var data = cloudStack.serializeForm(args.$form);
-                            
+
                             success({
                                 data: data
                             });
@@ -107,11 +107,11 @@
             };
         }
     };
-    
+
     var getTrafficType = function (physicalNetwork, typeID) {
         var trafficType = {
         };
-        
+
         $.ajax({
             url: createURL('listTrafficTypes'),
             data: {
@@ -126,7 +126,7 @@
                 })[0];
             }
         });
-        
+
         if (trafficType.xennetworklabel == null || trafficType.xennetworklabel == 0)
         trafficType.xennetworklabel = _l( 'label.network.label.display.for.blank.value');
         if (trafficType.kvmnetworklabel == null || trafficType.kvmnetworklabel == 0)
@@ -141,10 +141,10 @@
         trafficType.hypervnetworklabel = _l( 'label.network.label.display.for.blank.value');
         if (trafficType.ovm3networklabel == null || trafficType.ovm3networklabel == 0)
         trafficType.ovm3networklabel = _l( 'label.network.label.display.for.blank.value');
-        
+
         return trafficType;
     };
-    
+
     var updateTrafficLabels = function (trafficType, labels, complete) {
         var array1 =[];
         if (labels.xennetworklabel != _l( 'label.network.label.display.for.blank.value'))
@@ -161,7 +161,7 @@
         array1.push("&hypervnetworklabel=" + labels.hypervnetworklabel);
         if (labels.ovm3networklabel != _l( 'label.network.label.display.for.blank.value'))
         array1.push("&ovm3networklabel=" + labels.ovm3networklabel);
-        
+
         $.ajax({
             url: createURL('updateTrafficType' + array1.join("")),
             data: {
@@ -169,7 +169,7 @@
             },
             success: function (json) {
                 var jobID = json.updatetraffictyperesponse.jobid;
-                
+
                 cloudStack.ui.notifications.add({
                     desc: 'Update traffic labels',
                     poll: pollAsyncJobResult,
@@ -193,7 +193,7 @@
             }
         })
     };
-    
+
     function virtualRouterProviderActionFilter(args) {
         var allowedActions =[];
         var jsonObj = args.context.item; //args.context.item == nspMap["virtualRouter"]
@@ -202,7 +202,7 @@
         allowedActions.push("enable");
         return allowedActions;
     };
-    
+
     function ovsProviderActionFilter(args) {
         var allowedActions = [];
         var jsonObj = args.context.item; //args.context.item == nspMap["virtualRouter"]
@@ -212,11 +212,11 @@
             allowedActions.push("enable");
         return allowedActions;
     };
-    
+
     cloudStack.sections.system = {
         title: 'label.menu.infrastructure',
         id: 'system',
-        
+
         // System dashboard
         dashboard: {
             dataProvider: function (args) {
@@ -236,7 +236,7 @@
                             }
                         });
                     },
-                    
+
                     podCount: function (data) {
                         $.ajax({
                             url: createURL('listPods'),
@@ -251,7 +251,7 @@
                             }
                         });
                     },
-                    
+
                     clusterCount: function (data) {
                         $.ajax({
                             url: createURL('listClusters'),
@@ -263,9 +263,9 @@
                                 dataFns.hostCount($.extend(data, {
                                     clusterCount: json.listclustersresponse.count ? json.listclustersresponse.count: 0
                                 }));
-                                
+
                                 //comment the 4 lines above and uncomment the following 4 lines if listHosts API still responds slowly.
-                                
+
                                 /*
                                 dataFns.primaryStorageCount($.extend(data, {
                                 clusterCount: json.listclustersresponse.count ?
@@ -275,7 +275,7 @@
                             }
                         });
                     },
-                    
+
                     hostCount: function (data) {
                         var data2 = {
                             type: 'routing',
@@ -292,7 +292,7 @@
                             }
                         });
                     },
-                    
+
                     primaryStorageCount: function (data) {
                         var data2 = {
                             page: 1,
@@ -308,7 +308,7 @@
                             }
                         });
                     },
-                    
+
                     secondaryStorageCount: function (data) {
                         var data2 = {
                             page: 1,
@@ -324,7 +324,7 @@
                             }
                         });
                     },
-                    
+
                     systemVmCount: function (data) {
                         $.ajax({
                             url: createURL('listSystemVms'),
@@ -339,7 +339,7 @@
                             }
                         });
                     },
-                    
+
                     virtualRouterCount: function (data) {
                         var data2 = {
                         	listAll: true,
@@ -352,12 +352,12 @@
                             success: function (json) {
                                 var total1 = json.listroutersresponse.count ? json.listroutersresponse.count: 0;
                                 var total2 = 0; //reset
-                                
+
                                 /*
                                  * In project view, the first listRotuers API(without projectid=-1) will return the same objects as the second listRouters API(with projectid=-1),
-                                 * because in project view, all API calls are appended with projectid=[projectID].  
+                                 * because in project view, all API calls are appended with projectid=[projectID].
                                  * Therefore, we only call the second listRouters API(with projectid=-1) in non-project view.
-                                 */   
+                                 */
                                 if (cloudStack.context && cloudStack.context.projects == null) { //non-project view
                                 var data3 = {
                                     listAll: true,
@@ -370,39 +370,39 @@
                                     data: data3,
 	                                    async: false,
                                     success: function (json) {
-	                                        total2 = json.listroutersresponse.count ? json.listroutersresponse.count : 0;	                                        
+	                                        total2 = json.listroutersresponse.count ? json.listroutersresponse.count : 0;
 	                                    }
 	                                });
                                 }
-                                                                
+
                                         dataFns.capacity($.extend(data, {
                                             virtualRouterCount: (total1 + total2)
                                         }));
                                     }
                                 });
                     },
-                    
+
                     capacity: function (data) {
                         if (data.zoneCount) {
                             $.ajax({
                                 url: createURL('listCapacity'),
                                 success: function (json) {
                                     var capacities = json.listcapacityresponse.capacity;
-                                    
+
                                     var capacityTotal = function (id, converter) {
                                         var capacity = $.grep(capacities, function (capacity) {
                                             return capacity.type == id;
                                         })[0];
-                                        
+
                                         var total = capacity ? capacity.capacitytotal: 0;
-                                        
+
                                         if (converter) {
                                             return converter(total);
                                         }
-                                        
+
                                         return total;
                                     };
-                                    
+
                                     dataFns.socketInfo($.extend(data, {
                                         cpuCapacityTotal: capacityTotal(1, cloudStack.converters.convertHz),
                                         memCapacityTotal: capacityTotal(0, cloudStack.converters.convertBytes),
@@ -418,7 +418,7 @@
                             }));
                         }
                     },
-                    
+
                     socketInfo: function (data) {
                         var socketCount = 0;
                         $.ajax({
@@ -431,8 +431,8 @@
                                         var currentPage = 1;
                                         var returnedHostCount = 0;
                                         var returnedHostCpusocketsSum = 0;
-                                        
-                                    	var callListHostsWithPage = function() {                                                		
+
+                                    	var callListHostsWithPage = function() {
                                             $.ajax({
                                                 url: createURL('listHosts'),
                                                 async: false,
@@ -446,17 +446,17 @@
                                                     if (json.listhostsresponse.count == undefined) {
                                                         return;
                                                     }
-                                                    
+
                                                         totalHostCount = json.listhostsresponse.count;
                                                     returnedHostCount += json.listhostsresponse.host.length;
-                                                    
+
                                                     var items = json.listhostsresponse.host;
                                                     for (var i = 0; i < items.length; i++) {
                                                         if (items[i].cpusockets != undefined && isNaN(items[i].cpusockets) == false) {
                                                             returnedHostCpusocketsSum += items[i].cpusockets;
                                                         }
                                                     }
-                                                    
+
                                                     if (returnedHostCount < totalHostCount) {
                                                         currentPage++;
                                         				callListHostsWithPage();
@@ -464,32 +464,32 @@
                                                 }
                                             });
                                         }
-                                        
+
                                     	callListHostsWithPage();
-                                        
+
                                         socketCount += returnedHostCpusocketsSum;
                                     })
                                 });
                             }
                         });
-                        
+
                         complete($.extend(data, {
                             socketCount: socketCount
                         }));
                     }
                 };
-                
+
                 var complete = function (data) {
                     args.response.success({
                         data: data
                     });
                 };
-                
+
                 dataFns.zoneCount({
                 });
             }
         },
-        
+
         zoneDashboard: function (args) {
             $.ajax({
                 url: createURL('listCapacity'),
@@ -500,24 +500,24 @@
                     var capacities = json.listcapacityresponse.capacity;
                     var data = {
                     };
-                    
+
                     $(capacities).each(function () {
                         var capacity = this;
-                        
+
                         data[capacity.type] = {
                             used: cloudStack.converters.convertByType(capacity.type, capacity.capacityused),
                             total: cloudStack.converters.convertByType(capacity.type, capacity.capacitytotal),
                             percent: parseInt(capacity.percentused)
                         };
                     });
-                    
+
                     args.response.success({
                         data: data
                     });
                 }
             });
         },
-        
+
         // Network-as-a-service configuration
         naas: {
             providerListView: {
@@ -545,7 +545,7 @@
                         data: nspHardcodingArray
                     })
                 },
-                
+
                 detailView: function (args) {
                     return cloudStack.sections.system.naas.networkProviders.types[
                     args.context.networkProviders[0].id];
@@ -559,7 +559,7 @@
                                 label: 'label.edit',
                                 action: function (args) {
                                     var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Public');
-                                    
+
                                     updateTrafficLabels(trafficType, args.data, function () {
                                         args.response.success();
                                     });
@@ -607,7 +607,7 @@
                                         isEditable: true
                                     }
                                 }],
-                                
+
                                 dataProvider: function (args) {
                                     $.ajax({
                                         url: createURL("listNetworks&listAll=true&trafficType=Public&isSystem=true&zoneId=" + selectedZoneObj.id, {
@@ -618,9 +618,9 @@
                                         success: function (json) {
                                             var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Public');
                                             var items = json.listnetworksresponse.network;
-                                            
+
                                             selectedPublicNetworkObj = items[0];
-                                            
+
                                             // Include traffic labels
                                             selectedPublicNetworkObj.xennetworklabel = trafficType.xennetworklabel;
                                             selectedPublicNetworkObj.kvmnetworklabel = trafficType.kvmnetworklabel;
@@ -636,7 +636,7 @@
                                     });
                                 }
                             },
-                            
+
                             ipAddresses: {
                                 title: 'label.ip.ranges',
                                 custom: function (args) {
@@ -682,25 +682,25 @@
                                             action: function (args) {
                                                 var array1 =[];
                                                 array1.push("&zoneId=" + args.context.zones[0].id);
-                                                
+
                                                 if (args.data.vlan != null && args.data.vlan.length > 0)
                                                 array1.push("&vlan=" + todb(args.data.vlan)); else
                                                 array1.push("&vlan=untagged");
-                                                
+
                                                 array1.push("&gateway=" + args.data.gateway);
                                                 array1.push("&netmask=" + args.data.netmask);
                                                 array1.push("&startip=" + args.data.startip);
                                                 if (args.data.endip != null && args.data.endip.length > 0)
                                                 array1.push("&endip=" + args.data.endip);
-                                                
+
                                                 if (args.data.account) {
                                                     array1.push("&account=" + args.data.account.account);
                                                     array1.push("&domainid=" + args.data.account.domainid);
                                                 }
-                                                
+
                                                 array1.push("&forVirtualNetwork=true");
                                                 //indicates this new IP range is for public network, not guest network
-                                                
+
                                                 $.ajax({
                                                     url: createURL("createVlanIpRange" + array1.join("")),
                                                     dataType: "json",
@@ -754,7 +754,7 @@
                                                     });
                                                 }
                                             },
-                                            
+
                                             releaseFromAccount: {
                                                 label: 'label.release.account',
                                                 action: function (args) {
@@ -779,7 +779,7 @@
                                                     });
                                                 }
                                             },
-                                            
+
                                             addAccount: {
                                                 label: 'label.add.account',
                                                 createForm: {
@@ -844,7 +844,7 @@
                                                 dataType: "json",
                                                 success: function (json) {
                                                     var items = json.listvlaniprangesresponse.vlaniprange;
-                                                    
+
                                                     args.response.success({
                                                         data: $.map(items, function (item) {
                                                             return $.extend(item, {
@@ -865,7 +865,7 @@
                         }
                     }
                 },
-                
+
                 'storage': {
                     detailView: {
                         actions: {
@@ -873,7 +873,7 @@
                                 label: 'label.edit',
                                 action: function (args) {
                                     var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Storage');
-                                    
+
                                     updateTrafficLabels(trafficType, args.data, function () {
                                         args.response.success();
                                     });
@@ -921,7 +921,7 @@
                                         isEditable: true
                                     }
                                 }],
-                                
+
                                 dataProvider: function (args) {
                                     $.ajax({
                                         url: createURL("listNetworks&listAll=true&trafficType=Storage&isSystem=true&zoneId=" + selectedZoneObj.id),
@@ -931,7 +931,7 @@
                                             var items = json.listnetworksresponse.network;
                                             var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Storage');
                                             selectedPublicNetworkObj = items[0];
-                                            
+
                                             selectedPublicNetworkObj.xennetworklabel = trafficType.xennetworklabel;
                                             selectedPublicNetworkObj.kvmnetworklabel = trafficType.kvmnetworklabel;
                                             selectedPublicNetworkObj.vmwarenetworklabel = trafficType.vmwarenetworklabel;
@@ -946,7 +946,7 @@
                                     });
                                 }
                             },
-                            
+
                             ipAddresses: {
                                 title: 'label.ip.ranges',
                                 custom: function (args) {
@@ -1009,17 +1009,17 @@
                                                 var array1 =[];
                                                 array1.push("&zoneId=" + args.context.zones[0].id);
                                                 array1.push("&podid=" + args.data.podid);
-                                                
+
                                                 array1.push("&gateway=" + args.data.gateway);
-                                                
+
                                                 if (args.data.vlan != null && args.data.vlan.length > 0)
                                                 array1.push("&vlan=" + todb(args.data.vlan));
-                                                
+
                                                 array1.push("&netmask=" + args.data.netmask);
                                                 array1.push("&startip=" + args.data.startip);
                                                 if (args.data.endip != null && args.data.endip.length > 0)
                                                 array1.push("&endip=" + args.data.endip);
-                                                
+
                                                 $.ajax({
                                                     url: createURL("createStorageNetworkIpRange" + array1.join("")),
                                                     dataType: "json",
@@ -1081,7 +1081,7 @@
                         }
                     }
                 },
-                
+
                 'management': {
                     detailView: {
                         actions: {
@@ -1089,7 +1089,7 @@
                                 label: 'label.edit',
                                 action: function (args) {
                                     var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Management');
-                                    
+
                                     updateTrafficLabels(trafficType, args.data, function () {
                                         args.response.success();
                                     });
@@ -1143,9 +1143,9 @@
                                         dataType: "json",
                                         success: function (json) {
                                             selectedManagementNetworkObj = json.listnetworksresponse.network[0];
-                                            
+
                                             var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Management');
-                                            
+
                                             selectedManagementNetworkObj.xennetworklabel = trafficType.xennetworklabel;
                                             selectedManagementNetworkObj.kvmnetworklabel = trafficType.kvmnetworklabel;
                                             selectedManagementNetworkObj.vmwarenetworklabel = trafficType.vmwarenetworklabel;
@@ -1215,7 +1215,7 @@
                         }
                     }
                 },
-                
+
                 'guest': {
                     //physical network + Guest traffic type
                     detailView: {
@@ -1226,23 +1226,23 @@
                                     var data = {
                                         id: selectedPhysicalNetworkObj.id
                                     };
-                                    
+
                                     $.extend(data, {
                                         vlan: args.data.vlan
                                     });
-                                    
+
                                     $.extend(data, {
                                         tags: args.data.tags
                                     });
-                                    
+
                                     $.ajax({
                                         url: createURL('updatePhysicalNetwork'),
                                         data: data,
                                         success: function (json) {
                                             var jobId = json.updatephysicalnetworkresponse.jobid;
-                                            
+
                                             var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Guest');
-                                            
+
                                             updateTrafficLabels(trafficType, args.data, function () {
                                                 args.response.success({
                                                     _custom: {
@@ -1258,7 +1258,7 @@
                                 }
                             }
                         },
-                        
+
                         tabFilter: function (args) {
                             var hiddenTabs =[];
                             if (selectedZoneObj.networktype == 'Basic') {
@@ -1270,7 +1270,7 @@
                             }
                             return hiddenTabs;
                         },
-                        
+
                         tabs: {
                             details: {
                                 title: 'label.details',
@@ -1341,7 +1341,7 @@
                                         async: true,
                                         success: function (json) {
                                             selectedPhysicalNetworkObj = json.listphysicalnetworksresponse.physicalnetwork[0];
-                                            
+
                                             //	var startVlan, endVlan;
                                             var vlan = selectedPhysicalNetworkObj.vlan;
                                             /*	if(vlan != null && vlan.length > 0) {
@@ -1356,7 +1356,7 @@
                                             selectedPhysicalNetworkObj["startVlan"] = startVlan;
                                             selectedPhysicalNetworkObj["endVlan"] = endVlan;
                                             }*/
-                                            
+
                                             //traffic type
                                             var xenservertrafficlabel, kvmtrafficlabel, vmwaretrafficlabel;
                                             var trafficType = getTrafficType(selectedPhysicalNetworkObj, 'Guest');
@@ -1379,7 +1379,7 @@
                                     });
                                 }
                             },
-                            
+
                             ipAddresses: {
                                 title: 'label.ip.ranges',
                                 custom: function (args) {
@@ -1444,7 +1444,7 @@
                                                 array1.push("&endip=" + args.data.endip);
                                                 array1.push("&forVirtualNetwork=false");
                                                 //indicates this new IP range is for guest network, not public network
-                                                
+
                                                 $.ajax({
                                                     url: createURL("createVlanIpRange" + array1.join("")),
                                                     dataType: "json",
@@ -1507,7 +1507,7 @@
                                             });
                                             if (selectedGuestNetworkObj == null)
                                             return;
-                                            
+
                                             $.ajax({
                                                 url: createURL("listVlanIpRanges&zoneid=" + selectedZoneObj.id + "&networkId=" + selectedGuestNetworkObj.id),
                                                 dataType: "json",
@@ -1522,7 +1522,7 @@
                                     });
                                 }
                             },
-                            
+
                             network: {
                                 title: 'label.network',
                                 listView: {
@@ -1552,7 +1552,7 @@
                                     actions: {
                                         add: addGuestNetworkDialog.def
                                     },
-                                    
+
                                     dataProvider: function (args) {
                                         var array1 =[];
                                         if (args.filterBy != null) {
@@ -1565,7 +1565,7 @@
                                                 }
                                             }
                                         }
-                                        
+
                                         //need to make 2 listNetworks API call to get all guest networks from one physical network in Advanced zone
                                         var items =[];
                                         //"listNetworks&projectid=-1": list guest networks under all projects (no matter who the owner is)
@@ -1578,13 +1578,13 @@
                                                 items = json.listnetworksresponse.network;
                                             }
                                         });
-                                        
+
                                         var networkCollectionMap = {
                                         };
                                         $(items).each(function () {
                                             networkCollectionMap[ this.id] = this.name;
                                         });
-                                        
+
                                         //"listNetworks&listAll=true: list guest networks that are not under any project (no matter who the owner is)
                                         $.ajax({
                                             url: createURL("listNetworks&listAll=true&trafficType=Guest&zoneId=" + selectedZoneObj.id + "&physicalnetworkid=" + selectedPhysicalNetworkObj.id + "&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
@@ -1597,16 +1597,16 @@
                                                 });
                                             }
                                         });
-                                        
+
                                         $(items).each(function () {
                                             addExtraPropertiesToGuestNetworkObject(this);
                                         });
-                                        
+
                                         args.response.success({
                                             data: items
                                         });
                                     },
-                                    
+
                                     detailView: {
                                         name: 'label.guest.network.details',
                                         noCompact: true,
@@ -1634,15 +1634,15 @@
                                                     var array1 =[];
                                                     array1.push("&name=" + todb(args.data.name));
                                                     array1.push("&displaytext=" + todb(args.data.displaytext));
-                                                    
+
                                                     //args.data.networkdomain is null when networkdomain field is hidden
                                                     if (args.data.networkdomain != null && args.data.networkdomain != selectedGuestNetworkObj.networkdomain)
                                                     array1.push("&networkdomain=" + todb(args.data.networkdomain));
-                                                    
+
                                                     //args.data.networkofferingid is null when networkofferingid field is hidden
                                                     if (args.data.networkofferingid != null && args.data.networkofferingid != args.context.networks[0].networkofferingid) {
                                                         array1.push("&networkofferingid=" + todb(args.data.networkofferingid));
-                                                        
+
                                                         if (args.context.networks[0].type == "Isolated") {
                                                             //Isolated network
                                                             cloudStack.dialog.confirm({
@@ -1695,7 +1695,7 @@
                                                             return;
                                                         }
                                                     }
-                                                    
+
                                                     $.ajax({
                                                         url: createURL("updateNetwork&id=" + args.context.networks[0].id + array1.join("")),
                                                         dataType: "json",
@@ -1719,7 +1719,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             'restart': {
                                                 label: 'label.restart.network',
                                                 createForm: {
@@ -1774,7 +1774,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             'remove': {
                                                 label: 'label.action.delete.network',
                                                 messages: {
@@ -1820,7 +1820,7 @@
                                                         hiddenFields.push("gateway");
                                                         //hiddenFields.push("netmask");
                                                     }
-                                                    
+
                                                     if (selectedGuestNetworkObj.type == "Isolated") {
                                                         hiddenFields.push("networkofferingdisplaytext");
                                                         hiddenFields.push("networkdomaintext");
@@ -1892,23 +1892,23 @@
                                                                     });
                                                                 }
                                                             });
-                                                            
+
                                                             //include currently selected network offeirng to dropdown
                                                             items.push({
                                                                 id: selectedGuestNetworkObj.networkofferingid,
                                                                 description: selectedGuestNetworkObj.networkofferingdisplaytext
                                                             });
-                                                            
+
                                                             args.response.success({
                                                                 data: items
                                                             });
                                                         }
                                                     },
-                                                    
+
                                                     networkofferingidText: {
                                                         label: 'label.network.offering.id'
                                                     },
-                                                    
+
                                                     gateway: {
                                                         label: 'label.ipv4.gateway'
                                                     },
@@ -1916,14 +1916,14 @@
                                                     cidr: {
                                                         label: 'label.ipv4.cidr'
                                                     },
-                                                    
+
                                                     ip6gateway: {
                                                         label: 'label.ipv6.gateway'
                                                     },
                                                     ip6cidr: {
                                                         label: 'label.ipv6.CIDR'
                                                     },
-                                                    
+
                                                     networkdomaintext: {
                                                         label: 'label.network.domain'
                                                     },
@@ -1931,7 +1931,7 @@
                                                         label: 'label.network.domain',
                                                         isEditable: true
                                                     },
-                                                    
+
                                                     domain: {
                                                         label: 'label.domain'
                                                     },
@@ -1961,7 +1961,7 @@
                                                             listAll: true //pass "&listAll=true" to "listNetworks&id=xxxxxxxx" for now before API gets fixed.
                                                         });
                                                     }
-                                                    
+
                                                     $.ajax({
                                                         url: createURL("listNetworks"),
                                                         data: data,
@@ -1969,12 +1969,12 @@
                                                         success: function (json) {
                                                             selectedGuestNetworkObj = json.listnetworksresponse.network[0];
                                                             addExtraPropertiesToGuestNetworkObject(selectedGuestNetworkObj);
-                                                                                                                       
+
                                                             $(window).trigger('cloudStack.module.sharedFunctions.addExtraProperties', {
                                                             	obj: selectedGuestNetworkObj,
                                                             	objType: "Network"
                                                             });
-                                                                                                                       
+
                                                             args.response.success({
                                                                 actionFilter: cloudStack.actionFilter.guestNetwork,
                                                                 data: selectedGuestNetworkObj
@@ -1987,7 +1987,7 @@
                                     }
                                 }
                             },
-                            
+
                             dedicatedGuestVlanRanges: {
                                 title: 'label.dedicated.vlan.vni.ranges',
                                 listView: {
@@ -2102,7 +2102,7 @@
                                             }
                                         }
                                     },
-                                    
+
                                     detailView: {
                                         name: 'label.vlan.range.details',
                                         actions: {
@@ -2139,7 +2139,7 @@
                                                 }
                                             }
                                         },
-                                        
+
                                         tabs: {
                                             details: {
                                                 title: 'label.details',
@@ -2182,7 +2182,7 @@
                     }
                 }
             },
-            
+
             networks: {
                 listView: {
                     id: 'physicalNetworks',
@@ -2206,7 +2206,7 @@
                             label: 'label.isolation.method'
                         }
                     },
-                    
+
                     actions: {
                         remove: {
                             label: 'label.action.delete.physical.network',
@@ -2255,11 +2255,11 @@
                     });
                 }
             },
-            
+
             trafficTypes: {
                 dataProvider: function (args) {
                     selectedPhysicalNetworkObj = args.context.physicalNetworks[0];
-                    
+
                     $.ajax({
                         url: createURL('listTrafficTypes'),
                         data: {
@@ -2278,25 +2278,25 @@
                     });
                 }
             },
-            
+
             networkProviders: {
                 statusLabels: {
                     enabled: 'Enabled', //having device, network service provider is enabled
                     'not-configured': 'Not setup', //no device
                     disabled: 'Disabled' //having device, network service provider is disabled
                 },
-                
+
                 // Actions performed on entire net. provider type
                 actions: {
                     enable: function (args) {
                         args.response.success();
                     },
-                    
+
                     disable: function (args) {
                         args.response.success();
                     }
                 },
-                
+
                 types: {
                     virtualRouter: {
                         id: 'virtualRouterProviders',
@@ -2352,7 +2352,7 @@
                                     });
                                 }
                             },
-                            
+
                             instances: {
                                 title: 'label.instances',
                                 listView: {
@@ -2393,7 +2393,7 @@
                                                 }
                                             }
                                         }
-                                        
+
                                         var data2 = {
                                             forvpc: false
                                         };
@@ -2404,16 +2404,16 @@
                                             success: function (json) {
                                                 var items = json.listroutersresponse.router ?
                                                 json.listroutersresponse.router:[];
-                                                
+
                                                 $(items).map(function (index, item) {
                                                     routers.push(item);
                                                 });
-                                                
+
                                                 /*
                                                  * In project view, the first listRotuers API(without projectid=-1) will return the same objects as the second listRouters API(with projectid=-1),
-                                                 * because in project view, all API calls are appended with projectid=[projectID].  
+                                                 * because in project view, all API calls are appended with projectid=[projectID].
                                                  * Therefore, we only call the second listRouters API(with projectid=-1) in non-project view.
-                                                 */   
+                                                 */
                                                 if (cloudStack.context && cloudStack.context.projects == null) { //non-project view
                                                 $.ajax({
                                                     url: createURL("listRouters&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + "&projectid=-1"),
@@ -2422,14 +2422,14 @@
                                                     success: function (json) {
                                                         var items = json.listroutersresponse.router ?
                                                         json.listroutersresponse.router:[];
-                                                        
+
                                                         $(items).map(function (index, item) {
                                                             routers.push(item);
                                                         });
 	                                                    }
 	                                                });
                                                 }
-                                                
+
                                                         args.response.success({
                                                             actionFilter: routerActionfilter,
                                                             data: $(routers).map(mapRouterType)
@@ -2475,7 +2475,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             stop: {
                                                 label: 'label.action.stop.router',
                                                 createForm: {
@@ -2521,7 +2521,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             'remove': {
                                                 label: 'label.destroy.router',
                                                 messages: {
@@ -2551,7 +2551,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             migrate: {
                                                 label: 'label.action.migrate.router',
                                                 createForm: {
@@ -2631,7 +2631,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             viewConsole: {
                                                 label: 'label.view.console',
                                                 action: {
@@ -2780,7 +2780,7 @@
                                                         async: true,
                                                         success: function (json) {
                                                             var jsonObj = json.listroutersresponse.router[0].nic;
-                                                            
+
                                                             args.response.success({
                                                                 actionFilter: routerActionfilter,
                                                                 data: $.map(jsonObj, function (nic, index) {
@@ -2867,7 +2867,7 @@
                             }
                         }
                     },
-                    
+
                     InternalLbVm: {
                         id: 'InternalLbVm',
                         label: 'label.internallbvm',
@@ -2922,7 +2922,7 @@
                                     });
                                 }
                             },
-                            
+
                             instances: {
                                 title: 'label.instances',
                                 listView: {
@@ -2963,25 +2963,25 @@
                                                 }
                                             }
                                         }
-                                        
+
                                         var routers =[];
                                         $.ajax({
                                             url: createURL("listInternalLoadBalancerVMs&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
                                             success: function (json) {
                                                 var items = json.listinternallbvmssresponse.internalloadbalancervm ?
                                                 json.listinternallbvmssresponse.internalloadbalancervm:[];
-                                                
+
                                                 $(items).map(function (index, item) {
                                                     routers.push(item);
                                                 });
-                                                
+
                                                 // Get project routers
                                                 $.ajax({
                                                     url: createURL("listInternalLoadBalancerVMs&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + "&projectid=-1"),
                                                     success: function (json) {
                                                         var items = json.listinternallbvmssresponse.internalloadbalancervm ?
                                                         json.listinternallbvmssresponse.internalloadbalancervm:[];
-                                                        
+
                                                         $(items).map(function (index, item) {
                                                             routers.push(item);
                                                         });
@@ -3032,7 +3032,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             stop: {
                                                 label: 'label.stop.lb.vm',
                                                 createForm: {
@@ -3078,7 +3078,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             migrate: {
                                                 label: 'label.migrate.lb.vm',
                                                 createForm: {
@@ -3157,7 +3157,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             viewConsole: {
                                                 label: 'label.view.console',
                                                 action: {
@@ -3306,7 +3306,7 @@
                                                         async: true,
                                                         success: function (json) {
                                                             var jsonObj = json.listinternallbvmssresponse.internalloadbalancervm[0].nic;
-                                                            
+
                                                             args.response.success({
                                                                 actionFilter: internallbinstanceActionfilter,
                                                                 data: $.map(jsonObj, function (nic, index) {
@@ -3393,7 +3393,7 @@
                             }
                         }
                     },
-                    
+
                     vpcVirtualRouter: {
                         id: 'vpcVirtualRouterProviders',
                         label: 'label.vpc.virtual.router',
@@ -3448,7 +3448,7 @@
                                     });
                                 }
                             },
-                            
+
                             instances: {
                                 title: 'label.instances',
                                 listView: {
@@ -3489,7 +3489,7 @@
                                                 }
                                             }
                                         }
-                                        
+
                                         var data2 = {
                                             forvpc: true
                                         };
@@ -3504,12 +3504,12 @@
                                                 $(items).map(function (index, item) {
                                                     routers.push(item);
                                                 });
-                                                
+
                                                 /*
                                                  * In project view, the first listRotuers API(without projectid=-1) will return the same objects as the second listRouters API(with projectid=-1),
-                                                 * because in project view, all API calls are appended with projectid=[projectID].  
+                                                 * because in project view, all API calls are appended with projectid=[projectID].
                                                  * Therefore, we only call the second listRouters API(with projectid=-1) in non-project view.
-                                                 */   
+                                                 */
                                                 if (cloudStack.context && cloudStack.context.projects == null) { //non-project view
                                                 $.ajax({
                                                     url: createURL("listRouters&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + "&projectid=-1"),
@@ -3524,7 +3524,7 @@
 	                                                    }
 	                                                });
                                                 }
-                                                
+
                                                         args.response.success({
                                                             actionFilter: routerActionfilter,
                                                             data: $(routers).map(mapRouterType)
@@ -3570,7 +3570,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             stop: {
                                                 label: 'label.action.stop.router',
                                                 createForm: {
@@ -3616,7 +3616,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             restart: {
                                                 label: 'label.action.reboot.router',
                                                 messages: {
@@ -3652,7 +3652,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             'remove': {
                                                 label: 'label.destroy.router',
                                                 messages: {
@@ -3682,7 +3682,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             migrate: {
                                                 label: 'label.action.migrate.router',
                                                 createForm: {
@@ -3762,7 +3762,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             viewConsole: {
                                                 label: 'label.view.console',
                                                 action: {
@@ -3938,7 +3938,7 @@
                             }
                         }
                     },
-                    
+
                     Ovs: {
                         id: "Ovs",
                         label: "label.ovs",
@@ -3947,7 +3947,7 @@
                         fields: {
                             name: {
                                 label: 'label.name'
-                            },                          
+                            },
                             state: {
                                 label: 'label.status',
                                 indicator: {
@@ -3962,10 +3962,10 @@
                                     name: {
                                         label: 'label.name'
                                     }
-                                }, {                                    
+                                }, {
                                     state: {
                                         label: 'label.state'
-                                    },                                                                      
+                                    },
                                     supportedServices: {
                                         label: 'label.supported.services'
                                     },
@@ -4051,8 +4051,8 @@
                                 }
                             }
                         }
-                    },                    
-                   
+                    },
+
                     // NetScaler provider detail view
                     netscaler: {
                         type: 'detailView',
@@ -4141,7 +4141,7 @@
                                             label: 'label.private.interface',
                                             docID: 'helpNetScalerPrivateInterface'
                                         },
-                                        
+
                                         gslbprovider: {
                                             label: 'label.gslb.service',
                                             isBoolean: true,
@@ -4153,7 +4153,7 @@
                                         gslbproviderprivateip: {
                                             label: 'label.gslb.service.private.ip'
                                         },
-                                        
+
                                         numretries: {
                                             label: 'label.numretries',
                                             defaultValue: '2',
@@ -4307,7 +4307,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -4326,7 +4326,7 @@
                             }
                         }
                     },
-                    
+
                     //Baremetal DHCP provider detail view
                     BaremetalDhcpProvider: {
                         type: 'detailView',
@@ -4479,7 +4479,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -4498,7 +4498,7 @@
                             }
                         }
                     },
-                    
+
                     //Baremetal PXE provider detail view
                     BaremetalPxeProvider: {
                         type: 'detailView',
@@ -4657,7 +4657,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -4676,7 +4676,7 @@
                             }
                         }
                     },
-                    
+
                     //f5 provider detail view
                     f5: {
                         type: 'detailView',
@@ -4914,7 +4914,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -4933,7 +4933,7 @@
                             }
                         }
                     },
-                    
+
                     // SRX provider detailView
                     srx: {
                         type: 'detailView',
@@ -5188,7 +5188,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -5207,7 +5207,7 @@
                             }
                         }
                     },
-                    
+
                     // Palo Alto provider detailView
                     pa: {
                         type: 'detailView',
@@ -5472,7 +5472,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -5491,7 +5491,7 @@
                             }
                         }
                     },
-                    
+
                     // Security groups detail view
                     securityGroups: {
                         id: 'securityGroup-providers',
@@ -5601,7 +5601,7 @@
                                 }
                             }
                         },
-                        
+
                         fields: {
                             id: {
                                 label: 'label.id'
@@ -5805,7 +5805,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -6214,7 +6214,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -6233,8 +6233,8 @@
                             }
                         }
                     },
-                    
-                    
+
+
                     // MidoNet provider detailView
                     midoNet: {
                         id: 'midoNet',
@@ -6354,7 +6354,7 @@
                             }
                         }
                     },
-                    
+
                     //ovs
                     Ovs: {
                         id: 'ovsProviders',
@@ -6410,7 +6410,7 @@
                                     });
                                 }
                             },
-                            
+
                             instances: {
                                 title: 'label.instances',
                                 listView: {
@@ -6451,7 +6451,7 @@
                                                 }
                                             }
                                         }
-                                        
+
                                         var data2 = {
                                             forvpc: false
                                         };
@@ -6462,11 +6462,11 @@
                                             success: function (json) {
                                                 var items = json.listroutersresponse.router ?
                                                 json.listroutersresponse.router:[];
-                                                
+
                                                 $(items).map(function (index, item) {
                                                     routers.push(item);
                                                 });
-                                                
+
                                                 // Get project routers
                                                 $.ajax({
                                                     url: createURL("listRouters&zoneid=" + selectedZoneObj.id + "&listAll=true&page=" + args.page + "&pagesize=" + pageSize + array1.join("") + "&projectid=-1"),
@@ -6474,7 +6474,7 @@
                                                     success: function (json) {
                                                         var items = json.listroutersresponse.router ?
                                                         json.listroutersresponse.router:[];
-                                                        
+
                                                         $(items).map(function (index, item) {
                                                             routers.push(item);
                                                         });
@@ -6525,7 +6525,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             stop: {
                                                 label: 'label.action.stop.router',
                                                 createForm: {
@@ -6571,7 +6571,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             'remove': {
                                                 label: 'label.destroy.router',
                                                 messages: {
@@ -6601,7 +6601,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             migrate: {
                                                 label: 'label.action.migrate.router',
                                                 createForm: {
@@ -6681,7 +6681,7 @@
                                                     poll: pollAsyncJobResult
                                                 }
                                             },
-                                            
+
                                             viewConsole: {
                                                 label: 'label.view.console',
                                                 action: {
@@ -6830,7 +6830,7 @@
                                                         async: true,
                                                         success: function (json) {
                                                             var jsonObj = json.listroutersresponse.router[0].nic;
-                                                            
+
                                                             args.response.success({
                                                                 actionFilter: routerActionfilter,
                                                                 data: $.map(jsonObj, function (nic, index) {
@@ -7141,7 +7141,7 @@
 	                                                 jobId: jid
 	                                             }
 	                                         });
-	
+
 	                                         $(window).trigger('cloudStack.fullRefresh');
 	                                     }
 	                                 });
@@ -7434,7 +7434,7 @@
                                                     jobId: jid
                                                 }
                                             });
-                                            
+
                                             $(window).trigger('cloudStack.fullRefresh');
                                         }
                                     });
@@ -7696,7 +7696,7 @@
                                     }
                                 }
                             },
-                            
+
                             dataProvider: function (args) {
                                 var array1 =[];
                                 if (args.filterBy != null) {
@@ -7722,7 +7722,7 @@
                                     }
                                 });
                             },
-                            
+
                             actions: {
                                 add: {
                                     label: 'label.add.zone',
@@ -7745,7 +7745,7 @@
                                     }
                                 }
                             },
-                            
+
                             detailView: {
                                 isMaximized: true,
                                 actions: {
@@ -7793,7 +7793,7 @@
                                                 name: args.data.name,
                                                 vcenter: args.data.vcenter
                                             };
-                                            
+
                                             if (args.data.username != null && args.data.username.length > 0) {
                                                 $.extend(data, {
                                                     username: args.data.username
@@ -7804,7 +7804,7 @@
                                                     password: args.data.password
                                                 })
                                             }
-                                            
+
                                             $.ajax({
                                                 url: createURL('addVmwareDc'),
                                                 data: data,
@@ -7821,7 +7821,7 @@
                                             }
                                         }
                                     },
-                                    
+
                                     removeVmwareDc: {
                                         label: 'label.remove.vmware.datacenter',
                                         messages: {
@@ -7843,9 +7843,9 @@
                                                     delete args.context.physicalResources[0].vmwaredcName;
                                                     delete args.context.physicalResources[0].vmwaredcVcenter;
                                                     delete args.context.physicalResources[0].vmwaredcId;
-                                                    
+
                                                     selectedZoneObj = args.context.physicalResources[0];
-                                                    
+
                                                     args.response.success({
                                                         data: args.context.physicalResources[0]
                                                     });
@@ -7862,7 +7862,7 @@
                                             }
                                         }
                                     },
-                                    
+
                                     enable: {
                                         label: 'label.action.enable.zone',
                                         messages: {
@@ -7893,7 +7893,7 @@
                                             }
                                         }
                                     },
-                                    
+
                                     disable: {
                                         label: 'label.action.disable.zone',
                                         messages: {
@@ -7924,7 +7924,7 @@
                                             }
                                         }
                                     },
-                                    
+
                                     dedicateZone: {
                                         label: 'label.dedicate.zone',
                                         messages: {
@@ -7951,7 +7951,7 @@
                                                             success: function (json) {
                                                                 var domainObjs = json.listdomainsresponse.domain;
                                                                 var items =[];
-                                                                
+
                                                                 $(domainObjs).each(function () {
                                                                     items.push({
                                                                         id: this.id,
@@ -7983,7 +7983,7 @@
                                             var array2 =[];
                                             if (args.data.accountId != "")
                                             array2.push("&account=" + todb(args.data.accountId));
-                                            
+
                                             $.ajax({
                                                 url: createURL("dedicateZone&zoneId=" +
                                                 args.context.physicalResources[0].id +
@@ -8042,7 +8042,7 @@
                                             poll: pollAsyncJobResult
                                         }
                                     },
-                                    
+
                                     'remove': {
                                         label: 'label.action.delete.zone',
                                         messages: {
@@ -8087,11 +8087,11 @@
                                             //p6dns1 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
                                             array1.push("&ip6dns2=" + todb(args.data.ip6dns2));
                                             //ip6dns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
-                                            
+
                                             if (selectedZoneObj.networktype == "Advanced" && args.data.guestcidraddress) {
                                                 array1.push("&guestcidraddress=" + todb(args.data.guestcidraddress));
                                             }
-                                            
+
                                             array1.push("&internaldns1=" + todb(args.data.internaldns1));
                                             array1.push("&internaldns2=" + todb(args.data.internaldns2));
                                             //internaldns2 can be empty ("") when passed to API, so a user gets to update this field from an existing value to blank.
@@ -8117,14 +8117,14 @@
                                 tabs: {
                                     details: {
                                         title: 'label.details',
-                                        
+
                                         preFilter: function (args) {
                                             var hiddenFields =[];
                                             if (selectedZoneObj.networktype == "Basic")
                                             hiddenFields.push("guestcidraddress");
                                             return hiddenFields;
                                         },
-                                        
+
                                         fields:[ {
                                             name: {
                                                 label: 'label.zone',
@@ -8219,12 +8219,12 @@
                                                 },
                                                 success: function (json) {
                                                     selectedZoneObj = json.listzonesresponse.zone[0];
-                                                                                                                                                            
+
                                                     $(window).trigger('cloudStack.module.sharedFunctions.addExtraProperties', {
                                                     	obj: selectedZoneObj,
                                                     	objType: "Zone"
                                                     });
-                                                                                                        
+
                                                     $.ajax({
                                                         url: createURL('listDedicatedZones'),
                                                         data: {
@@ -8250,7 +8250,7 @@
                                                             }
                                                         }
                                                     });
-                                                    
+
                                                     $.ajax({
                                                         url: createURL('listApis'), //listVmwareDcs API only exists in non-oss bild, so have to check whether it exists before calling it.
                                                         data: {
@@ -8279,7 +8279,7 @@
                                                         }
                                                         //override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
                                                     });
-                                                   
+
                                                     args.response.success({
                                                         actionFilter: zoneActionfilter,
                                                         data: selectedZoneObj
@@ -8288,7 +8288,7 @@
                                             });
                                         }
                                     },
-                                    
+
                                     compute: {
                                         title: 'label.compute.and.storage',
                                         custom: cloudStack.uiCustom.systemChart('compute')
@@ -8301,7 +8301,7 @@
                                         title: 'label.resources',
                                         custom: cloudStack.uiCustom.systemChart('resources')
                                     },
-                                    
+
                                     systemVMs: {
                                         title: 'label.system.vms',
                                         listView: {
@@ -8349,7 +8349,7 @@
                                                         }
                                                     }
                                                 }
-                                                
+
                                                 var selectedZoneObj = args.context.physicalResources[0];
                                                 $.ajax({
                                                     url: createURL("listSystemVms&zoneid=" + selectedZoneObj.id + "&page=" + args.page + "&pagesize=" + pageSize + array1.join("")),
@@ -8364,7 +8364,7 @@
                                                     }
                                                 });
                                             },
-                                            
+
                                             detailView: {
                                                 noCompact: true,
                                                 name: 'label.system.vm.details',
@@ -8404,7 +8404,7 @@
                                                             poll: pollAsyncJobResult
                                                         }
                                                     },
-                                                    
+
                                                     stop: {
                                                         label: 'label.action.stop.systemvm',
                                                         messages: {
@@ -8440,7 +8440,7 @@
                                                             poll: pollAsyncJobResult
                                                         }
                                                     },
-                                                    
+
                                                     restart: {
                                                         label: 'label.action.reboot.systemvm',
                                                         messages: {
@@ -8476,7 +8476,7 @@
                                                             poll: pollAsyncJobResult
                                                         }
                                                     },
-                                                    
+
                                                     remove: {
                                                         label: 'label.action.destroy.system

<TRUNCATED>

Mime
View raw message