def _get_device_counters(self, device):
r = re.compile('/ctr[0-9]+$', flags=re.IGNORECASE)
co_phys_chan_names = [c.name for c in device.co_physical_chans]
return list(filter(r.search, co_phys_chan_names))
文章目录