3
from hwtest.pci import get_pci_devices
4
from hwtest.pci_ids import get_class, get_device
7
devices = get_pci_devices()
8
network_devices = filter(
9
lambda x: get_class(x["class_name"]) == "Network controller",
11
network_strings = map(
12
lambda x: get_device(x["vendor"], x["device"]),
15
print "\n".join(network_strings)