#NEWLINE# def _create_pci_devices( self ) : #NEWLINE# #INDENT# self . pci_tagged_devices = [ ] #NEWLINE# for dev in range ( 4 ) : #NEWLINE# #INDENT# pci_dev = { #NEWLINE# #INDENT# 'compute_node_id' : 1 , #NEWLINE# 'address' : ( '0000:0a:00.%d' % dev ) , #NEWLINE# 'vendor_id' : '1137' , #NEWLINE# 'product_id' : '0071' , #NEWLINE# 'status' : 'available' , #NEWLINE# 'request_id' : None , #NEWLINE# 'dev_type' : 'type-PCI' , #NEWLINE# 'parent_addr' : None , #NEWLINE# 'numa_node' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# self . pci_tagged_devices . append ( objects . PciDevice . create ( None , pci_dev ) ) #NEWLINE# #UNINDENT# self . pci_untagged_devices = [ ] #NEWLINE# for dev in range ( 3 ) : #NEWLINE# #INDENT# pci_dev = { #NEWLINE# #INDENT# 'compute_node_id' : 1 , #NEWLINE# 'address' : ( '0000:0b:00.%d' % dev ) , #NEWLINE# 'vendor_id' : '1137' , #NEWLINE# 'product_id' : '0072' , #NEWLINE# 'status' : 'available' , #NEWLINE# 'request_id' : None , #NEWLINE# 'dev_type' : 'type-PCI' , #NEWLINE# 'parent_addr' : None , #NEWLINE# 'numa_node' : 0 , #NEWLINE# #UNINDENT# } #NEWLINE# self . pci_untagged_devices . append ( objects . PciDevice . create ( None , pci_dev ) ) #NEWLINE# #UNINDENT# map ( self . pci_stats . add_device , self . pci_tagged_devices ) #NEWLINE# map ( self . pci_stats . add_device , self . pci_untagged_devices )