)]}'
{"nova_powervm/virt/powervm/host.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fe2c2b00e027da0f5935f654f11cce72fdb5b4c7","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_35e0f1cc","line":94,"range":{"start_line":93,"start_character":0,"end_line":94,"end_character":38},"updated":"2016-08-30 13:29:33.000000000","message":"This is where I would\u0027ve loved to have a iterator of a list of a list.  I hate this triple for loops.","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5156a4ae33ec4c88648e8bc85efef9240e49d39e","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_1422faa2","line":94,"range":{"start_line":93,"start_character":0,"end_line":94,"end_character":38},"in_reply_to":"fa7ab95a_0eb91a15","updated":"2016-08-30 17:42:13.000000000","message":"I don\u0027t think it applies here perse.\n\nBut I guess in pypowervm I\u0027d have it been\n\nms_wrap.asio_config.phys_ports\n\n\nWhere phys_ports is a wrapper that just does\n\n@property\ndef phys_ports\n    ret \u003d []\n    for adpt in self.sriov_adapters:\n        ret.extend(adpt.phys_ports)\n    return ret","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b78789a318a7cbc1d8b63aa87b3d2654ade576de","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_c5918554","line":94,"range":{"start_line":93,"start_character":0,"end_line":94,"end_character":38},"in_reply_to":"fa7ab95a_1422faa2","updated":"2016-08-31 13:30:23.000000000","message":"I see - hiding the iterators in @propertys.  Makes sense.\n\nThough in this case, [System \u003d\u003e I/O Config \u003d\u003e Physical Ports] would imply more than just SR-IOV.\n\nAlso, I actually need info from the adapter in this case - though I believe the datum I need is available from the port (port.sriov_adap_id).\n\nThinking it through, I wouldn\u0027t object to collapsing it even more, adding a sriov_pports @property to the Managed System itself.  I\u0027m already annoyed by the asio_config indirection every time I have to use it.  I just looked, and I\u0027ve actually got a backpointer from the physical port to the card that owns it - so a consumer could get everything they need.\n\nBut - future change sets.","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"aa1f823f3a8eaea8d59fe9a00b9a8531dfdaab24","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_0eb91a15","line":94,"range":{"start_line":93,"start_character":0,"end_line":94,"end_character":38},"in_reply_to":"fa7ab95a_35e0f1cc","updated":"2016-08-30 13:54:03.000000000","message":"Remind me how you would propose fixing this.","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fe2c2b00e027da0f5935f654f11cce72fdb5b4c7","unresolved":false,"context_lines":[{"line_number":84,"context_line":"             }"},{"line_number":85,"context_line":"    data[\"stats\"] \u003d stats"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    # Produce SR-IOV PCI data.  Devices are validated by virtue of the network"},{"line_number":88,"context_line":"    # name associated with their label, which must be cleared via an entry in"},{"line_number":89,"context_line":"    # the pci_passthrough_whitelist in the nova.conf.  Each Claim allocates a"},{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"},{"line_number":98,"context_line":"                # - physical_network must match the desired neutron network."},{"line_number":99,"context_line":"                # - address must be different for each \"device\"."},{"line_number":100,"context_line":"                net \u003d pport.label or \u0027default\u0027"},{"line_number":101,"context_line":"                # Generate a unique pseudo-address.  Note: This bears NO"},{"line_number":102,"context_line":"                # relation to a real physloc, DRC index, etc."},{"line_number":103,"context_line":"                addr \u003d \u0027*:%d:%d.%d\u0027, (sriov.sriov_adap_id, pport.port_id, vf)"},{"line_number":104,"context_line":"                LOG.debug(\"Registering SR-IOV pseudo-VF %s for network \u0027%s\u0027\","},{"line_number":105,"context_line":"                          (addr, net))"},{"line_number":106,"context_line":"                pci_devs.append({\"physical_network\": net,"},{"line_number":107,"context_line":"                                 \"label\": net,"},{"line_number":108,"context_line":"                                 \"dev_type\": fields.PciDeviceType.SRIOV_VF,"},{"line_number":109,"context_line":"                                 \"address\": addr,"},{"line_number":110,"context_line":"                                 \"parent_addr\": \"*:*:*.*\","},{"line_number":111,"context_line":"                                 \"vendor_id\": \"*\","},{"line_number":112,"context_line":"                                 \"product_id\": \"*\","},{"line_number":113,"context_line":"                                 \"numa_node\": 1})"},{"line_number":114,"context_line":"    data[\"pci_passthrough_devices\"] \u003d jsonutils.dumps(pci_devs)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    return data"},{"line_number":117,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_55957530","line":114,"range":{"start_line":87,"start_character":0,"end_line":114,"end_character":63},"updated":"2016-08-30 13:29:33.000000000","message":"Has the complexity of a method now.","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"aa1f823f3a8eaea8d59fe9a00b9a8531dfdaab24","unresolved":false,"context_lines":[{"line_number":84,"context_line":"             }"},{"line_number":85,"context_line":"    data[\"stats\"] \u003d stats"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    # Produce SR-IOV PCI data.  Devices are validated by virtue of the network"},{"line_number":88,"context_line":"    # name associated with their label, which must be cleared via an entry in"},{"line_number":89,"context_line":"    # the pci_passthrough_whitelist in the nova.conf.  Each Claim allocates a"},{"line_number":90,"context_line":"    # device and filters it from the list for subsequent claims; so we generate"},{"line_number":91,"context_line":"    # the maximum number of \"devices\" we could possible create on each port."},{"line_number":92,"context_line":"    pci_devs \u003d []"},{"line_number":93,"context_line":"    for sriov in ms_wrapper.asio_config.sriov_adapters:"},{"line_number":94,"context_line":"        for pport in sriov.phys_ports:"},{"line_number":95,"context_line":"            for vf in range(pport.supp_max_lps):"},{"line_number":96,"context_line":"                # These fields are all required in order to satisfy a Claim."},{"line_number":97,"context_line":"                # The ones whose values seem to matter:"},{"line_number":98,"context_line":"                # - physical_network must match the desired neutron network."},{"line_number":99,"context_line":"                # - address must be different for each \"device\"."},{"line_number":100,"context_line":"                net \u003d pport.label or \u0027default\u0027"},{"line_number":101,"context_line":"                # Generate a unique pseudo-address.  Note: This bears NO"},{"line_number":102,"context_line":"                # relation to a real physloc, DRC index, etc."},{"line_number":103,"context_line":"                addr \u003d \u0027*:%d:%d.%d\u0027, (sriov.sriov_adap_id, pport.port_id, vf)"},{"line_number":104,"context_line":"                LOG.debug(\"Registering SR-IOV pseudo-VF %s for network \u0027%s\u0027\","},{"line_number":105,"context_line":"                          (addr, net))"},{"line_number":106,"context_line":"                pci_devs.append({\"physical_network\": net,"},{"line_number":107,"context_line":"                                 \"label\": net,"},{"line_number":108,"context_line":"                                 \"dev_type\": fields.PciDeviceType.SRIOV_VF,"},{"line_number":109,"context_line":"                                 \"address\": addr,"},{"line_number":110,"context_line":"                                 \"parent_addr\": \"*:*:*.*\","},{"line_number":111,"context_line":"                                 \"vendor_id\": \"*\","},{"line_number":112,"context_line":"                                 \"product_id\": \"*\","},{"line_number":113,"context_line":"                                 \"numa_node\": 1})"},{"line_number":114,"context_line":"    data[\"pci_passthrough_devices\"] \u003d jsonutils.dumps(pci_devs)"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"    return data"},{"line_number":117,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_6e40e607","line":114,"range":{"start_line":87,"start_character":0,"end_line":114,"end_character":63},"in_reply_to":"fa7ab95a_55957530","updated":"2016-08-30 13:54:03.000000000","message":"Yuh; will extract.","commit_id":"e25228fb564341721adbf2af13e4f4b7ee54d8c0"}]}
