)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Mechanism driver for powervm SR-IOV interface"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A new mechanism driver is included in this patchset. This has a"},{"line_number":10,"context_line":"corresponding SR-IOV agent implementation as well."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Implements: bp/powervm-sriov"},{"line_number":13,"context_line":"Change-Id: I87f6ed095d62afe4c683c2688fa27ddf367a19f6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"dada55a8_c290d1ef","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":50},"updated":"2016-07-26 23:22:34.000000000","message":"Expand?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Mechanism driver for powervm SR-IOV interface"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A new mechanism driver is included in this patchset. This has a"},{"line_number":10,"context_line":"corresponding SR-IOV agent implementation as well."},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"Implements: bp/powervm-sriov"},{"line_number":13,"context_line":"Change-Id: I87f6ed095d62afe4c683c2688fa27ddf367a19f6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"bacf61ea_80fa5f41","line":10,"range":{"start_line":9,"start_character":0,"end_line":10,"end_character":50},"in_reply_to":"dada55a8_c290d1ef","updated":"2016-08-01 02:17:28.000000000","message":"I will add a detailed text here.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":19,"context_line":"To do this, check_segment_for_agent method is used by"},{"line_number":20,"context_line":"try_to_bind_segement_for_agent. Under the covers, mappings"},{"line_number":21,"context_line":"from agent is matched with physical network attribute of segment."},{"line_number":22,"context_line":"This mechanism driver also provides vlan information during binding"},{"line_number":23,"context_line":"to vif plug mechanism on nova side. To do this, this mechanism driver"},{"line_number":24,"context_line":"provides binding:vif_details with vlan id. On nova side, during"},{"line_number":25,"context_line":"vif plug operation, vlan can be retrieved from [\u0027details\u0027][\u0027vlan\u0027]"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bacf61ea_0c404c33","line":22,"updated":"2016-08-01 15:32:54.000000000","message":"New paragraph?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":23,"context_line":"to vif plug mechanism on nova side. To do this, this mechanism driver"},{"line_number":24,"context_line":"provides binding:vif_details with vlan id. On nova side, during"},{"line_number":25,"context_line":"vif plug operation, vlan can be retrieved from [\u0027details\u0027][\u0027vlan\u0027]"},{"line_number":26,"context_line":"attribute of vif."},{"line_number":27,"context_line":"This patchset also includes changes to setup.cfg. A console script"},{"line_number":28,"context_line":"driver to setup networking-powervm-sriov-agent along with its sea"},{"line_number":29,"context_line":"counterpart."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bacf61ea_51a5bb44","line":26,"updated":"2016-08-01 15:32:54.000000000","message":"Can you put spaces in between new paragraphs?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":26,"context_line":"attribute of vif."},{"line_number":27,"context_line":"This patchset also includes changes to setup.cfg. A console script"},{"line_number":28,"context_line":"driver to setup networking-powervm-sriov-agent along with its sea"},{"line_number":29,"context_line":"counterpart."},{"line_number":30,"context_line":"setup.cfg changes also include Mechanism driver setup in ml2.conf"},{"line_number":31,"context_line":"and entry_points.txt file in runtime environment."},{"line_number":32,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bacf61ea_9169f3fb","line":29,"updated":"2016-08-01 15:32:54.000000000","message":"An extra space here?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":27,"context_line":"This patchset also includes changes to setup.cfg. A console script"},{"line_number":28,"context_line":"driver to setup networking-powervm-sriov-agent along with its sea"},{"line_number":29,"context_line":"counterpart."},{"line_number":30,"context_line":"setup.cfg changes also include Mechanism driver setup in ml2.conf"},{"line_number":31,"context_line":"and entry_points.txt file in runtime environment."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Implements: bp/powervm-sriov"},{"line_number":34,"context_line":"Change-Id: I87f6ed095d62afe4c683c2688fa27ddf367a19f6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bacf61ea_3162c70a","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":49},"updated":"2016-08-01 15:32:54.000000000","message":"Documentation updates are going to be handled in this patch set, separate or?\n\nWhat about the devstack scripting updates?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":27,"context_line":"This patchset also includes changes to setup.cfg. A console script"},{"line_number":28,"context_line":"driver to setup networking-powervm-sriov-agent along with its sea"},{"line_number":29,"context_line":"counterpart."},{"line_number":30,"context_line":"setup.cfg changes also include Mechanism driver setup in ml2.conf"},{"line_number":31,"context_line":"and entry_points.txt file in runtime environment."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"Implements: bp/powervm-sriov"},{"line_number":34,"context_line":"Change-Id: I87f6ed095d62afe4c683c2688fa27ddf367a19f6"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bacf61ea_2e59818f","line":31,"range":{"start_line":30,"start_character":0,"end_line":31,"end_character":49},"in_reply_to":"bacf61ea_3162c70a","updated":"2016-08-02 16:53:58.000000000","message":"I have included changes in setup.cfg. Are there other scripting changes? If so, I will do them in next patchset including documentation.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"}],"devstack/settings":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d78a2274647555d5f205656c42b09e98968628b0","unresolved":false,"context_lines":[{"line_number":5,"context_line":"if is_service_enabled n-cpu ; then"},{"line_number":6,"context_line":"    if [[ \"$VIRT_DRIVER\" \u003d \u0027powervm\u0027 ]]; then"},{"line_number":7,"context_line":"        enable_service pvm-q-sea-agt"},{"line_number":8,"context_line":"        enable_service pvm-q-sriov-agt"},{"line_number":9,"context_line":"    fi"},{"line_number":10,"context_line":"fi"},{"line_number":11,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":18,"id":"3ac371cc_05a9fedf","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":38},"updated":"2016-08-19 00:22:29.000000000","message":"I assume of course that the agent will run without issue even if no SR-IOV cards on the system.","commit_id":"a99725fe04af13c4502e80cb9cb30cfd704fb188"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"c89e2e30d1e78ea4a523e7b3c3d5f000d77b1cb4","unresolved":false,"context_lines":[{"line_number":5,"context_line":"if is_service_enabled n-cpu ; then"},{"line_number":6,"context_line":"    if [[ \"$VIRT_DRIVER\" \u003d \u0027powervm\u0027 ]]; then"},{"line_number":7,"context_line":"        enable_service pvm-q-sea-agt"},{"line_number":8,"context_line":"        enable_service pvm-q-sriov-agt"},{"line_number":9,"context_line":"    fi"},{"line_number":10,"context_line":"fi"},{"line_number":11,"context_line":""}],"source_content_type":"application/octet-stream","patch_set":18,"id":"3ac371cc_8baa1584","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":38},"in_reply_to":"3ac371cc_05a9fedf","updated":"2016-08-19 07:28:02.000000000","message":"Yes, it should.","commit_id":"a99725fe04af13c4502e80cb9cb30cfd704fb188"}],"doc/source/devref/usage.rst":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a021a2f10c803c0e356c637e5ded92fee94051e4","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  pvmctl sriov update --loc U78C9.001.WZS094N-P1-C7-T2 -s label\u003dprod_net"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Any un-labeled SR-IOV physical ports will be assumed to belong to the"},{"line_number":42,"context_line":"\u0027default\u0027 network."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"The operator does not need to add VLANs; those will be managed by the"},{"line_number":45,"context_line":"networking-powervm agent directly."}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_fdbb8b0c","line":42,"updated":"2016-08-08 20:57:23.000000000","message":"belong to the \u0027default\u0027 neutron physical network.","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ae6f3c8033ab0128a3bf93fb5a21d0fcb4beba6b","unresolved":false,"context_lines":[{"line_number":39,"context_line":"  pvmctl sriov update --loc U78C9.001.WZS094N-P1-C7-T2 -s label\u003dprod_net"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"Any un-labeled SR-IOV physical ports will be assumed to belong to the"},{"line_number":42,"context_line":"\u0027default\u0027 network."},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"The operator does not need to add VLANs; those will be managed by the"},{"line_number":45,"context_line":"networking-powervm agent directly."}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_589585e2","line":42,"in_reply_to":"9ad45d7e_fdbb8b0c","updated":"2016-08-08 21:53:14.000000000","message":"Done","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a021a2f10c803c0e356c637e5ded92fee94051e4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"|                                      | will clean up VLANs to improve the overall system          |"},{"line_number":84,"context_line":"|                                      | performance (by reducing broadcast domain).  Will only     |"},{"line_number":85,"context_line":"|                                      | apply to VLANs not on the primary PowerVM virtual Ethernet |"},{"line_number":86,"context_line":"|                                      | adapter of the SEA.                                        |"},{"line_number":87,"context_line":"+--------------------------------------+------------------------------------------------------------+"},{"line_number":88,"context_line":"| vnic_required_vfs \u003d 2                | (Integer) Redundancy level for the vNIC created to back    |"},{"line_number":89,"context_line":"|                                      | an SR-IOV port.  The value represents the number of SR-IOV |"}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_fd526bdc","line":86,"updated":"2016-08-08 20:57:23.000000000","message":"Should we separate these based off of Agent Type they use?  Add a column or something?","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ae6f3c8033ab0128a3bf93fb5a21d0fcb4beba6b","unresolved":false,"context_lines":[{"line_number":83,"context_line":"|                                      | will clean up VLANs to improve the overall system          |"},{"line_number":84,"context_line":"|                                      | performance (by reducing broadcast domain).  Will only     |"},{"line_number":85,"context_line":"|                                      | apply to VLANs not on the primary PowerVM virtual Ethernet |"},{"line_number":86,"context_line":"|                                      | adapter of the SEA.                                        |"},{"line_number":87,"context_line":"+--------------------------------------+------------------------------------------------------------+"},{"line_number":88,"context_line":"| vnic_required_vfs \u003d 2                | (Integer) Redundancy level for the vNIC created to back    |"},{"line_number":89,"context_line":"|                                      | an SR-IOV port.  The value represents the number of SR-IOV |"}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_6cb40ef2","line":86,"in_reply_to":"9ad45d7e_fd526bdc","updated":"2016-08-08 21:53:14.000000000","message":"Done","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a021a2f10c803c0e356c637e5ded92fee94051e4","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  neutron port-create --vnic-type direct $netid -- --binding:profile type\u003ddict {key\u003dvalue ...}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Supported tunables are as follows:"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"+---------------------+-----------------------------------------------------------------------------+"},{"line_number":112,"context_line":"| binding:profile key | Description                                                                 |"}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_fd00abac","line":109,"range":{"start_line":109,"start_character":0,"end_line":109,"end_character":34},"updated":"2016-08-08 20:57:23.000000000","message":"Lets describe the behavior if these are not specified.  Not immediately clear, its in two places at the moment.\n\nI know from our conversations the conf is the \u0027default\u0027 value.","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2c7fdd4baf3c59c13afa884c0a28e502f588ad2c","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  neutron port-create --vnic-type direct $netid -- --binding:profile type\u003ddict {key\u003dvalue ...}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Supported tunables are as follows:"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"+---------------------+-----------------------------------------------------------------------------+"},{"line_number":112,"context_line":"| binding:profile key | Description                                                                 |"}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_45a47d56","line":109,"range":{"start_line":109,"start_character":0,"end_line":109,"end_character":34},"in_reply_to":"9ad45d7e_98b6dd88","updated":"2016-08-08 23:30:33.000000000","message":"Nah, rereading it looks fine.","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ae6f3c8033ab0128a3bf93fb5a21d0fcb4beba6b","unresolved":false,"context_lines":[{"line_number":106,"context_line":""},{"line_number":107,"context_line":"  neutron port-create --vnic-type direct $netid -- --binding:profile type\u003ddict {key\u003dvalue ...}"},{"line_number":108,"context_line":""},{"line_number":109,"context_line":"Supported tunables are as follows:"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"+---------------------+-----------------------------------------------------------------------------+"},{"line_number":112,"context_line":"| binding:profile key | Description                                                                 |"}],"source_content_type":"text/x-rst","patch_set":13,"id":"9ad45d7e_98b6dd88","line":109,"range":{"start_line":109,"start_character":0,"end_line":109,"end_character":34},"in_reply_to":"9ad45d7e_fd00abac","updated":"2016-08-08 21:53:14.000000000","message":"Each key has a statement of behavior if not specified (last sentence of each description).  Were you looking for something else?","commit_id":"b86ba2e2e626e4bef81949fdb3c1a5619555b58d"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2a50a2a63ad518ac6e8af53ee3bd9afc8c8133c5","unresolved":false,"context_lines":[{"line_number":69,"context_line":"``/etc/nova/nova.conf``).  For example, to authorize networks named ``default``"},{"line_number":70,"context_line":"and ``prod_net``, include the following in the nova configuration file::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  [DEFAULT]"},{"line_number":73,"context_line":"  pci_passthrough_whitelist \u003d [{\"physical_network\": \"default\"}, {\"physical_network\": \"prod_net\"}]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Optional Configuration"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3ac371cc_f4ab4873","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":97},"updated":"2016-08-16 23:04:37.000000000","message":"We will likely want to co-document this over in our nova-powervm.","commit_id":"53bb0a4439a8568946da8db053beb5bcf69f9905"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"c983a3aa6847a1de591ae35c7b2a42eda934e9c6","unresolved":false,"context_lines":[{"line_number":69,"context_line":"``/etc/nova/nova.conf``).  For example, to authorize networks named ``default``"},{"line_number":70,"context_line":"and ``prod_net``, include the following in the nova configuration file::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  [DEFAULT]"},{"line_number":73,"context_line":"  pci_passthrough_whitelist \u003d [{\"physical_network\": \"default\"}, {\"physical_network\": \"prod_net\"}]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Optional Configuration"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3ac371cc_453db6ba","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":97},"in_reply_to":"3ac371cc_41930a5b","updated":"2016-08-19 00:18:23.000000000","message":"Even if its a reference to this documentation...I\u0027m OK with that.\n\nThe long term plan is to do pci passthrough of other devices too...so when that doc lands it\u0027d be more nova centric.","commit_id":"53bb0a4439a8568946da8db053beb5bcf69f9905"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"7956212581ae9ab112ce07bb628b20f011054488","unresolved":false,"context_lines":[{"line_number":69,"context_line":"``/etc/nova/nova.conf``).  For example, to authorize networks named ``default``"},{"line_number":70,"context_line":"and ``prod_net``, include the following in the nova configuration file::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  [DEFAULT]"},{"line_number":73,"context_line":"  pci_passthrough_whitelist \u003d [{\"physical_network\": \"default\"}, {\"physical_network\": \"prod_net\"}]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Optional Configuration"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3ac371cc_eba62952","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":97},"in_reply_to":"3ac371cc_453db6ba","updated":"2016-08-19 07:28:51.000000000","message":"Done.  (Relies on https://review.openstack.org/356619 for the link to start working.)","commit_id":"53bb0a4439a8568946da8db053beb5bcf69f9905"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2fdebb7e832fa2020ce78dd33074f1c9d7980f4b","unresolved":false,"context_lines":[{"line_number":69,"context_line":"``/etc/nova/nova.conf``).  For example, to authorize networks named ``default``"},{"line_number":70,"context_line":"and ``prod_net``, include the following in the nova configuration file::"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"  [DEFAULT]"},{"line_number":73,"context_line":"  pci_passthrough_whitelist \u003d [{\"physical_network\": \"default\"}, {\"physical_network\": \"prod_net\"}]"},{"line_number":74,"context_line":""},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"Optional Configuration"}],"source_content_type":"text/x-rst","patch_set":17,"id":"3ac371cc_41930a5b","line":73,"range":{"start_line":72,"start_character":0,"end_line":73,"end_character":97},"in_reply_to":"3ac371cc_f4ab4873","updated":"2016-08-18 14:52:16.000000000","message":"Yeah, I thought about that, but it doesn\u0027t do you any good without the port update stuff above, and it\u0027s n/a unless you activate the mech driver as documented above.  I agree we should say *something* in the nova-powervm devref; let\u0027s discuss how best to present it.","commit_id":"53bb0a4439a8568946da8db053beb5bcf69f9905"}],"networking_powervm/plugins/ibm/agent/powervm/agent_base.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4ccfb69cfa955dfa8e92b7de979af3261916b351","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            \u0027configurations\u0027: {\u0027bridge_mappings\u0027: self.br_map},"},{"line_number":262,"context_line":"            \u0027agent_type\u0027: agent_type,"},{"line_number":263,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":264,"context_line":"        self.customize_agent_state()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        # A list of ports that maintains the list of current \u0027modified\u0027 ports"},{"line_number":267,"context_line":"        self.updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_ca171f43","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":36},"updated":"2016-08-11 20:20:21.000000000","message":"Should this just be an init?  Why wouldn\u0027t a subclass just call this after their general init?","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"12bf19a631a09411bfcd7890e278a57979d070ac","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            \u0027configurations\u0027: {\u0027bridge_mappings\u0027: self.br_map},"},{"line_number":262,"context_line":"            \u0027agent_type\u0027: agent_type,"},{"line_number":263,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":264,"context_line":"        self.customize_agent_state()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        # A list of ports that maintains the list of current \u0027modified\u0027 ports"},{"line_number":267,"context_line":"        self.updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_76d98783","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":36},"in_reply_to":"9ad45d7e_586c7208","updated":"2016-08-12 16:00:08.000000000","message":"Its just yet another method that gets called at init that the child should implement.\n\nIts not a big deal, but I like questioning it.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"7772bc7649779c24bf8624207da8560b7e4ee6f7","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            \u0027configurations\u0027: {\u0027bridge_mappings\u0027: self.br_map},"},{"line_number":262,"context_line":"            \u0027agent_type\u0027: agent_type,"},{"line_number":263,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":264,"context_line":"        self.customize_agent_state()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        # A list of ports that maintains the list of current \u0027modified\u0027 ports"},{"line_number":267,"context_line":"        self.updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_e5e66343","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":36},"in_reply_to":"9ad45d7e_8ee1899d","updated":"2016-08-12 15:22:18.000000000","message":"Couldn\u0027t that just be part of the setup_rpc?","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6fba526723ff062cb357008370cac96ddb128840","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            \u0027configurations\u0027: {\u0027bridge_mappings\u0027: self.br_map},"},{"line_number":262,"context_line":"            \u0027agent_type\u0027: agent_type,"},{"line_number":263,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":264,"context_line":"        self.customize_agent_state()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        # A list of ports that maintains the list of current \u0027modified\u0027 ports"},{"line_number":267,"context_line":"        self.updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_8ee1899d","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":36},"in_reply_to":"9ad45d7e_ca171f43","updated":"2016-08-12 15:12:01.000000000","message":"Because it needs to happen in the middle of init - in particular, before setup_rpc(), because that guy uses the customized agent_state info.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"dcff1145748e172a208728e5f6d440805e085529","unresolved":false,"context_lines":[{"line_number":261,"context_line":"            \u0027configurations\u0027: {\u0027bridge_mappings\u0027: self.br_map},"},{"line_number":262,"context_line":"            \u0027agent_type\u0027: agent_type,"},{"line_number":263,"context_line":"            \u0027start_flag\u0027: True}"},{"line_number":264,"context_line":"        self.customize_agent_state()"},{"line_number":265,"context_line":""},{"line_number":266,"context_line":"        # A list of ports that maintains the list of current \u0027modified\u0027 ports"},{"line_number":267,"context_line":"        self.updated_ports \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_586c7208","line":264,"range":{"start_line":264,"start_character":8,"end_line":264,"end_character":36},"in_reply_to":"9ad45d7e_e5e66343","updated":"2016-08-12 15:56:16.000000000","message":"It could, but a) then I would have to override setup_rpc instead - sixes; and b) I prefer keeping all the agent state stuff close together.\n\nI think I missing why you\u0027re not comfortable with this being here.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"}],"networking_powervm/plugins/ibm/agent/powervm/constants.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":18,"context_line":"VIF_TYPE_PVM_SEA \u003d \u0027pvm_sea\u0027"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"AGENT_TYPE_PVM_SRIOV \u003d \u0027PowerVM SR-IOV Ethernet agent\u0027"},{"line_number":21,"context_line":"VIF_TYPE_PVM_SRIOV \u003d \u0027pvm_vnic\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_e2c195e5","line":21,"range":{"start_line":21,"start_character":22,"end_line":21,"end_character":30},"updated":"2016-07-26 23:22:34.000000000","message":"Is this the same type (just with pvm_) as SR-IOV for KVM?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":18,"context_line":"VIF_TYPE_PVM_SEA \u003d \u0027pvm_sea\u0027"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"AGENT_TYPE_PVM_SRIOV \u003d \u0027PowerVM SR-IOV Ethernet agent\u0027"},{"line_number":21,"context_line":"VIF_TYPE_PVM_SRIOV \u003d \u0027pvm_vnic\u0027"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_9c034a42","line":21,"range":{"start_line":21,"start_character":22,"end_line":21,"end_character":30},"in_reply_to":"dada55a8_e2c195e5","updated":"2016-08-01 02:17:28.000000000","message":"No. I will modify it to pvm_sriov as discussed.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"}],"networking_powervm/plugins/ibm/agent/powervm/exceptions.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"},{"line_number":43,"context_line":"    \"\"\"Method was invoked for unsupported network type.\"\"\""},{"line_number":44,"context_line":"    message \u003d _LE(\u0027Unsupported network type %(net_type)s.\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_4c5084d4","line":44,"range":{"start_line":44,"start_character":14,"end_line":44,"end_character":59},"updated":"2016-08-01 15:32:54.000000000","message":"What should the user do if they encounter this?  Can we add some extra information that the operator may find useful?\n\nI know debugging vif binding issues is super complicated and a better error message that tells me why its failing would help.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":41,"context_line":""},{"line_number":42,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"},{"line_number":43,"context_line":"    \"\"\"Method was invoked for unsupported network type.\"\"\""},{"line_number":44,"context_line":"    message \u003d _LE(\u0027Unsupported network type %(net_type)s.\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_f929f838","line":44,"range":{"start_line":44,"start_character":14,"end_line":44,"end_character":59},"in_reply_to":"bacf61ea_4c5084d4","updated":"2016-08-02 16:53:58.000000000","message":"I have removed this class entirely.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"}],"networking_powervm/plugins/ibm/agent/powervm/sea_agent.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    @property"},{"line_number":246,"context_line":"    def agent_id(self):"},{"line_number":247,"context_line":"        return \u0027sea-agent-%s\u0027 % cfg.CONF.host"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def __init__(self):"},{"line_number":250,"context_line":"        \"\"\"Constructs the agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_f790ccee","line":247,"updated":"2016-08-08 20:53:48.000000000","message":"pvm- ?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b27a1761bbccf8989e2f107c50cdfc74813487f1","unresolved":false,"context_lines":[{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    @property"},{"line_number":246,"context_line":"    def agent_id(self):"},{"line_number":247,"context_line":"        return \u0027sea-agent-%s\u0027 % cfg.CONF.host"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def __init__(self):"},{"line_number":250,"context_line":"        \"\"\"Constructs the agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_c21cf5c3","line":247,"in_reply_to":"9ad45d7e_5da1f7a8","updated":"2016-08-12 15:18:29.000000000","message":"Nope","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":244,"context_line":""},{"line_number":245,"context_line":"    @property"},{"line_number":246,"context_line":"    def agent_id(self):"},{"line_number":247,"context_line":"        return \u0027sea-agent-%s\u0027 % cfg.CONF.host"},{"line_number":248,"context_line":""},{"line_number":249,"context_line":"    def __init__(self):"},{"line_number":250,"context_line":"        \"\"\"Constructs the agent.\"\"\""}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_5da1f7a8","line":247,"in_reply_to":"9ad45d7e_f790ccee","updated":"2016-08-08 21:31:32.000000000","message":"Ported directly from base rev of agent_base.  Want me to change it?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"}],"networking_powervm/plugins/ibm/agent/powervm/sriov_agent.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"8a92f2c05a3ee025e9a612b91d561b0874200209","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"dada55a8_e48c4581","updated":"2016-07-19 22:44:27.000000000","message":"Lots of duplicated code in here, which should be refactored into agent_base.py.  Anything SEA-specific should then be subclassed in sea_agent; and anything SR-IOV-specific should be subclassed here.","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"7da0aa594138d7b993c7797753d78353a0ee6d88","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":2,"id":"dada55a8_653526da","in_reply_to":"dada55a8_e48c4581","updated":"2016-07-24 13:57:06.000000000","message":"Removed duplicated code except setup_rpc as it required a unique agent id.","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                                                 device[\u0027device\u0027],"},{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            # TODO(svr_ports) Get a list of vNICs from all servers and mark up."},{"line_number":109,"context_line":"            # Do we need to do this?"},{"line_number":110,"context_line":"            continue"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_2c76f06f","line":108,"range":{"start_line":108,"start_character":19,"end_line":108,"end_character":28},"updated":"2016-08-01 15:32:54.000000000","message":"This should be your user name.\n\n# TODO(svenkat) xxxx","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                                                 device[\u0027device\u0027],"},{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            # TODO(svr_ports) Get a list of vNICs from all servers and mark up."},{"line_number":109,"context_line":"            # Do we need to do this?"},{"line_number":110,"context_line":"            continue"},{"line_number":111,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_d9023472","line":108,"range":{"start_line":108,"start_character":19,"end_line":108,"end_character":28},"in_reply_to":"bacf61ea_2c76f06f","updated":"2016-08-02 16:53:58.000000000","message":"I have removed this.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            # TODO(svr_ports) Get a list of vNICs from all servers and mark up."},{"line_number":109,"context_line":"            # Do we need to do this?"},{"line_number":110,"context_line":"            continue"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"def main():"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_6c6c689c","line":110,"range":{"start_line":109,"start_character":0,"end_line":110,"end_character":20},"updated":"2016-08-01 15:32:54.000000000","message":"no?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            # TODO(svr_ports) Get a list of vNICs from all servers and mark up."},{"line_number":109,"context_line":"            # Do we need to do this?"},{"line_number":110,"context_line":"            continue"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"def main():"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_b9078080","line":110,"range":{"start_line":109,"start_character":0,"end_line":110,"end_character":20},"in_reply_to":"bacf61ea_6c6c689c","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"class SRIOVNeutronAgent(agent_base.BasePVMNeutronAgent):"},{"line_number":44,"context_line":"    \"\"\""},{"line_number":45,"context_line":"    Provides VLAN networks for the PowerVM platform that run accross the"},{"line_number":46,"context_line":"    SRIOV network within the Virtual I/O Servers in the form of vNIC.  Designed"},{"line_number":47,"context_line":"    to be compatible with the ML2 Neutron Plugin."},{"line_number":48,"context_line":"    \"\"\""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_e719407b","line":46,"range":{"start_line":45,"start_character":61,"end_line":46,"end_character":17},"updated":"2016-08-02 22:06:14.000000000","message":"through shared-mode SR-IOV adapters","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"class SRIOVNeutronAgent(agent_base.BasePVMNeutronAgent):"},{"line_number":44,"context_line":"    \"\"\""},{"line_number":45,"context_line":"    Provides VLAN networks for the PowerVM platform that run accross the"},{"line_number":46,"context_line":"    SRIOV network within the Virtual I/O Servers in the form of vNIC.  Designed"},{"line_number":47,"context_line":"    to be compatible with the ML2 Neutron Plugin."},{"line_number":48,"context_line":"    \"\"\""},{"line_number":49,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_71fcb83e","line":46,"range":{"start_line":45,"start_character":61,"end_line":46,"end_character":17},"in_reply_to":"bacf61ea_e719407b","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def parse_bridge_mappings(self):"},{"line_number":58,"context_line":"        return utils.parse_sriov_mappings(self.adapter)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def setup_rpc(self):"},{"line_number":61,"context_line":"        \"\"\"Registers the RPC consumers for the plugin.\"\"\""},{"line_number":62,"context_line":"        self.agent_id \u003d \u0027sriov-agent-%s\u0027 % cfg.CONF.host"},{"line_number":63,"context_line":"        self.topic \u003d topics.AGENT"},{"line_number":64,"context_line":"        self.plugin_rpc \u003d agent_base.PVMPluginApi(topics.PLUGIN)"},{"line_number":65,"context_line":"        self.state_rpc \u003d agent_rpc.PluginReportStateAPI(topics.PLUGIN)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        self.context \u003d ctx.get_admin_context_without_session()"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        # Defines what will be listening for incoming events from the"},{"line_number":70,"context_line":"        # controller."},{"line_number":71,"context_line":"        self.endpoints \u003d [agent_base.PVMRpcCallbacks(self)]"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        # Define the listening consumers for the agent.  ML2 only supports"},{"line_number":74,"context_line":"        # these two update types."},{"line_number":75,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":76,"context_line":"                     [topics.NETWORK, topics.DELETE]]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.connection \u003d agent_rpc.create_consumers(self.endpoints,"},{"line_number":79,"context_line":"                                                     self.topic,"},{"line_number":80,"context_line":"                                                     consumers)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Report interval is for the agent health check."},{"line_number":83,"context_line":"        report_interval \u003d cfg.CONF.AGENT.report_interval"},{"line_number":84,"context_line":"        if report_interval:"},{"line_number":85,"context_line":"            hb \u003d loopingcall.FixedIntervalLoopingCall(self._report_state)"},{"line_number":86,"context_line":"            hb.start(interval\u003dreport_interval)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_076294d8","line":86,"range":{"start_line":60,"start_character":0,"end_line":86,"end_character":46},"updated":"2016-08-02 22:06:14.000000000","message":"From what I can see, this method is identical to the parent class except for the agent_id, so should be consolidated.\n\nThat is, the parent class method should have all of the code, but not be sea/sriov specific; and that piece of the string should be passed in (or derived from an instance attr or polymorphic @property).","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":57,"context_line":"    def parse_bridge_mappings(self):"},{"line_number":58,"context_line":"        return utils.parse_sriov_mappings(self.adapter)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    def setup_rpc(self):"},{"line_number":61,"context_line":"        \"\"\"Registers the RPC consumers for the plugin.\"\"\""},{"line_number":62,"context_line":"        self.agent_id \u003d \u0027sriov-agent-%s\u0027 % cfg.CONF.host"},{"line_number":63,"context_line":"        self.topic \u003d topics.AGENT"},{"line_number":64,"context_line":"        self.plugin_rpc \u003d agent_base.PVMPluginApi(topics.PLUGIN)"},{"line_number":65,"context_line":"        self.state_rpc \u003d agent_rpc.PluginReportStateAPI(topics.PLUGIN)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        self.context \u003d ctx.get_admin_context_without_session()"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"        # Defines what will be listening for incoming events from the"},{"line_number":70,"context_line":"        # controller."},{"line_number":71,"context_line":"        self.endpoints \u003d [agent_base.PVMRpcCallbacks(self)]"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        # Define the listening consumers for the agent.  ML2 only supports"},{"line_number":74,"context_line":"        # these two update types."},{"line_number":75,"context_line":"        consumers \u003d [[topics.PORT, topics.UPDATE],"},{"line_number":76,"context_line":"                     [topics.NETWORK, topics.DELETE]]"},{"line_number":77,"context_line":""},{"line_number":78,"context_line":"        self.connection \u003d agent_rpc.create_consumers(self.endpoints,"},{"line_number":79,"context_line":"                                                     self.topic,"},{"line_number":80,"context_line":"                                                     consumers)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        # Report interval is for the agent health check."},{"line_number":83,"context_line":"        report_interval \u003d cfg.CONF.AGENT.report_interval"},{"line_number":84,"context_line":"        if report_interval:"},{"line_number":85,"context_line":"            hb \u003d loopingcall.FixedIntervalLoopingCall(self._report_state)"},{"line_number":86,"context_line":"            hb.start(interval\u003dreport_interval)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_f19ee805","line":86,"range":{"start_line":60,"start_character":0,"end_line":86,"end_character":46},"in_reply_to":"bacf61ea_076294d8","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            hb \u003d loopingcall.FixedIntervalLoopingCall(self._report_state)"},{"line_number":86,"context_line":"            hb.start(interval\u003dreport_interval)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"},{"line_number":90,"context_line":"            LOG.debug(\"No changes, sleeping %d seconds.\","},{"line_number":91,"context_line":"                      ACONF.polling_interval)"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_6780b047","line":88,"updated":"2016-08-02 22:06:14.000000000","message":"If this really doesn\u0027t need *any* of the code in the superclass, we should consider the possibility that the superclass method should be moved into the SEA agent.\n\nSame thing with all this heal_and_optimize, build_prov_requests, etc.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":85,"context_line":"            hb \u003d loopingcall.FixedIntervalLoopingCall(self._report_state)"},{"line_number":86,"context_line":"            hb.start(interval\u003dreport_interval)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"},{"line_number":90,"context_line":"            LOG.debug(\"No changes, sleeping %d seconds.\","},{"line_number":91,"context_line":"                      ACONF.polling_interval)"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_b162b014","line":88,"in_reply_to":"bacf61ea_6780b047","updated":"2016-08-03 18:36:05.000000000","message":"I would like to handle this later if that is fine. With vlan id available in vif plug itself, I see SEA agent getting simplified and this restructuring can be done with it, may be some of the code we are talking about will not be needed anymore.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"},{"line_number":90,"context_line":"            LOG.debug(\"No changes, sleeping %d seconds.\","},{"line_number":91,"context_line":"                      ACONF.polling_interval)"},{"line_number":92,"context_line":"            time.sleep(ACONF.polling_interval)"},{"line_number":93,"context_line":"            ports \u003d self._list_updated_ports()"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_243516f7","line":90,"range":{"start_line":90,"start_character":23,"end_line":90,"end_character":33},"updated":"2016-08-02 22:06:14.000000000","message":"Not necessarily?","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def rpc_loop(self):"},{"line_number":89,"context_line":"        while True:"},{"line_number":90,"context_line":"            LOG.debug(\"No changes, sleeping %d seconds.\","},{"line_number":91,"context_line":"                      ACONF.polling_interval)"},{"line_number":92,"context_line":"            time.sleep(ACONF.polling_interval)"},{"line_number":93,"context_line":"            ports \u003d self._list_updated_ports()"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_9165ec1e","line":90,"range":{"start_line":90,"start_character":23,"end_line":90,"end_character":33},"in_reply_to":"bacf61ea_243516f7","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                                                 device[\u0027device\u0027],"},{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            continue"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"def main():"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_a45aa64e","line":108,"range":{"start_line":108,"start_character":12,"end_line":108,"end_character":20},"updated":"2016-08-02 22:06:14.000000000","message":"redundant","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":105,"context_line":"                                                 device[\u0027device\u0027],"},{"line_number":106,"context_line":"                                                 self.agent_id,"},{"line_number":107,"context_line":"                                                 cfg.CONF.host)"},{"line_number":108,"context_line":"            continue"},{"line_number":109,"context_line":""},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"def main():"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_d16f64fa","line":108,"range":{"start_line":108,"start_character":12,"end_line":108,"end_character":20},"in_reply_to":"bacf61ea_a45aa64e","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"bf11fb3d281d5c7b2aa299ff5a4518c456a3ddef","unresolved":false,"context_lines":[{"line_number":58,"context_line":"        port."},{"line_number":59,"context_line":"        Output: [\u0027default\u0027,\u0027data1network\u0027,\u0027data2network\u0027]"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        :param adapter: The pypowervm adapter."},{"line_number":62,"context_line":"        :return physical_networks: Return a list of physical networks"},{"line_number":63,"context_line":"        \"\"\""},{"line_number":64,"context_line":"        man_sys \u003d pvm_ms.System.get(self.adapter)[0]"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_6295053f","line":61,"range":{"start_line":61,"start_character":8,"end_line":61,"end_character":46},"updated":"2016-08-03 21:02:59.000000000","message":"strike","commit_id":"a6a6d3dbea9870e630b5118e5f268bf994c8c1fe"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"bf11fb3d281d5c7b2aa299ff5a4518c456a3ddef","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        \"\"\""},{"line_number":64,"context_line":"        man_sys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":65,"context_line":"        sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":66,"context_line":"        return list({pport_w.label or \u0027default\u0027"},{"line_number":67,"context_line":"                     for sriov_adap_w in sriov_adap_wraps"},{"line_number":68,"context_line":"                     for pport_w in sriov_adap_w.phys_ports})"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def rpc_loop(self):"},{"line_number":71,"context_line":"        while True:"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_9dc85a76","line":68,"range":{"start_line":66,"start_character":8,"end_line":68,"end_character":61},"updated":"2016-08-03 21:02:59.000000000","message":"So I dug all the way through the code to figure out that this can be a list *or* a dict (in fact anything supporting __contains__).  However, every other agent is using a dict here, so it makes me pretty nervous that we\u0027re deviating.\n\nThat said, I\u0027m not completely sure what we would map the network names *to*.  The other agents assume the mapping is to a bridge or an interface.  Perhaps it would be appropriate for our mapping value to be a list of the pport loc codes.  That might in fact save us some work in plug.  Let\u0027s talk about it with Drew.","commit_id":"a6a6d3dbea9870e630b5118e5f268bf994c8c1fe"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"14ea2e1255cff575b2748d2457042489aebb5ce4","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def rpc_loop(self):"},{"line_number":71,"context_line":"        while True:"},{"line_number":72,"context_line":"            LOG.debug(\"Sleeping %d seconds.\", ACONF.polling_interval)"},{"line_number":73,"context_line":"            time.sleep(ACONF.polling_interval)"},{"line_number":74,"context_line":"            ports \u003d self._list_updated_ports()"},{"line_number":75,"context_line":"            for port in ports:"},{"line_number":76,"context_line":"                macaddress \u003d port[\u0027mac_address\u0027]"},{"line_number":77,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_bbfa63bb","line":74,"range":{"start_line":72,"start_character":1,"end_line":74,"end_character":46},"updated":"2016-08-04 13:07:22.000000000","message":"Maybe put two sets of comments\n\n1) Agent is not a tight loop.  Sleeping for the configured time frame.\n\n2) Processing any new updated port requests.","commit_id":"a6a6d3dbea9870e630b5118e5f268bf994c8c1fe"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"0a3c8e8cb4aaa113127be5bdc261dc3cf6bc2257","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            ports \u003d self._list_updated_ports()"},{"line_number":80,"context_line":"            for port in ports:"},{"line_number":81,"context_line":"                macaddress \u003d port[\u0027mac_address\u0027]"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"                # Make sure the binding host matches this agent."},{"line_number":84,"context_line":"                # Otherwise it is meant to provision on another agent."},{"line_number":85,"context_line":"                if port.get(\u0027binding:host_id\u0027) !\u003d cfg.CONF.host:"}],"source_content_type":"text/x-python","patch_set":8,"id":"bacf61ea_80e391d8","line":82,"updated":"2016-08-04 22:29:47.000000000","message":"Do we need to recalculate the bridge mappings periodically?  To pick up on-the-fly phys port label changes?  Will those changes percolate properly?","commit_id":"cd449fd7b19e063ae23b7ca3127a2edd25470ac4"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            for port in ports:"},{"line_number":104,"context_line":"                mac \u003d port[\u0027mac_address\u0027]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"                # Make sure the binding host matches this agent."},{"line_number":107,"context_line":"                # Otherwise it is meant to provision on another agent."},{"line_number":108,"context_line":"                if port.get(\u0027binding:host_id\u0027) !\u003d cfg.CONF.host:"},{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_ddafa7e1","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":28},"updated":"2016-08-08 20:53:48.000000000","message":"Do you REALLY want to do this?  The other SR-IOV agent does this because it doesn\u0027t support live migration.  But we will?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2156dfb322973ffd5890f26fdc60e6a5ff5cf4d7","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            for port in ports:"},{"line_number":104,"context_line":"                mac \u003d port[\u0027mac_address\u0027]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"                # Make sure the binding host matches this agent."},{"line_number":107,"context_line":"                # Otherwise it is meant to provision on another agent."},{"line_number":108,"context_line":"                if port.get(\u0027binding:host_id\u0027) !\u003d cfg.CONF.host:"},{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_18a03aa5","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":28},"in_reply_to":"9ad45d7e_6211c95d","updated":"2016-08-12 15:39:18.000000000","message":"Okay, I\u0027ll take it out.","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            for port in ports:"},{"line_number":104,"context_line":"                mac \u003d port[\u0027mac_address\u0027]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"                # Make sure the binding host matches this agent."},{"line_number":107,"context_line":"                # Otherwise it is meant to provision on another agent."},{"line_number":108,"context_line":"                if port.get(\u0027binding:host_id\u0027) !\u003d cfg.CONF.host:"},{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_dddb27ec","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":28},"in_reply_to":"9ad45d7e_ddafa7e1","updated":"2016-08-08 21:31:32.000000000","message":"I don\u0027t understand this.  Isn\u0027t a non-matching binding:host_id literally saying this port is being created on a different host?  How does that relate to migration?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b27a1761bbccf8989e2f107c50cdfc74813487f1","unresolved":false,"context_lines":[{"line_number":103,"context_line":"            for port in ports:"},{"line_number":104,"context_line":"                mac \u003d port[\u0027mac_address\u0027]"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"                # Make sure the binding host matches this agent."},{"line_number":107,"context_line":"                # Otherwise it is meant to provision on another agent."},{"line_number":108,"context_line":"                if port.get(\u0027binding:host_id\u0027) !\u003d cfg.CONF.host:"},{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_6211c95d","line":109,"range":{"start_line":106,"start_character":0,"end_line":109,"end_character":28},"in_reply_to":"9ad45d7e_dddb27ec","updated":"2016-08-12 15:18:29.000000000","message":"When you migrate a VM, there is a point in time where the VM exists on two hosts at once.  Really during live migration.  The VM is built on the target host (and all the I/O) while its still running on the source.\n\nThe neutron port can only bind to a single host.  So there is a point in time where the port will be bound to a different host.\n\nThe current KVM SR-IOV driver does not support live migration, so they can put this restriction in place.","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("},{"line_number":113,"context_line":"                    self.context, dev[\u0027device\u0027], self.agent_id, cfg.CONF.host)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"            LOG.debug(\"Sleeping %d seconds.\", ACONF.polling_interval)"},{"line_number":116,"context_line":"            time.sleep(ACONF.polling_interval)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_7d731bb2","line":113,"range":{"start_line":112,"start_character":0,"end_line":113,"end_character":78},"updated":"2016-08-08 20:53:48.000000000","message":"See previous patch - why not use the \u0027update_device_up\u0027 method?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":109,"context_line":"                    continue"},{"line_number":110,"context_line":"                dev \u003d self.plugin_rpc.get_device_details("},{"line_number":111,"context_line":"                    self.context, mac, self.agent_id)"},{"line_number":112,"context_line":"                self.plugin_rpc.update_device_up("},{"line_number":113,"context_line":"                    self.context, dev[\u0027device\u0027], self.agent_id, cfg.CONF.host)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"            LOG.debug(\"Sleeping %d seconds.\", ACONF.polling_interval)"},{"line_number":116,"context_line":"            time.sleep(ACONF.polling_interval)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_dd268715","line":113,"range":{"start_line":112,"start_character":0,"end_line":113,"end_character":78},"in_reply_to":"9ad45d7e_7d731bb2","updated":"2016-08-08 21:31:32.000000000","message":"Done","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    # Build then run the agent"},{"line_number":125,"context_line":"    agent \u003d SRIOVNeutronAgent()"},{"line_number":126,"context_line":"    LOG.info(_LI(\"SR-IOV Agent initialized and running.\"))"},{"line_number":127,"context_line":"    agent.rpc_loop()"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_1d35bfd9","line":126,"updated":"2016-08-08 20:53:48.000000000","message":"PowerVM SR-IOV (dis-ambiguates)","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":123,"context_line":""},{"line_number":124,"context_line":"    # Build then run the agent"},{"line_number":125,"context_line":"    agent \u003d SRIOVNeutronAgent()"},{"line_number":126,"context_line":"    LOG.info(_LI(\"SR-IOV Agent initialized and running.\"))"},{"line_number":127,"context_line":"    agent.rpc_loop()"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_fd9c2b6b","line":126,"in_reply_to":"9ad45d7e_1d35bfd9","updated":"2016-08-08 21:31:32.000000000","message":"Done","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4ccfb69cfa955dfa8e92b7de979af3261916b351","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":89,"context_line":"                if label not in mapping:"},{"line_number":90,"context_line":"                    mapping[label] \u003d []"},{"line_number":91,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":92,"context_line":"        return mapping"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def rpc_loop(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_ea4ae353","line":91,"updated":"2016-08-11 20:20:21.000000000","message":"Wonder if we want to validate these and then throw a nice happy error if one is bad?\n\nThey\u0027re just ugly on their own.\n\nNo warning if they specified something that doesn\u0027t exist on the system?","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"7772bc7649779c24bf8624207da8560b7e4ee6f7","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":89,"context_line":"                if label not in mapping:"},{"line_number":90,"context_line":"                    mapping[label] \u003d []"},{"line_number":91,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":92,"context_line":"        return mapping"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def rpc_loop(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_452acf2d","line":91,"in_reply_to":"9ad45d7e_2281914e","updated":"2016-08-12 15:22:18.000000000","message":"I meant validate the location codes that the user provides with what is actually available on the system.\n\nAlso short notation would be awesome...  P2-C7-T2...but that is just me thinking outloud.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"dcff1145748e172a208728e5f6d440805e085529","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":89,"context_line":"                if label not in mapping:"},{"line_number":90,"context_line":"                    mapping[label] \u003d []"},{"line_number":91,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":92,"context_line":"        return mapping"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def rpc_loop(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_bb548821","line":91,"in_reply_to":"9ad45d7e_452acf2d","updated":"2016-08-12 15:56:16.000000000","message":"The user isn\u0027t providing any location codes (remember, we did away with the whitelist thing).  The above comes purely from the ManagedSystem - the physical port location codes are *exactly* what\u0027s on the system.  The only thing that\u0027s user-configured here is the labels, which are (eventually) supposed to match neutron network names.\n\nActually I believe we\u0027re going to end up needing whitelist entries after all to make Claims pass, but they\u0027ll just have the physical_network names - no location codes.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"12bf19a631a09411bfcd7890e278a57979d070ac","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":89,"context_line":"                if label not in mapping:"},{"line_number":90,"context_line":"                    mapping[label] \u003d []"},{"line_number":91,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":92,"context_line":"        return mapping"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def rpc_loop(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_b6513fdb","line":91,"in_reply_to":"9ad45d7e_bb548821","updated":"2016-08-12 16:00:08.000000000","message":"Snap - I totally missed that.  Makes sense!","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6fba526723ff062cb357008370cac96ddb128840","unresolved":false,"context_lines":[{"line_number":88,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":89,"context_line":"                if label not in mapping:"},{"line_number":90,"context_line":"                    mapping[label] \u003d []"},{"line_number":91,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":92,"context_line":"        return mapping"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    def rpc_loop(self):"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_2281914e","line":91,"in_reply_to":"9ad45d7e_ea4ae353","updated":"2016-08-12 15:12:01.000000000","message":"You mean validate them against the names of existing neutron networks?  At most I would log a warning - not raise, cause the user has to be allowed to create the networks after startup.\n\nIs that worth doing a query of all networks?  Or do I maybe have that information already available somewhere?","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"}],"networking_powervm/plugins/ibm/agent/powervm/utils.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2015, 2016 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_4506ab1c","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2016-07-26 23:22:34.000000000","message":"cut out 2015.\n\nJust 2014, 2016","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2015, 2016 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_a01843d4","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"dada55a8_4506ab1c","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":57,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":58,"context_line":"    for sriov_adap_w in sriov_adap_wraps:"},{"line_number":59,"context_line":"        for pport_w in sriov_adap_w.phys_ports:"},{"line_number":60,"context_line":"            physnet \u003d pport_w.label"},{"line_number":61,"context_line":"            if physnet:"},{"line_number":62,"context_line":"                if physnet not in physical_networks:"},{"line_number":63,"context_line":"                    physical_networks.append(physnet)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    # Temporary fix until port labels are updated"},{"line_number":66,"context_line":"    if not physical_networks:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_22144d4b","line":63,"range":{"start_line":58,"start_character":0,"end_line":63,"end_character":53},"updated":"2016-07-26 23:22:34.000000000","message":"such indent.\n\nHow about:\n\n    for sriov_adap_w in sriov_adap_wraps:\n        for pport_w in sriov_adap_w.phys_ports:\n            if pport_w.label and pport_w.label not in physical_networks:\n                physical_networks.append(physnet)\n\nRun it by efried and I bet he finds a way to get it to one line.  He\u0027s amazing that way.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":55,"context_line":""},{"line_number":56,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":57,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":58,"context_line":"    for sriov_adap_w in sriov_adap_wraps:"},{"line_number":59,"context_line":"        for pport_w in sriov_adap_w.phys_ports:"},{"line_number":60,"context_line":"            physnet \u003d pport_w.label"},{"line_number":61,"context_line":"            if physnet:"},{"line_number":62,"context_line":"                if physnet not in physical_networks:"},{"line_number":63,"context_line":"                    physical_networks.append(physnet)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    # Temporary fix until port labels are updated"},{"line_number":66,"context_line":"    if not physical_networks:"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_801edfb8","line":63,"range":{"start_line":58,"start_character":0,"end_line":63,"end_character":53},"in_reply_to":"dada55a8_22144d4b","updated":"2016-08-01 02:17:28.000000000","message":"Not done yet. I will address it soon in next patchiest.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                    physical_networks.append(physnet)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    # Temporary fix until port labels are updated"},{"line_number":66,"context_line":"    if not physical_networks:"},{"line_number":67,"context_line":"        physical_networks.append(\"default\")"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    return physical_networks"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_a2003d03","line":67,"range":{"start_line":66,"start_character":0,"end_line":67,"end_character":43},"updated":"2016-07-26 23:22:34.000000000","message":"Add a TODO to this comment indicating that it will be removed before completion.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":63,"context_line":"                    physical_networks.append(physnet)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    # Temporary fix until port labels are updated"},{"line_number":66,"context_line":"    if not physical_networks:"},{"line_number":67,"context_line":"        physical_networks.append(\"default\")"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    return physical_networks"},{"line_number":70,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_601bebca","line":67,"range":{"start_line":66,"start_character":0,"end_line":67,"end_character":43},"in_reply_to":"dada55a8_a2003d03","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":62,"context_line":"    for sriov_adap_w in sriov_adap_wraps:"},{"line_number":63,"context_line":"        for pport_w in sriov_adap_w.phys_ports:"},{"line_number":64,"context_line":"            physnet \u003d pport_w.label"},{"line_number":65,"context_line":"            if physnet:"},{"line_number":66,"context_line":"                if physnet not in physical_networks:"},{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_ac2e60f8","line":67,"range":{"start_line":62,"start_character":0,"end_line":67,"end_character":53},"updated":"2016-08-01 15:32:54.000000000","message":"Comment from patch set 4 need to be done.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":62,"context_line":"    for sriov_adap_w in sriov_adap_wraps:"},{"line_number":63,"context_line":"        for pport_w in sriov_adap_w.phys_ports:"},{"line_number":64,"context_line":"            physnet \u003d pport_w.label"},{"line_number":65,"context_line":"            if physnet:"},{"line_number":66,"context_line":"                if physnet not in physical_networks:"},{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_6edc1975","line":67,"range":{"start_line":62,"start_character":0,"end_line":67,"end_character":53},"in_reply_to":"bacf61ea_ac2e60f8","updated":"2016-08-02 16:53:58.000000000","message":"Worked with Eric and simplified this code.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                if physnet not in physical_networks:"},{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"},{"line_number":71,"context_line":"        physical_networks.append(\"default\")"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_cc37544b","line":69,"range":{"start_line":69,"start_character":11,"end_line":69,"end_character":18},"updated":"2016-08-01 15:32:54.000000000","message":"this should be \u0027svenkat\u0027","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":66,"context_line":"                if physnet not in physical_networks:"},{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"},{"line_number":71,"context_line":"        physical_networks.append(\"default\")"},{"line_number":72,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_f9157849","line":69,"range":{"start_line":69,"start_character":11,"end_line":69,"end_character":18},"in_reply_to":"bacf61ea_cc37544b","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"},{"line_number":71,"context_line":"        physical_networks.append(\"default\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    return physical_networks"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_d2d1aa24","line":71,"range":{"start_line":70,"start_character":0,"end_line":71,"end_character":43},"updated":"2016-08-01 15:32:54.000000000","message":"So I actually think this should be removed.  I think instead it whould be the \u0027else\u0027 of if physnet\n\nif physnet:\n    if physnet not in physical_networks:\n        physical_networks.append(physnet)\nelse:\n    LOG.warn(_LW(\"something here about how a port is being added to the default physical network because it has no label\"))\n    physical_networks.append(physnet)","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                    physical_networks.append(physnet)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    # TODO(tempfix) Temporary fix until port labels are updated"},{"line_number":70,"context_line":"    if not physical_networks:"},{"line_number":71,"context_line":"        physical_networks.append(\"default\")"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"    return physical_networks"},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_992efca3","line":71,"range":{"start_line":70,"start_character":0,"end_line":71,"end_character":43},"in_reply_to":"bacf61ea_d2d1aa24","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    return syswraps[0].uuid"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"def parse_sriov_mappings(adapter):"},{"line_number":49,"context_line":"    \"\"\"Get the port labels from SR-IOV physical ports as mappings."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    Physical network name is retrieved from port label of physical"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_07f2949a","line":48,"updated":"2016-08-02 22:06:14.000000000","message":"Not completely sure why this couldn\u0027t be inline in the agent (other than symmetry with parse_sea_mappings - which, likewise, could be inline).","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    return syswraps[0].uuid"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"def parse_sriov_mappings(adapter):"},{"line_number":49,"context_line":"    \"\"\"Get the port labels from SR-IOV physical ports as mappings."},{"line_number":50,"context_line":""},{"line_number":51,"context_line":"    Physical network name is retrieved from port label of physical"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_7181588f","line":48,"in_reply_to":"bacf61ea_07f2949a","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    port."},{"line_number":53,"context_line":"    Output: [\u0027default\u0027,\u0027data1network\u0027,\u0027data2network\u0027]"},{"line_number":54,"context_line":"    :param adapter: The pypowervm adapter."},{"line_number":55,"context_line":"    :return physical_networks: Return a list of physical networks"},{"line_number":56,"context_line":"    \"\"\""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    physical_networks \u003d []"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_87aa0484","line":55,"updated":"2016-08-02 22:06:14.000000000","message":"The usage of this guy implies that it\u0027s supposed to return a dict.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":52,"context_line":"    port."},{"line_number":53,"context_line":"    Output: [\u0027default\u0027,\u0027data1network\u0027,\u0027data2network\u0027]"},{"line_number":54,"context_line":"    :param adapter: The pypowervm adapter."},{"line_number":55,"context_line":"    :return physical_networks: Return a list of physical networks"},{"line_number":56,"context_line":"    \"\"\""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    physical_networks \u003d []"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_9c286387","line":55,"in_reply_to":"bacf61ea_87aa0484","updated":"2016-08-03 18:36:05.000000000","message":"This method is now moved to sriov_agent. It returns a list which is added to agent configuration dictionary.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    :return physical_networks: Return a list of physical networks"},{"line_number":56,"context_line":"    \"\"\""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    physical_networks \u003d []"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_4703ec76","line":58,"updated":"2016-08-02 22:06:14.000000000","message":"Unnecessary","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    :return physical_networks: Return a list of physical networks"},{"line_number":56,"context_line":"    \"\"\""},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    physical_networks \u003d []"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_fc1fdf58","line":58,"in_reply_to":"bacf61ea_4703ec76","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":62,"context_line":"    # TODO(svenkat) Temporary fix until port labels are updated"},{"line_number":63,"context_line":"    physical_networks \u003d list({pport_w.label or \u0027default\u0027"},{"line_number":64,"context_line":"                              for sriov_adap_w in sriov_adap_wraps"},{"line_number":65,"context_line":"                              for pport_w in sriov_adap_w.phys_ports})"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_67eb90b1","line":62,"range":{"start_line":62,"start_character":0,"end_line":62,"end_character":63},"updated":"2016-08-02 22:06:14.000000000","message":"I don\u0027t think this comment is relevant.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":"    man_sys \u003d pvm_ms.System.get(adapter)[0]"},{"line_number":61,"context_line":"    sriov_adap_wraps \u003d man_sys.asio_config.sriov_adapters"},{"line_number":62,"context_line":"    # TODO(svenkat) Temporary fix until port labels are updated"},{"line_number":63,"context_line":"    physical_networks \u003d list({pport_w.label or \u0027default\u0027"},{"line_number":64,"context_line":"                              for sriov_adap_w in sriov_adap_wraps"},{"line_number":65,"context_line":"                              for pport_w in sriov_adap_w.phys_ports})"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_7c348fdd","line":62,"range":{"start_line":62,"start_character":0,"end_line":62,"end_character":63},"in_reply_to":"bacf61ea_67eb90b1","updated":"2016-08-03 18:36:05.000000000","message":"Done","commit_id":"432852179802033defc463035c0be7f04cc2c820"}],"networking_powervm/plugins/ml2/drivers/mech_pvm_base.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class PvmMechanismDriverBase(mech_agent.SimpleAgentMechanismDriverBase):"},{"line_number":32,"context_line":"    \"\"\"Base class for PowerVM mechanism drivers.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self, agent_type, vif_type, **kwargs):"},{"line_number":35,"context_line":"        super(PvmMechanismDriverBase, self).__init__("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_d77788d2","line":32,"range":{"start_line":32,"start_character":4,"end_line":32,"end_character":51},"updated":"2016-08-08 20:53:48.000000000","message":"We should describe what this supports.  VLAN?  Flat?\n\nI thought SR-IOV supported flat.","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b27a1761bbccf8989e2f107c50cdfc74813487f1","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class PvmMechanismDriverBase(mech_agent.SimpleAgentMechanismDriverBase):"},{"line_number":32,"context_line":"    \"\"\"Base class for PowerVM mechanism drivers.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self, agent_type, vif_type, **kwargs):"},{"line_number":35,"context_line":"        super(PvmMechanismDriverBase, self).__init__("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_853687e5","line":32,"range":{"start_line":32,"start_character":4,"end_line":32,"end_character":51},"in_reply_to":"9ad45d7e_3879b194","updated":"2016-08-12 15:18:29.000000000","message":"K.  I think I meant in documentation here...for operators.  But agree for devs here.","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class PvmMechanismDriverBase(mech_agent.SimpleAgentMechanismDriverBase):"},{"line_number":32,"context_line":"    \"\"\"Base class for PowerVM mechanism drivers.\"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self, agent_type, vif_type, **kwargs):"},{"line_number":35,"context_line":"        super(PvmMechanismDriverBase, self).__init__("}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_3879b194","line":32,"range":{"start_line":32,"start_character":4,"end_line":32,"end_character":51},"in_reply_to":"9ad45d7e_d77788d2","updated":"2016-08-08 21:31:32.000000000","message":"That\u0027s defined by the subclass\u0027s get_allowed_network_types override.","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if self.check_segment_for_agent(segment, agent):"},{"line_number":49,"context_line":"            context.set_binding(segment[api.ID],"},{"line_number":50,"context_line":"                                self.vif_type,"},{"line_number":51,"context_line":"                                self.get_vif_details(segment, agent))"},{"line_number":52,"context_line":"            return True"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_f7a72c4d","line":51,"updated":"2016-08-08 20:53:48.000000000","message":"will be self._get_xxx","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        if self.check_segment_for_agent(segment, agent):"},{"line_number":49,"context_line":"            context.set_binding(segment[api.ID],"},{"line_number":50,"context_line":"                                self.vif_type,"},{"line_number":51,"context_line":"                                self.get_vif_details(segment, agent))"},{"line_number":52,"context_line":"            return True"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_5d9577e2","line":51,"in_reply_to":"9ad45d7e_f7a72c4d","updated":"2016-08-08 21:31:32.000000000","message":"Done","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        \"\"\""},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def get_vif_details(self, segment, agent):"},{"line_number":70,"context_line":"        \"\"\"Gets customized vif details for this mechanism driver."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        :param segment: Neutron network object."}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_17abe01e","line":69,"updated":"2016-08-08 20:53:48.000000000","message":"As discussed in IRC, should be underscore","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":66,"context_line":"        \"\"\""},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def get_vif_details(self, segment, agent):"},{"line_number":70,"context_line":"        \"\"\"Gets customized vif details for this mechanism driver."},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        :param segment: Neutron network object."}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_9d9fef02","line":69,"in_reply_to":"9ad45d7e_17abe01e","updated":"2016-08-08 21:31:32.000000000","message":"Done","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"ed3c5f968de6592ff6ecdef084b0a4fdebcb0029","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        :param segment: Neutron network object."},{"line_number":73,"context_line":"        :param agent: BasePVMNeutronAgent subclass."},{"line_number":74,"context_line":"        :return: A dict containing VIF details, including:"},{"line_number":75,"context_line":"                 - vlan: (Integer) VLAN ID for the vif."},{"line_number":76,"context_line":"        \"\"\""},{"line_number":77,"context_line":"        vlan_id \u003d segment.get(api.SEGMENTATION_ID, FLAT_VLAN)"},{"line_number":78,"context_line":"        vif_details \u003d copy.copy(self.vif_details)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_1d1e5f63","line":75,"updated":"2016-08-08 20:53:48.000000000","message":"Or what for Flat?","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"e3f341163e1be3480c0cf895f4a8959593368bee","unresolved":false,"context_lines":[{"line_number":72,"context_line":"        :param segment: Neutron network object."},{"line_number":73,"context_line":"        :param agent: BasePVMNeutronAgent subclass."},{"line_number":74,"context_line":"        :return: A dict containing VIF details, including:"},{"line_number":75,"context_line":"                 - vlan: (Integer) VLAN ID for the vif."},{"line_number":76,"context_line":"        \"\"\""},{"line_number":77,"context_line":"        vlan_id \u003d segment.get(api.SEGMENTATION_ID, FLAT_VLAN)"},{"line_number":78,"context_line":"        vif_details \u003d copy.copy(self.vif_details)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9ad45d7e_7da4bb56","line":75,"in_reply_to":"9ad45d7e_1d1e5f63","updated":"2016-08-08 21:31:32.000000000","message":"Done","commit_id":"e0ef95c9e1dd7968c86d7fa243da4d6b94d5e2cb"}],"networking_powervm/plugins/ml2/drivers/mech_pvm_sea.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"4ccfb69cfa955dfa8e92b7de979af3261916b351","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    PowerVM Shared Ethernet Agent."},{"line_number":32,"context_line":"    \"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        super(PvmSEAMechanismDriver, self).__init__(pconst.AGENT_TYPE_PVM_SEA,"},{"line_number":36,"context_line":"                                                    pconst.VIF_TYPE_PVM_SEA)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"},{"line_number":39,"context_line":"        # When this method is called, the parent should ideally be calling"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_2ad35b61","line":36,"range":{"start_line":34,"start_character":2,"end_line":36,"end_character":76},"updated":"2016-08-11 20:20:21.000000000","message":"Your call...\n\nNow that we can pass things back, I\u0027d love if we could pass back the vSwitch to Nova that the CNA should be on.  Right now we assume ETHERNET0.  But we can now actually pass back and support more vSwitches.\n\nI\u0027m of mindset we do this in a different change set...but you did touch SEA...  :-D","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6fba526723ff062cb357008370cac96ddb128840","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    PowerVM Shared Ethernet Agent."},{"line_number":32,"context_line":"    \"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        super(PvmSEAMechanismDriver, self).__init__(pconst.AGENT_TYPE_PVM_SEA,"},{"line_number":36,"context_line":"                                                    pconst.VIF_TYPE_PVM_SEA)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"},{"line_number":39,"context_line":"        # When this method is called, the parent should ideally be calling"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_62b3890b","line":36,"range":{"start_line":34,"start_character":2,"end_line":36,"end_character":76},"in_reply_to":"9ad45d7e_2ad35b61","updated":"2016-08-12 15:12:01.000000000","message":"Yeah, different change set.  This one\u0027s complicated enough.  Maybe open a bug so we don\u0027t lose track of it?","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"7772bc7649779c24bf8624207da8560b7e4ee6f7","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    PowerVM Shared Ethernet Agent."},{"line_number":32,"context_line":"    \"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    def __init__(self):"},{"line_number":35,"context_line":"        super(PvmSEAMechanismDriver, self).__init__(pconst.AGENT_TYPE_PVM_SEA,"},{"line_number":36,"context_line":"                                                    pconst.VIF_TYPE_PVM_SEA)"},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    def try_to_bind_segment_for_agent(self, context, segment, agent):"},{"line_number":39,"context_line":"        # When this method is called, the parent should ideally be calling"}],"source_content_type":"text/x-python","patch_set":16,"id":"9ad45d7e_c59b5f71","line":36,"range":{"start_line":34,"start_character":2,"end_line":36,"end_character":76},"in_reply_to":"9ad45d7e_62b3890b","updated":"2016-08-12 15:22:18.000000000","message":"Well, we have a different change set now I can do that on.  We\u0027ll do after this merges.","commit_id":"20e37e93229cfea87b4f1495bd8d44eb9bf9db47"}],"networking_powervm/plugins/ml2/drivers/mech_pvm_sriov.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"47063b19239315e1b9d6963e7b171e5da2f01543","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        super(PvmSRIOVMechanismDriver, self).__init__("},{"line_number":40,"context_line":"            pconst.AGENT_TYPE_PVM_SRIOV,"},{"line_number":41,"context_line":"            pconst.VIF_TYPE_PVM_SRIOV,"},{"line_number":42,"context_line":"            supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":43,"context_line":"                                  portbindings.VNIC_MACVTAP,"},{"line_number":44,"context_line":"                                  portbindings.VNIC_DIRECT_PHYSICAL],"},{"line_number":45,"context_line":"            vif_details\u003d{portbindings.CAP_PORT_FILTER: False})"},{"line_number":46,"context_line":"        self.rpc_publisher \u003d rpc.AgentNotifierApi(topics.AGENT)"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_e0d9db84","line":44,"range":{"start_line":42,"start_character":58,"end_line":44,"end_character":67},"updated":"2016-07-19 18:38:09.000000000","message":"I specifically thought we did NOT support these other two yet.","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"e56f4ea048687382cc10f65b8739dd4f22383c87","unresolved":false,"context_lines":[{"line_number":39,"context_line":"        super(PvmSRIOVMechanismDriver, self).__init__("},{"line_number":40,"context_line":"            pconst.AGENT_TYPE_PVM_SRIOV,"},{"line_number":41,"context_line":"            pconst.VIF_TYPE_PVM_SRIOV,"},{"line_number":42,"context_line":"            supported_vnic_types\u003d[portbindings.VNIC_DIRECT,"},{"line_number":43,"context_line":"                                  portbindings.VNIC_MACVTAP,"},{"line_number":44,"context_line":"                                  portbindings.VNIC_DIRECT_PHYSICAL],"},{"line_number":45,"context_line":"            vif_details\u003d{portbindings.CAP_PORT_FILTER: False})"},{"line_number":46,"context_line":"        self.rpc_publisher \u003d rpc.AgentNotifierApi(topics.AGENT)"},{"line_number":47,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_45574202","line":44,"range":{"start_line":42,"start_character":58,"end_line":44,"end_character":67},"in_reply_to":"dada55a8_e0d9db84","updated":"2016-08-01 02:09:16.000000000","message":"Done","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"47063b19239315e1b9d6963e7b171e5da2f01543","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        return bindable"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def get_allowed_network_types(self, agent\u003dNone):"},{"line_number":64,"context_line":"        return [p_constants.TYPE_VLAN]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def get_mappings(self, agent):"},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_e0c0bb7e","line":64,"range":{"start_line":64,"start_character":15,"end_line":64,"end_character":38},"updated":"2016-07-19 18:38:09.000000000","message":"I thought flat was also supported?","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"e56f4ea048687382cc10f65b8739dd4f22383c87","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        return bindable"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def get_allowed_network_types(self, agent\u003dNone):"},{"line_number":64,"context_line":"        return [p_constants.TYPE_VLAN]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def get_mappings(self, agent):"},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_255a0e2b","line":64,"range":{"start_line":64,"start_character":15,"end_line":64,"end_character":38},"in_reply_to":"dada55a8_e0c0bb7e","updated":"2016-08-01 02:09:16.000000000","message":"Done","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"47063b19239315e1b9d6963e7b171e5da2f01543","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        return [p_constants.TYPE_VLAN]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def get_mappings(self, agent):"},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_40c0a77b","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":65},"updated":"2016-07-19 18:38:09.000000000","message":"What will the bridge mappings look like here?","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"e56f4ea048687382cc10f65b8739dd4f22383c87","unresolved":false,"context_lines":[{"line_number":64,"context_line":"        return [p_constants.TYPE_VLAN]"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    def get_mappings(self, agent):"},{"line_number":67,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":2,"id":"dada55a8_c56212d8","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":65},"in_reply_to":"dada55a8_40c0a77b","updated":"2016-08-01 02:09:16.000000000","message":"Bridge mapping will be a list of physical networks derived from port labels of SR-IOV physical ports","commit_id":"18a51dd2adbc7e4cf2e18c83008cb8f175ec64c7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_65112f52","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"updated":"2016-07-26 23:22:34.000000000","message":"2014, 2016","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_206c5334","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"in_reply_to":"dada55a8_65112f52","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"FLAT_VLAN \u003d 0"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_2559f735","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":13},"updated":"2016-07-26 23:22:34.000000000","message":"Weird name.  Should this be somewhere down in pypowervm as a constant?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"LOG \u003d log.getLogger(__name__)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"FLAT_VLAN \u003d 0"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_e05cfb7e","line":32,"range":{"start_line":32,"start_character":0,"end_line":32,"end_character":13},"in_reply_to":"dada55a8_2559f735","updated":"2016-08-01 02:17:28.000000000","message":"This is the irrelevant plan id for flat... I could not find anything in pypowervm that relates to vlan id for flat network.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":32,"context_line":"FLAT_VLAN \u003d 0"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"},{"line_number":36,"context_line":"    \"\"\"Method was invoked for unsupported network type.\"\"\""},{"line_number":37,"context_line":"    message \u003d _(\"Unsupported network type %(net_type)s.\")"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class PvmSRIOVMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_8542633c","line":37,"range":{"start_line":35,"start_character":0,"end_line":37,"end_character":57},"updated":"2016-07-26 23:22:34.000000000","message":"Don\u0027t we have an exceptions file?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":32,"context_line":"FLAT_VLAN \u003d 0"},{"line_number":33,"context_line":""},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"class PvmSriovUnsupportedNetworkType(exceptions.NeutronException):"},{"line_number":36,"context_line":"    \"\"\"Method was invoked for unsupported network type.\"\"\""},{"line_number":37,"context_line":"    message \u003d _(\"Unsupported network type %(net_type)s.\")"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class PvmSRIOVMechanismDriver(mech_agent.SimpleAgentMechanismDriverBase):"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_4056a75c","line":37,"range":{"start_line":35,"start_character":0,"end_line":37,"end_character":57},"in_reply_to":"dada55a8_8542633c","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def __init__(self):"},{"line_number":48,"context_line":"        self.vif_details \u003d {portbindings.CAP_PORT_FILTER: False}"},{"line_number":49,"context_line":"        super(PvmSRIOVMechanismDriver, self).__init__("},{"line_number":50,"context_line":"            pconst.AGENT_TYPE_PVM_SRIOV,"},{"line_number":51,"context_line":"            pconst.VIF_TYPE_PVM_SRIOV,"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_2570d7a3","line":48,"range":{"start_line":48,"start_character":8,"end_line":48,"end_character":64},"updated":"2016-07-26 23:22:34.000000000","message":"I don\u0027t understand saving this, but then having the get which does \u0027more\u0027.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    \"\"\""},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def __init__(self):"},{"line_number":48,"context_line":"        self.vif_details \u003d {portbindings.CAP_PORT_FILTER: False}"},{"line_number":49,"context_line":"        super(PvmSRIOVMechanismDriver, self).__init__("},{"line_number":50,"context_line":"            pconst.AGENT_TYPE_PVM_SRIOV,"},{"line_number":51,"context_line":"            pconst.VIF_TYPE_PVM_SRIOV,"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_804c1fc9","line":48,"range":{"start_line":48,"start_character":8,"end_line":48,"end_character":64},"in_reply_to":"dada55a8_2570d7a3","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        This mechanism driver supports only VLAN and FLAT network types"},{"line_number":83,"context_line":"        :param agent: (Optional) SR-IOV agent configuration"},{"line_number":84,"context_line":"        \"\"\""},{"line_number":85,"context_line":"        return [p_constants.TYPE_FLAT,"},{"line_number":86,"context_line":"                p_constants.TYPE_VLAN]"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def get_mappings(self, agent):"},{"line_number":89,"context_line":"        \"\"\"Get list of bridge mapptings from agent configuration."}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_2543b714","line":86,"range":{"start_line":85,"start_character":0,"end_line":86,"end_character":38},"updated":"2016-07-26 23:22:34.000000000","message":"Single line","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":82,"context_line":"        This mechanism driver supports only VLAN and FLAT network types"},{"line_number":83,"context_line":"        :param agent: (Optional) SR-IOV agent configuration"},{"line_number":84,"context_line":"        \"\"\""},{"line_number":85,"context_line":"        return [p_constants.TYPE_FLAT,"},{"line_number":86,"context_line":"                p_constants.TYPE_VLAN]"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def get_mappings(self, agent):"},{"line_number":89,"context_line":"        \"\"\"Get list of bridge mapptings from agent configuration."}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_60492bb7","line":86,"range":{"start_line":85,"start_character":0,"end_line":86,"end_character":38},"in_reply_to":"dada55a8_2543b714","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        Returns a list of physical network names from port labels of SR_IOV"},{"line_number":92,"context_line":"        physical ports."},{"line_number":93,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":94,"context_line":"        \"\"\""},{"line_number":95,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_453eab8b","line":93,"range":{"start_line":93,"start_character":8,"end_line":93,"end_character":39},"updated":"2016-07-26 23:22:34.000000000","message":"return?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        Returns a list of physical network names from port labels of SR_IOV"},{"line_number":92,"context_line":"        physical ports."},{"line_number":93,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":94,"context_line":"        \"\"\""},{"line_number":95,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":96,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_e0d35bd3","line":93,"range":{"start_line":93,"start_character":8,"end_line":93,"end_character":39},"in_reply_to":"dada55a8_453eab8b","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_vif_details(self, segment):"},{"line_number":98,"context_line":"        \"\"\"Gets customized vif details for this mechanism driver."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param segment: Neutron network object"},{"line_number":101,"context_line":"        \"\"\""},{"line_number":102,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_45c7cb97","line":101,"range":{"start_line":98,"start_character":0,"end_line":101,"end_character":11},"updated":"2016-07-26 23:22:34.000000000","message":"Why does this need to be customized?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":95,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"    def _get_vif_details(self, segment):"},{"line_number":98,"context_line":"        \"\"\"Gets customized vif details for this mechanism driver."},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        :param segment: Neutron network object"},{"line_number":101,"context_line":"        \"\"\""},{"line_number":102,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_9c26aacc","line":101,"range":{"start_line":98,"start_character":0,"end_line":101,"end_character":11},"in_reply_to":"dada55a8_45c7cb97","updated":"2016-08-01 02:17:28.000000000","message":"We need this as discussed to provide vlan data to vif.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"},{"line_number":105,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":106,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":107,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":108,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_85c5438f","line":105,"range":{"start_line":105,"start_character":12,"end_line":105,"end_character":31},"updated":"2016-07-26 23:22:34.000000000","message":"Why is a VLAN set if the type is flat?","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"},{"line_number":105,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":106,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":107,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":108,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_00e66faf","line":105,"range":{"start_line":105,"start_character":12,"end_line":105,"end_character":31},"in_reply_to":"dada55a8_85c5438f","updated":"2016-08-01 02:17:28.000000000","message":"I feel the vif details has to be consistent across flat and vlan types for vmic_type direct ports. I think for direct ports, there could be a reference to vlan id somewhere.","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"d8f1b11a5af52ec5295ff610b9ba367a0fea24d6","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        else:"},{"line_number":109,"context_line":"            raise PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        vif_details \u003d self.vif_details.copy()"},{"line_number":112,"context_line":"        vif_details[portbindings.VIF_DETAILS_VLAN] \u003d str(vlan_id)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return vif_details"}],"source_content_type":"text/x-python","patch_set":4,"id":"dada55a8_255a97f2","line":111,"range":{"start_line":111,"start_character":22,"end_line":111,"end_character":45},"updated":"2016-07-26 23:22:34.000000000","message":"If this was needed...I\u0027m thinking it needs to be a \u0027copy.copy(self.vif_details)\u0027","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"9cefdd9fdc1520a68652e40be96b9c378064fa15","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        else:"},{"line_number":109,"context_line":"            raise PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"        vif_details \u003d self.vif_details.copy()"},{"line_number":112,"context_line":"        vif_details[portbindings.VIF_DETAILS_VLAN] \u003d str(vlan_id)"},{"line_number":113,"context_line":""},{"line_number":114,"context_line":"        return vif_details"}],"source_content_type":"text/x-python","patch_set":4,"id":"bacf61ea_2001f338","line":111,"range":{"start_line":111,"start_character":22,"end_line":111,"end_character":45},"in_reply_to":"dada55a8_255a97f2","updated":"2016-08-01 02:17:28.000000000","message":"Done","commit_id":"d6fd17f5a837dc71d861788b9c0608d10c3a0a58"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    def get_allowed_network_types(self, agent\u003dNone):"},{"line_number":71,"context_line":"        \"\"\"Get a list of allowed network types."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        This mechanism driver supports only VLAN and FLAT network types"},{"line_number":74,"context_line":"        :param agent: (Optional) SR-IOV agent configuration"},{"line_number":75,"context_line":"        :return supported types: Supported network types"},{"line_number":76,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_129fc25f","line":73,"updated":"2016-08-01 15:32:54.000000000","message":"End with a period.  Add a new line with the parameters.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":70,"context_line":"    def get_allowed_network_types(self, agent\u003dNone):"},{"line_number":71,"context_line":"        \"\"\"Get a list of allowed network types."},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        This mechanism driver supports only VLAN and FLAT network types"},{"line_number":74,"context_line":"        :param agent: (Optional) SR-IOV agent configuration"},{"line_number":75,"context_line":"        :return supported types: Supported network types"},{"line_number":76,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_3a253f5c","line":73,"in_reply_to":"bacf61ea_129fc25f","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        \"\"\"Get list of bridge mapptings from agent configuration."},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        Returns a list of physical network names from port labels of SR_IOV"},{"line_number":83,"context_line":"        physical ports."},{"line_number":84,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":85,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":86,"context_line":"        a list of physical networks from port label of SR-IOV physical port"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_328e462e","line":83,"updated":"2016-08-01 15:32:54.000000000","message":"Add a new line","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":80,"context_line":"        \"\"\"Get list of bridge mapptings from agent configuration."},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"        Returns a list of physical network names from port labels of SR_IOV"},{"line_number":83,"context_line":"        physical ports."},{"line_number":84,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":85,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":86,"context_line":"        a list of physical networks from port label of SR-IOV physical port"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_1a2afb2c","line":83,"in_reply_to":"bacf61ea_328e462e","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        physical ports."},{"line_number":84,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":85,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":86,"context_line":"        a list of physical networks from port label of SR-IOV physical port"},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_f2702e42","line":86,"range":{"start_line":86,"start_character":8,"end_line":86,"end_character":26},"updated":"2016-08-01 15:32:54.000000000","message":"Indent to under the word \u0027Mappings\u0027\n\nEnd the sentence with a period.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        physical ports."},{"line_number":84,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":85,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":86,"context_line":"        a list of physical networks from port label of SR-IOV physical port"},{"line_number":87,"context_line":"        \"\"\""},{"line_number":88,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_dad6a326","line":86,"range":{"start_line":86,"start_character":8,"end_line":86,"end_character":26},"in_reply_to":"bacf61ea_f2702e42","updated":"2016-08-02 16:53:58.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        :param segment: Neutron network object"},{"line_number":94,"context_line":"        \"\"\""},{"line_number":95,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"},{"line_number":98,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":99,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":100,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            raise excp.PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_92a45208","line":100,"range":{"start_line":95,"start_character":0,"end_line":100,"end_character":50},"updated":"2016-08-01 15:32:54.000000000","message":"I think you can simplify this whole block...\n\nvlan_id \u003d segment.get(api.NETWORK_TYPE, FLAT_VLAN)\n\nDepends on the comment from 102 being correct.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        :param segment: Neutron network object"},{"line_number":94,"context_line":"        \"\"\""},{"line_number":95,"context_line":"        network_type \u003d segment[api.NETWORK_TYPE]"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"        if network_type \u003d\u003d p_constants.TYPE_FLAT:"},{"line_number":98,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":99,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":100,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            raise excp.PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_74e18d9a","line":100,"range":{"start_line":95,"start_character":0,"end_line":100,"end_character":50},"in_reply_to":"bacf61ea_92a45208","updated":"2016-08-02 16:53:58.000000000","message":"vlan_id \u003d segment.get(api.SEGMENTATION_ID, FLAT_VLAN).","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b19f6644a0ffde3ec9716d3e9466ad35d3fa8d45","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":99,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":100,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            raise excp.PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        vif_details \u003d copy.copy(self.vif_details)"},{"line_number":105,"context_line":"        vif_details[portbindings.VIF_DETAILS_VLAN] \u003d str(vlan_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_124b425a","line":102,"range":{"start_line":101,"start_character":0,"end_line":102,"end_character":76},"updated":"2016-08-01 15:32:54.000000000","message":"Will you ever get to this block?  Wouldn\u0027t the get_allowed_network_types never allow anything else to this point?","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"81ac41ca0e02133bf5dd85ea6e1f41f7da223eaf","unresolved":false,"context_lines":[{"line_number":98,"context_line":"            vlan_id \u003d FLAT_VLAN"},{"line_number":99,"context_line":"        elif network_type \u003d\u003d p_constants.TYPE_VLAN:"},{"line_number":100,"context_line":"            vlan_id \u003d segment[api.SEGMENTATION_ID]"},{"line_number":101,"context_line":"        else:"},{"line_number":102,"context_line":"            raise excp.PvmSriovUnsupportedNetworkType(net_type\u003dnetwork_type)"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"        vif_details \u003d copy.copy(self.vif_details)"},{"line_number":105,"context_line":"        vif_details[portbindings.VIF_DETAILS_VLAN] \u003d str(vlan_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"bacf61ea_94e401ad","line":102,"range":{"start_line":101,"start_character":0,"end_line":102,"end_character":76},"in_reply_to":"bacf61ea_124b425a","updated":"2016-08-02 16:53:58.000000000","message":"You are right, i have removed this.","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        :return bindable: Boolean value if port can be bound"},{"line_number":56,"context_line":"        \"\"\""},{"line_number":57,"context_line":"        # When this method is called, the parent should ideally be calling"},{"line_number":58,"context_line":"        # down to the agent to state that the port was updated.  However,"},{"line_number":59,"context_line":"        # it appears this isn\u0027t flowing properly.  This makes sure the"},{"line_number":60,"context_line":"        # port is passed down to the agent."},{"line_number":61,"context_line":"        if self.check_segment_for_agent(segment, agent):"},{"line_number":62,"context_line":"            context.set_binding(segment[api.ID],"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_2716b8a7","line":59,"range":{"start_line":58,"start_character":65,"end_line":59,"end_character":49},"updated":"2016-08-02 22:06:14.000000000","message":"Eh?","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        :return bindable: Boolean value if port can be bound"},{"line_number":56,"context_line":"        \"\"\""},{"line_number":57,"context_line":"        # When this method is called, the parent should ideally be calling"},{"line_number":58,"context_line":"        # down to the agent to state that the port was updated.  However,"},{"line_number":59,"context_line":"        # it appears this isn\u0027t flowing properly.  This makes sure the"},{"line_number":60,"context_line":"        # port is passed down to the agent."},{"line_number":61,"context_line":"        if self.check_segment_for_agent(segment, agent):"},{"line_number":62,"context_line":"            context.set_binding(segment[api.ID],"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_3c6857ba","line":59,"range":{"start_line":58,"start_character":65,"end_line":59,"end_character":49},"in_reply_to":"bacf61ea_2716b8a7","updated":"2016-08-03 18:36:05.000000000","message":"Done, removed these comments.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d7feb840154ed0e46c7f6c51547b55c42a7b95ca","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":86,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":87,"context_line":"                          a list of physical networks from port label of"},{"line_number":88,"context_line":"                          SR-IOV physical port"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_e71ca0c3","line":87,"range":{"start_line":87,"start_character":28,"end_line":87,"end_character":32},"updated":"2016-08-02 22:06:14.000000000","message":"The default is a dict - as the value should probably also be - see comment in sriov_agent.py.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"32c285eca47226157a1f09d5fd9bf70dbc52966b","unresolved":false,"context_lines":[{"line_number":84,"context_line":""},{"line_number":85,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":86,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":87,"context_line":"                          a list of physical networks from port label of"},{"line_number":88,"context_line":"                          SR-IOV physical port"},{"line_number":89,"context_line":"        \"\"\""},{"line_number":90,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, {})"}],"source_content_type":"text/x-python","patch_set":6,"id":"bacf61ea_fc34ff4a","line":87,"range":{"start_line":87,"start_character":28,"end_line":87,"end_character":32},"in_reply_to":"bacf61ea_e71ca0c3","updated":"2016-08-03 18:36:05.000000000","message":"This does return a list (list of physical networks). get_mappings is used by check_segment_for_agent and physnet_in_mappings by parent class : SimpleAgentMechanismDriverBase. (physnet in mappings). \nFrom agent perspective, during its startup, retrieves a list of physical network names from port labels of SR-IOV physical ports..\nI have changed default to [] from {}.","commit_id":"432852179802033defc463035c0be7f04cc2c820"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"bf11fb3d281d5c7b2aa299ff5a4518c456a3ddef","unresolved":false,"context_lines":[{"line_number":80,"context_line":""},{"line_number":81,"context_line":"        :param agent: SR-IOV vNIC agent"},{"line_number":82,"context_line":"        :return mappings: Mappings provided by corresponding agent. It will be"},{"line_number":83,"context_line":"                          a dict of physical networks from port label of"},{"line_number":84,"context_line":"                          SR-IOV physical port"},{"line_number":85,"context_line":"        \"\"\""},{"line_number":86,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, [])"}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_3d77ae3c","line":83,"range":{"start_line":83,"start_character":28,"end_line":83,"end_character":32},"updated":"2016-08-03 21:02:59.000000000","message":"Now this contradicts the impl - but see comment in sriov_agent.py.","commit_id":"a6a6d3dbea9870e630b5118e5f268bf994c8c1fe"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"bf11fb3d281d5c7b2aa299ff5a4518c456a3ddef","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                          a dict of physical networks from port label of"},{"line_number":84,"context_line":"                          SR-IOV physical port"},{"line_number":85,"context_line":"        \"\"\""},{"line_number":86,"context_line":"        return agent[\u0027configurations\u0027].get(\u0027bridge_mappings\u0027, [])"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    def _get_vif_details(self, segment):"},{"line_number":89,"context_line":"        \"\"\"Gets customized vif details for this mechanism driver."}],"source_content_type":"text/x-python","patch_set":7,"id":"bacf61ea_dd8e5226","line":86,"range":{"start_line":86,"start_character":62,"end_line":86,"end_character":64},"updated":"2016-08-03 21:02:59.000000000","message":"See comment in sriov_agent.py.","commit_id":"a6a6d3dbea9870e630b5118e5f268bf994c8c1fe"}],"setup.cfg":[{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"fefe2de23d34190d5ee5a00632b3078de8e95c72","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    networking-powervm-sriov-agent \u003d networking_powervm.plugins.ibm.agent.powervm.sriov_agent:main"},{"line_number":24,"context_line":"neutron.ml2.mechanism_drivers \u003d"},{"line_number":25,"context_line":"    pvm_sea \u003d networking_powervm.plugins.ml2.drivers.mech_pvm_sea:PvmSEAMechanismDriver"},{"line_number":26,"context_line":"    pvm_sriov \u003d networking_powervm.plugins.ml2.drivers.mech_pvm_sea:PvmSRIOVMechanismDriver"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"[files]"},{"line_number":29,"context_line":"packages \u003d networking_powervm"}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"bacf61ea_ce9f29b2","line":26,"range":{"start_line":26,"start_character":55,"end_line":26,"end_character":67},"updated":"2016-08-07 20:11:21.000000000","message":"Please change it to mech_pvm_sriov","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"37b79ac3616462cc013254192b110495cc587031","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    networking-powervm-sriov-agent \u003d networking_powervm.plugins.ibm.agent.powervm.sriov_agent:main"},{"line_number":24,"context_line":"neutron.ml2.mechanism_drivers \u003d"},{"line_number":25,"context_line":"    pvm_sea \u003d networking_powervm.plugins.ml2.drivers.mech_pvm_sea:PvmSEAMechanismDriver"},{"line_number":26,"context_line":"    pvm_sriov \u003d networking_powervm.plugins.ml2.drivers.mech_pvm_sea:PvmSRIOVMechanismDriver"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"[files]"},{"line_number":29,"context_line":"packages \u003d networking_powervm"}],"source_content_type":"text/x-ttcn-cfg","patch_set":5,"id":"9ad45d7e_3736e403","line":26,"range":{"start_line":26,"start_character":55,"end_line":26,"end_character":67},"in_reply_to":"bacf61ea_ce9f29b2","updated":"2016-08-08 20:23:52.000000000","message":"Done","commit_id":"e2ce8b56b504634b10f9ea2b43ae2d45b03f4fdc"}]}
