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

This commit is contained in:
Tino Vazquez committed 2015-02-04 18:59:13 +01:00
1 parent 3ba36da624
commit 4afb6bb756
1 file changed
+8 -1
+8 -1
View File
@@ -2029,6 +2029,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">\
@@ -2154,7 +2160,8 @@ function printNics(vm_info){
</div>\
</div>';
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">\