Bug #3556: Enable network functionality for vCenter VMs in Sunstone

(cherry picked from commit 4afb6bb756)
This commit is contained in:
Tino Vazquez committed 2015-02-04 19:03:49 +01:00
1 parent 2706e3f546
commit e8d6d1c252
1 file changed
+8 -1
+8 -1
View File
@@ -2105,6 +2105,12 @@ function printNics(vm_info){
var isHybrid = calculate_isHybrid(vm_info);
// vCenter has network capabilities
if (vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() == "vcenter")
{
isHybrid = false;
}
var html ='<form id="tab_network_form" vmid="'+vm_info.ID+'" >\
<div class="row">\
<div class="large-12 columns">\
@@ -2248,7 +2254,8 @@ function printNics(vm_info){
$("#vms-tab").data("nic_dt_data", nic_dt_data);
}
if (!isHybrid)
// Do not show statistics for not hypervisors that do not gather net data
if (!isHybrid && vm_info.USER_TEMPLATE.HYPERVISOR.toLowerCase() != "vcenter")
{
html += '\
<div class="row">\