diff --git a/src/sunstone/public/js/plugins/vnets-tab.js b/src/sunstone/public/js/plugins/vnets-tab.js index 7d6f6de516..2fe282396c 100644 --- a/src/sunstone/public/js/plugins/vnets-tab.js +++ b/src/sunstone/public/js/plugins/vnets-tab.js @@ -302,13 +302,6 @@ function vnShow(req){ //returns an array with the VNET information fetched from the JSON object function vNetworkElementArray(vn_json){ var network = vn_json.VNET; - var total_leases = "0"; - - if (network.TOTAL_LEASES){ - total_leases = network.TOTAL_LEASES; - } else if (network.LEASES && network.LEASES.LEASE){ - total_leases = network.LEASES.LEASE.length ? network.LEASES.LEASE.length : "1"; - } return [ '', @@ -319,7 +312,7 @@ function vNetworkElementArray(vn_json){ parseInt(network.TYPE) ? "FIXED" : "RANGED", network.BRIDGE, parseInt(network.PUBLIC) ? "yes" : "no", - total_leases ]; + network.TOTAL_LEASES ]; } @@ -411,18 +404,14 @@ function updateVNetworkInfo(request,vn){
Leases information |
---|