def get_all_bw_counters(self):
        """Return running bandwidth counter for each interface on each
           running VM.
        """
        counters = vm_utils.fetch_bandwidth(self._session)
        bw = {}
        for vm_ref, vm_rec in vm_utils.list_vms(self._session):
            vif_map = self._get_vif_device_map(vm_rec)
            name = vm_rec['name_label']
            if 'nova_uuid' not in vm_rec['other_config']:
                continue
            dom = vm_rec.get('domid')
            if dom is None or counters not in dom:
                continue
            vifs_bw = bw.setdefault(name, {})
            for vif_num, vif_data in six.iteritems(counters[dom]):
                mac = vif_map[vif_num]
                vif_data['mac_address'] = mac
                vifs_bw[mac] = vif_data
        return bw
dataset/ETHPy150Open openstack/nova/nova/virt/xenapi/vmops.py/VMOps.get_all_bw_counters/swapped operands of `not in`