1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-27 10:50:10 +03:00

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

(cherry picked from commit 4afb6bb7562538f110f980cb94459a3c2caf7e54)
This commit is contained in:
Tino Vazquez 2015-02-04 18:59:13 +01:00
parent 2706e3f546
commit e8d6d1c252

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">\