)]}'
{"nova_powervm/tests/virt/powervm/test_vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"36054ed071f1ec268fbfb2a2b1aa44c068ba6814","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":786,"context_line":"                \u0027get_trunk_dev_name\u0027)"},{"line_number":787,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027)"},{"line_number":788,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027)"},{"line_number":789,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"},{"line_number":790,"context_line":"    def test_plug(self, mock_pvm_uuid, mock_mgmt_lpar, mock_p2p_cna,"},{"line_number":791,"context_line":"                  mock_trunk_dev_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_56d35239","line":788,"updated":"2017-07-24 18:16:15.000000000","message":"autospec while we\u0027re in the neighborhood.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fbcfacd7e6f59d122ad38a96e55fcbd5d6e922e5","unresolved":false,"context_lines":[{"line_number":785,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":786,"context_line":"                \u0027get_trunk_dev_name\u0027)"},{"line_number":787,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027)"},{"line_number":788,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027)"},{"line_number":789,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"},{"line_number":790,"context_line":"    def test_plug(self, mock_pvm_uuid, mock_mgmt_lpar, mock_p2p_cna,"},{"line_number":791,"context_line":"                  mock_trunk_dev_name):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_d66ce237","line":788,"in_reply_to":"ff346bd7_56d35239","updated":"2017-07-24 18:22:51.000000000","message":"bah.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":791,"context_line":"        self.inst \u003d mock.MagicMock(uuid\u003d\u0027inst_uuid\u0027)"},{"line_number":792,"context_line":"        self.drv \u003d vif.PvmOvsVifDriver(self.adpt, \u0027host_uuid\u0027, self.inst)"},{"line_number":793,"context_line":""},{"line_number":794,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":795,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027, autospec\u003dTrue)"},{"line_number":796,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027, autospec\u003dTrue)"},{"line_number":797,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_65e1a59b","line":794,"updated":"2017-09-06 21:23:15.000000000","message":"autospec\u003dTrue","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"7c770fef832830be5afc7c80a5042aa3886674f5","unresolved":false,"context_lines":[{"line_number":791,"context_line":"        self.inst \u003d mock.MagicMock(uuid\u003d\u0027inst_uuid\u0027)"},{"line_number":792,"context_line":"        self.drv \u003d vif.PvmOvsVifDriver(self.adpt, \u0027host_uuid\u0027, self.inst)"},{"line_number":793,"context_line":""},{"line_number":794,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":795,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027, autospec\u003dTrue)"},{"line_number":796,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027, autospec\u003dTrue)"},{"line_number":797,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_68197c78","line":794,"in_reply_to":"7f287b81_65e1a59b","updated":"2017-09-06 21:30:52.000000000","message":"Though it can\u0027t hurt, policy is to autospec stuff coming from outside of nova_powervm (i.e. pypowervm).","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"791bfd4d948a114c6e5369a589782752df25ccb8","unresolved":false,"context_lines":[{"line_number":791,"context_line":"        self.inst \u003d mock.MagicMock(uuid\u003d\u0027inst_uuid\u0027)"},{"line_number":792,"context_line":"        self.drv \u003d vif.PvmOvsVifDriver(self.adpt, \u0027host_uuid\u0027, self.inst)"},{"line_number":793,"context_line":""},{"line_number":794,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":795,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027, autospec\u003dTrue)"},{"line_number":796,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027, autospec\u003dTrue)"},{"line_number":797,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_a83c04c8","line":794,"in_reply_to":"7f287b81_68197c78","updated":"2017-09-06 21:32:01.000000000","message":"ok... you can ignore my autospec comments","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"cb51fa53108d9f6eb310a60e7a555a4a7ebd59df","unresolved":false,"context_lines":[{"line_number":791,"context_line":"        self.inst \u003d mock.MagicMock(uuid\u003d\u0027inst_uuid\u0027)"},{"line_number":792,"context_line":"        self.drv \u003d vif.PvmOvsVifDriver(self.adpt, \u0027host_uuid\u0027, self.inst)"},{"line_number":793,"context_line":""},{"line_number":794,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":795,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.crt_p2p_cna\u0027, autospec\u003dTrue)"},{"line_number":796,"context_line":"    @mock.patch(\u0027pypowervm.tasks.partition.get_mgmt_partition\u0027, autospec\u003dTrue)"},{"line_number":797,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_pvm_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_7e6a561a","line":794,"in_reply_to":"7f287b81_a83c04c8","updated":"2017-09-06 23:45:27.000000000","message":"Done","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":821,"context_line":"            mac_addr\u003d\u0027aa:bb:cc:dd:ee:ff\u0027, slot_num\u003dslot_num, dev_name\u003d\u0027device\u0027,"},{"line_number":822,"context_line":"            ovs_bridge\u003d\u0027br-int\u0027, ovs_ext_ids\u003dovs_ext_ids, configured_mtu\u003d1450)"},{"line_number":823,"context_line":""},{"line_number":824,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":825,"context_line":"    def test_plug_existing_vif(self, mock_trunk_dev_name):"},{"line_number":826,"context_line":"        # Mock the data"},{"line_number":827,"context_line":"        mock_trunk_dev_name.return_value \u003d \u0027device\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_45f7c95a","line":824,"updated":"2017-09-06 21:23:15.000000000","message":"autospec\u003dTrue","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"cb51fa53108d9f6eb310a60e7a555a4a7ebd59df","unresolved":false,"context_lines":[{"line_number":821,"context_line":"            mac_addr\u003d\u0027aa:bb:cc:dd:ee:ff\u0027, slot_num\u003dslot_num, dev_name\u003d\u0027device\u0027,"},{"line_number":822,"context_line":"            ovs_bridge\u003d\u0027br-int\u0027, ovs_ext_ids\u003dovs_ext_ids, configured_mtu\u003d1450)"},{"line_number":823,"context_line":""},{"line_number":824,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":825,"context_line":"    def test_plug_existing_vif(self, mock_trunk_dev_name):"},{"line_number":826,"context_line":"        # Mock the data"},{"line_number":827,"context_line":"        mock_trunk_dev_name.return_value \u003d \u0027device\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_5e731a17","line":824,"in_reply_to":"7f287b81_45f7c95a","updated":"2017-09-06 23:45:27.000000000","message":"Done","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":835,"context_line":"        self.assertIsNone(resp)"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.find_trunks\u0027, autospec\u003dTrue)"},{"line_number":838,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":839,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":840,"context_line":"                \u0027_find_cna_for_vif\u0027)"},{"line_number":841,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_e59b5514","line":838,"updated":"2017-09-06 21:23:15.000000000","message":"autospec\u003dTrue","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"cb51fa53108d9f6eb310a60e7a555a4a7ebd59df","unresolved":false,"context_lines":[{"line_number":835,"context_line":"        self.assertIsNone(resp)"},{"line_number":836,"context_line":""},{"line_number":837,"context_line":"    @mock.patch(\u0027pypowervm.tasks.cna.find_trunks\u0027, autospec\u003dTrue)"},{"line_number":838,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif._get_trunk_dev_name\u0027)"},{"line_number":839,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":840,"context_line":"                \u0027_find_cna_for_vif\u0027)"},{"line_number":841,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_3e704e08","line":838,"in_reply_to":"7f287b81_e59b5514","updated":"2017-09-06 23:45:27.000000000","message":"Done","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":960,"context_line":"            self.drv.adapter, parent\u003dmock_vio)"},{"line_number":961,"context_line":""},{"line_number":962,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":963,"context_line":"                \u0027_cleanup_orphan_adapters\u0027)"},{"line_number":964,"context_line":"    def test_post_live_migrate_at_source(self, mock_orphan_cleanup):"},{"line_number":965,"context_line":"        # Mock the vif"},{"line_number":966,"context_line":"        vif \u003d {\u0027devname\u0027: \u0027tap-dev\u0027, \u0027address\u0027: \u0027aa:bb:cc:dd:ee:ff\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_65a8851f","line":963,"updated":"2017-09-06 21:23:15.000000000","message":"autospec\u003dTrue","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"cb51fa53108d9f6eb310a60e7a555a4a7ebd59df","unresolved":false,"context_lines":[{"line_number":960,"context_line":"            self.drv.adapter, parent\u003dmock_vio)"},{"line_number":961,"context_line":""},{"line_number":962,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vif.PvmOvsVifDriver.\u0027"},{"line_number":963,"context_line":"                \u0027_cleanup_orphan_adapters\u0027)"},{"line_number":964,"context_line":"    def test_post_live_migrate_at_source(self, mock_orphan_cleanup):"},{"line_number":965,"context_line":"        # Mock the vif"},{"line_number":966,"context_line":"        vif \u003d {\u0027devname\u0027: \u0027tap-dev\u0027, \u0027address\u0027: \u0027aa:bb:cc:dd:ee:ff\u0027,"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_1e635244","line":963,"in_reply_to":"7f287b81_65a8851f","updated":"2017-09-06 23:45:27.000000000","message":"Done","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"}],"nova_powervm/virt/powervm/vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"12c0edd55649a655f4dd29c2a6fa82edd60a495d","unresolved":false,"context_lines":[{"line_number":714,"context_line":"        :return: The new vif that was created.  Only returned if new_vif is"},{"line_number":715,"context_line":"                 set to True.  Otherwise None is expected."},{"line_number":716,"context_line":"        \"\"\""},{"line_number":717,"context_line":"        cna_w \u003d super(PvmOvsVifDriver, self).plug(vif, slot_num,"},{"line_number":718,"context_line":"                                                  new_vif\u003dnew_vif)"},{"line_number":719,"context_line":"        if new_vif:"},{"line_number":720,"context_line":"            lpar_uuid \u003d vm.get_pvm_uuid(self.instance)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_16002a67","line":717,"range":{"start_line":717,"start_character":45,"end_line":717,"end_character":49},"updated":"2017-07-24 18:20:13.000000000","message":"Also, having changed the parent class, it looks like this doesn\u0027t actually do anything anymore.  Am I missing something?","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"12c0edd55649a655f4dd29c2a6fa82edd60a495d","unresolved":false,"context_lines":[{"line_number":714,"context_line":"        :return: The new vif that was created.  Only returned if new_vif is"},{"line_number":715,"context_line":"                 set to True.  Otherwise None is expected."},{"line_number":716,"context_line":"        \"\"\""},{"line_number":717,"context_line":"        cna_w \u003d super(PvmOvsVifDriver, self).plug(vif, slot_num,"},{"line_number":718,"context_line":"                                                  new_vif\u003dnew_vif)"},{"line_number":719,"context_line":"        if new_vif:"},{"line_number":720,"context_line":"            lpar_uuid \u003d vm.get_pvm_uuid(self.instance)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_f6b6c6d9","line":717,"range":{"start_line":717,"start_character":8,"end_line":717,"end_character":13},"updated":"2017-07-24 18:20:13.000000000","message":"unused","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fbcfacd7e6f59d122ad38a96e55fcbd5d6e922e5","unresolved":false,"context_lines":[{"line_number":714,"context_line":"        :return: The new vif that was created.  Only returned if new_vif is"},{"line_number":715,"context_line":"                 set to True.  Otherwise None is expected."},{"line_number":716,"context_line":"        \"\"\""},{"line_number":717,"context_line":"        cna_w \u003d super(PvmOvsVifDriver, self).plug(vif, slot_num,"},{"line_number":718,"context_line":"                                                  new_vif\u003dnew_vif)"},{"line_number":719,"context_line":"        if new_vif:"},{"line_number":720,"context_line":"            lpar_uuid \u003d vm.get_pvm_uuid(self.instance)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_96f3fa9e","line":717,"range":{"start_line":717,"start_character":45,"end_line":717,"end_character":49},"in_reply_to":"ff346bd7_16002a67","updated":"2017-07-24 18:22:51.000000000","message":"Good catch.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"36054ed071f1ec268fbfb2a2b1aa44c068ba6814","unresolved":false,"context_lines":[{"line_number":725,"context_line":"            mtu \u003d vif[\u0027network\u0027].get_meta(\u0027mtu\u0027)"},{"line_number":726,"context_line":"            dev_name \u003d self.get_trunk_dev_name(vif)"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"            meta_attrs \u003d [\u0027iface-id\u003d%s\u0027 % self.get_ovs_interfaceid(vif),"},{"line_number":729,"context_line":"                          \u0027iface-status\u003dactive\u0027,"},{"line_number":730,"context_line":"                          \u0027attached-mac\u003d%s\u0027 % vif[\u0027address\u0027],"},{"line_number":731,"context_line":"                          \u0027vm-uuid\u003d%s\u0027 % self.instance.uuid]"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"            # Create the trunk and client adapter."},{"line_number":734,"context_line":"            cna_w \u003d pvm_cna.crt_p2p_cna("}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_0b000367","line":731,"range":{"start_line":728,"start_character":0,"end_line":731,"end_character":60},"updated":"2017-07-24 18:16:15.000000000","message":"Seeing this in situ is making me wonder whether we should shim these as @propertys in pypowervm.  Is the set of keys (at least those we will reasonably expect to use) static and relatively small?","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fbcfacd7e6f59d122ad38a96e55fcbd5d6e922e5","unresolved":false,"context_lines":[{"line_number":725,"context_line":"            mtu \u003d vif[\u0027network\u0027].get_meta(\u0027mtu\u0027)"},{"line_number":726,"context_line":"            dev_name \u003d self.get_trunk_dev_name(vif)"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"            meta_attrs \u003d [\u0027iface-id\u003d%s\u0027 % self.get_ovs_interfaceid(vif),"},{"line_number":729,"context_line":"                          \u0027iface-status\u003dactive\u0027,"},{"line_number":730,"context_line":"                          \u0027attached-mac\u003d%s\u0027 % vif[\u0027address\u0027],"},{"line_number":731,"context_line":"                          \u0027vm-uuid\u003d%s\u0027 % self.instance.uuid]"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"            # Create the trunk and client adapter."},{"line_number":734,"context_line":"            cna_w \u003d pvm_cna.crt_p2p_cna("}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_f61246b1","line":731,"range":{"start_line":728,"start_character":0,"end_line":731,"end_character":60},"in_reply_to":"ff346bd7_0b000367","updated":"2017-07-24 18:22:51.000000000","message":"no, these keys are specific to openstack.  They should not be in pypowervm.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"cd9b87fc65208a3773716c380dda1b35499b423d","unresolved":false,"context_lines":[{"line_number":725,"context_line":"            mtu \u003d vif[\u0027network\u0027].get_meta(\u0027mtu\u0027)"},{"line_number":726,"context_line":"            dev_name \u003d self.get_trunk_dev_name(vif)"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"            meta_attrs \u003d [\u0027iface-id\u003d%s\u0027 % self.get_ovs_interfaceid(vif),"},{"line_number":729,"context_line":"                          \u0027iface-status\u003dactive\u0027,"},{"line_number":730,"context_line":"                          \u0027attached-mac\u003d%s\u0027 % vif[\u0027address\u0027],"},{"line_number":731,"context_line":"                          \u0027vm-uuid\u003d%s\u0027 % self.instance.uuid]"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"            # Create the trunk and client adapter."},{"line_number":734,"context_line":"            cna_w \u003d pvm_cna.crt_p2p_cna("}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_f15b702b","line":731,"range":{"start_line":728,"start_character":0,"end_line":731,"end_character":60},"in_reply_to":"ff346bd7_f61246b1","updated":"2017-07-24 18:38:37.000000000","message":"okay, well, let\u0027s make it a class or something that lets us do this a little prettier, especially since it\u0027s used both here and in pre_live_migrate_at_destination.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"12c0edd55649a655f4dd29c2a6fa82edd60a495d","unresolved":false,"context_lines":[{"line_number":737,"context_line":"                mac_addr\u003dvif[\u0027address\u0027], dev_name\u003ddev_name,"},{"line_number":738,"context_line":"                slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":739,"context_line":"                ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":740,"context_line":"        else:"},{"line_number":741,"context_line":"            cna_w \u003d None"},{"line_number":742,"context_line":""},{"line_number":743,"context_line":"        return cna_w"},{"line_number":744,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_b6c83e55","line":741,"range":{"start_line":740,"start_character":0,"end_line":741,"end_character":24},"updated":"2017-07-24 18:20:13.000000000","message":"would kinda prefer this at the top as\n\n if not new_vif:\n     return None\n\n...then the rest can be outdented.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"fbcfacd7e6f59d122ad38a96e55fcbd5d6e922e5","unresolved":false,"context_lines":[{"line_number":737,"context_line":"                mac_addr\u003dvif[\u0027address\u0027], dev_name\u003ddev_name,"},{"line_number":738,"context_line":"                slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":739,"context_line":"                ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":740,"context_line":"        else:"},{"line_number":741,"context_line":"            cna_w \u003d None"},{"line_number":742,"context_line":""},{"line_number":743,"context_line":"        return cna_w"},{"line_number":744,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_d6274212","line":741,"range":{"start_line":740,"start_character":0,"end_line":741,"end_character":24},"in_reply_to":"ff346bd7_b6c83e55","updated":"2017-07-24 18:22:51.000000000","message":"Done","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"cd9b87fc65208a3773716c380dda1b35499b423d","unresolved":false,"context_lines":[{"line_number":910,"context_line":"            if vm.norm_mac(orphan.mac) \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":911,"context_line":"                orphan.delete()"},{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    @staticmethod"},{"line_number":914,"context_line":"    def get_trunk_dev_name(vif):"},{"line_number":915,"context_line":"        \"\"\"Returns the device name for the trunk adapter."},{"line_number":916,"context_line":""},{"line_number":917,"context_line":"        A given VIF in the Linux I/O model will have a trunk adapter and a"},{"line_number":918,"context_line":"        client adapter.  This will return the trunk adapter\u0027s name as it"},{"line_number":919,"context_line":"        will appear on the management VM."},{"line_number":920,"context_line":""},{"line_number":921,"context_line":"        :param vif: The nova network interface"},{"line_number":922,"context_line":"        :return: The device name."},{"line_number":923,"context_line":"        \"\"\""},{"line_number":924,"context_line":"        if \u0027devname\u0027 in vif:"},{"line_number":925,"context_line":"            return vif[\u0027devname\u0027]"},{"line_number":926,"context_line":"        return (\"nic\" + vif[\u0027id\u0027])[:network_model.NIC_NAME_LEN]"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_519b5cc8","line":926,"range":{"start_line":913,"start_character":0,"end_line":926,"end_character":63},"updated":"2017-07-24 18:38:37.000000000","message":"Since it\u0027s static, you could just pull it out to the module level.  Then you wouldn\u0027t have to duplicate it.","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"5b0d2e0ee82d339af912b510fbe3b7861521bac1","unresolved":false,"context_lines":[{"line_number":910,"context_line":"            if vm.norm_mac(orphan.mac) \u003d\u003d vif[\u0027address\u0027]:"},{"line_number":911,"context_line":"                orphan.delete()"},{"line_number":912,"context_line":""},{"line_number":913,"context_line":"    @staticmethod"},{"line_number":914,"context_line":"    def get_trunk_dev_name(vif):"},{"line_number":915,"context_line":"        \"\"\"Returns the device name for the trunk adapter."},{"line_number":916,"context_line":""},{"line_number":917,"context_line":"        A given VIF in the Linux I/O model will have a trunk adapter and a"},{"line_number":918,"context_line":"        client adapter.  This will return the trunk adapter\u0027s name as it"},{"line_number":919,"context_line":"        will appear on the management VM."},{"line_number":920,"context_line":""},{"line_number":921,"context_line":"        :param vif: The nova network interface"},{"line_number":922,"context_line":"        :return: The device name."},{"line_number":923,"context_line":"        \"\"\""},{"line_number":924,"context_line":"        if \u0027devname\u0027 in vif:"},{"line_number":925,"context_line":"            return vif[\u0027devname\u0027]"},{"line_number":926,"context_line":"        return (\"nic\" + vif[\u0027id\u0027])[:network_model.NIC_NAME_LEN]"}],"source_content_type":"text/x-python","patch_set":1,"id":"ff346bd7_a6700974","line":926,"range":{"start_line":913,"start_character":0,"end_line":926,"end_character":63},"in_reply_to":"ff346bd7_519b5cc8","updated":"2017-07-24 20:05:11.000000000","message":"OK","commit_id":"21dd9c1cb2e2051e7bc4f72f87a0b7cdbfabf92a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"185c381c90e245a31bff2b3921999ce4c613ddf3","unresolved":false,"context_lines":[{"line_number":725,"context_line":"        mtu \u003d vif[\u0027network\u0027].get_meta(\u0027mtu\u0027)"},{"line_number":726,"context_line":"        dev_name \u003d _get_trunk_dev_name(vif)"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"        meta_attrs \u003d [\u0027iface-id\u003d%s\u0027 % self.get_ovs_interfaceid(vif),"},{"line_number":729,"context_line":"                      \u0027iface-status\u003dactive\u0027,"},{"line_number":730,"context_line":"                      \u0027attached-mac\u003d%s\u0027 % vif[\u0027address\u0027],"},{"line_number":731,"context_line":"                      \u0027vm-uuid\u003d%s\u0027 % self.instance.uuid]"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"        # Create the trunk and client adapter."},{"line_number":734,"context_line":"        return pvm_cna.crt_p2p_cna("}],"source_content_type":"text/x-python","patch_set":2,"id":"ff346bd7_d904127e","line":731,"range":{"start_line":728,"start_character":0,"end_line":731,"end_character":56},"updated":"2017-07-24 22:49:28.000000000","message":"See PS1 comment","commit_id":"828c8be17317130989ba6f845951bb1f21c307d0"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"aacba603af7aebb9f142e1294b6925c37a1aec9c","unresolved":false,"context_lines":[{"line_number":725,"context_line":"        mtu \u003d vif[\u0027network\u0027].get_meta(\u0027mtu\u0027)"},{"line_number":726,"context_line":"        dev_name \u003d _get_trunk_dev_name(vif)"},{"line_number":727,"context_line":""},{"line_number":728,"context_line":"        meta_attrs \u003d [\u0027iface-id\u003d%s\u0027 % self.get_ovs_interfaceid(vif),"},{"line_number":729,"context_line":"                      \u0027iface-status\u003dactive\u0027,"},{"line_number":730,"context_line":"                      \u0027attached-mac\u003d%s\u0027 % vif[\u0027address\u0027],"},{"line_number":731,"context_line":"                      \u0027vm-uuid\u003d%s\u0027 % self.instance.uuid]"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"        # Create the trunk and client adapter."},{"line_number":734,"context_line":"        return pvm_cna.crt_p2p_cna("}],"source_content_type":"text/x-python","patch_set":2,"id":"df3967d1_663878ed","line":731,"range":{"start_line":728,"start_character":0,"end_line":731,"end_character":56},"in_reply_to":"ff346bd7_d904127e","updated":"2017-08-03 15:22:40.000000000","message":"I will convert meta_attrs into a class. It is being referenced down below (.join..), will make a change as well (line 739).","commit_id":"828c8be17317130989ba6f845951bb1f21c307d0"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"0bfd4f1818e03a3c0a89e824f8ec4fec37400881","unresolved":false,"context_lines":[{"line_number":751,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, crt_vswitch\u003dTrue,"},{"line_number":752,"context_line":"            mac_addr\u003dvif[\u0027address\u0027], dev_name\u003ddev_name,"},{"line_number":753,"context_line":"            slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":754,"context_line":"            ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":755,"context_line":""},{"line_number":756,"context_line":"    @staticmethod"},{"line_number":757,"context_line":"    def get_ovs_interfaceid(vif):"}],"source_content_type":"text/x-python","patch_set":3,"id":"9f436f4f_b45845fa","line":754,"range":{"start_line":754,"start_character":24,"end_line":754,"end_character":44},"updated":"2017-08-18 14:20:49.000000000","message":"Or make a __str__ method in PvmMetaAttrs that does this join.","commit_id":"ce671d9749e3f89ef97fb8034354649bd4a5150d"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"3ae58e74ff44a8bb38eb93c7e2582347773e5bdb","unresolved":false,"context_lines":[{"line_number":751,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, crt_vswitch\u003dTrue,"},{"line_number":752,"context_line":"            mac_addr\u003dvif[\u0027address\u0027], dev_name\u003ddev_name,"},{"line_number":753,"context_line":"            slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":754,"context_line":"            ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":755,"context_line":""},{"line_number":756,"context_line":"    @staticmethod"},{"line_number":757,"context_line":"    def get_ovs_interfaceid(vif):"}],"source_content_type":"text/x-python","patch_set":3,"id":"7f287b81_f546e721","line":754,"range":{"start_line":754,"start_character":24,"end_line":754,"end_character":44},"in_reply_to":"9f436f4f_b45845fa","updated":"2017-08-22 13:18:42.000000000","message":"Done","commit_id":"ce671d9749e3f89ef97fb8034354649bd4a5150d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"19ab1629965f75c2973ddeed1c66b6cc4a9512da","unresolved":false,"context_lines":[{"line_number":830,"context_line":"            self.adapter, self.host_uuid, [mgmt_wrap.uuid],"},{"line_number":831,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003ddev,"},{"line_number":832,"context_line":"            ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":833,"context_line":"            ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":834,"context_line":""},{"line_number":835,"context_line":"        # Save this data for the migration command."},{"line_number":836,"context_line":"        vea_vlan_mappings[vif[\u0027address\u0027]] \u003d cna_w.pvid"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_5821729f","line":833,"range":{"start_line":833,"start_character":24,"end_line":833,"end_character":44},"updated":"2017-08-22 13:45:13.000000000","message":"use str here too","commit_id":"7b72a6eec57fd74bcbb7f1ff5104d431f7f7d993"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"fbf7b6585ecb43d3efc38f40b182c65e86530705","unresolved":false,"context_lines":[{"line_number":830,"context_line":"            self.adapter, self.host_uuid, [mgmt_wrap.uuid],"},{"line_number":831,"context_line":"            CONF.powervm.pvm_vswitch_for_novalink_io, dev_name\u003ddev,"},{"line_number":832,"context_line":"            ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":833,"context_line":"            ovs_ext_ids\u003d\u0027,\u0027.join(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":834,"context_line":""},{"line_number":835,"context_line":"        # Save this data for the migration command."},{"line_number":836,"context_line":"        vea_vlan_mappings[vif[\u0027address\u0027]] \u003d cna_w.pvid"}],"source_content_type":"text/x-python","patch_set":5,"id":"7f287b81_580df28e","line":833,"range":{"start_line":833,"start_character":24,"end_line":833,"end_character":44},"in_reply_to":"7f287b81_5821729f","updated":"2017-08-22 14:08:29.000000000","message":"Done","commit_id":"7b72a6eec57fd74bcbb7f1ff5104d431f7f7d993"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":319,"context_line":"def _get_trunk_dev_name(vif):"},{"line_number":320,"context_line":"    \"\"\"Returns the device name for the trunk adapter."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    A given VIF in the Linux I/O model will have a trunk adapter and a"},{"line_number":323,"context_line":"    client adapter.  This will return the trunk adapter\u0027s name as it"},{"line_number":324,"context_line":"    will appear on the management VM."},{"line_number":325,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_258b9d1f","line":322,"range":{"start_line":322,"start_character":23,"end_line":322,"end_character":38},"updated":"2017-09-06 21:23:15.000000000","message":"this isn\u0027t specific to LIO","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"cb51fa53108d9f6eb310a60e7a555a4a7ebd59df","unresolved":false,"context_lines":[{"line_number":319,"context_line":"def _get_trunk_dev_name(vif):"},{"line_number":320,"context_line":"    \"\"\"Returns the device name for the trunk adapter."},{"line_number":321,"context_line":""},{"line_number":322,"context_line":"    A given VIF in the Linux I/O model will have a trunk adapter and a"},{"line_number":323,"context_line":"    client adapter.  This will return the trunk adapter\u0027s name as it"},{"line_number":324,"context_line":"    will appear on the management VM."},{"line_number":325,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_1e96b2f1","line":322,"range":{"start_line":322,"start_character":23,"end_line":322,"end_character":38},"in_reply_to":"7f287b81_258b9d1f","updated":"2017-09-06 23:45:27.000000000","message":"Done","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"172dea6ed006f0b22170dd26808da6b3d523e19d","unresolved":false,"context_lines":[{"line_number":701,"context_line":"    \"\"\""},{"line_number":702,"context_line":""},{"line_number":703,"context_line":"    def __init__(self, vif, instance):"},{"line_number":704,"context_line":"        \"\"\"Initializes a VIF Driver."},{"line_number":705,"context_line":""},{"line_number":706,"context_line":"        :param vif: The virtual interface for the instance"},{"line_number":707,"context_line":"        :param instance: The nova instance that the vif action will be run"}],"source_content_type":"text/x-python","patch_set":6,"id":"7f287b81_a5d1cdfd","line":704,"range":{"start_line":704,"start_character":11,"end_line":704,"end_character":36},"updated":"2017-09-06 21:23:15.000000000","message":"wrong...","commit_id":"a69eae7669e19000c0ca7d5fb7c5cbe48c0756e9"}]}
