From 4afb6bb7562538f110f980cb94459a3c2caf7e54 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Wed, 4 Feb 2015 18:59:13 +0100 Subject: [PATCH] Bug #3556: Enable network functionality for vCenter VMs in Sunstone --- src/sunstone/public/js/plugins/vms-tab.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index b4eb4ed8fd..7f465e8eb4 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -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 ='
\
\
\ @@ -2154,7 +2160,8 @@ function printNics(vm_info){
\
'; - 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 += '\
\