From: mirabal Date: Thu, 18 May 2017 14:37:24 +0000 (+0200) Subject: fix bug, Bandwith showed wrong listing a VM X-Git-Tag: v2.0.1~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=0c5d424eae19c10fa2bc822267ddc9e8a9dd762e;p=osm%2Fopenvim.git fix bug, Bandwith showed wrong listing a VM Change-Id: I8f0ea2b90612934a7399123b1a5355d8c94d3a49 Signed-off-by: mirabal --- diff --git a/osm_openvim/vim_db.py b/osm_openvim/vim_db.py index f69c305..b034342 100644 --- a/osm_openvim/vim_db.py +++ b/osm_openvim/vim_db.py @@ -1126,7 +1126,7 @@ class vim_db(): #get dedicated ports and SRIOV cmd = "SELECT port_id as iface_id, p.vlan as vlan, p.mac as mac_address, net_id, if(model='PF',\ - 'yes',if(model='VF','no','yes:sriov')) as dedicated, rp.Mbps as bandwidth, name, vpci, \ + 'yes',if(model='VF','no','yes:sriov')) as dedicated, p.Mbps as bandwidth, name, vpci, \ pci as source \ FROM resources_port as rp join ports as p on port_id=uuid WHERE p.instance_id = '%s' AND numa_id = '%s' and p.type='instance:data'" % (instance_id, numa_id) self.logger.debug(cmd)