)]}'
{"networking_ovn/common/ovn_client.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"e8c1ac8549097fabacb4d377b1937173af400297","unresolved":false,"context_lines":[{"line_number":516,"context_line":"                return ext_fixed_ip[\u0027ip_address\u0027], subnet.get(\u0027gateway_ip\u0027)"},{"line_number":517,"context_line":"        return \u0027\u0027, \u0027\u0027"},{"line_number":518,"context_line":""},{"line_number":519,"context_line":"    def _update_router_routes(self, context, router_id, add, remove):"},{"line_number":520,"context_line":"        lrouter_name \u003d utils.ovn_name(router_id)"},{"line_number":521,"context_line":"        with self._nb_idl.transaction(check_error\u003dTrue) as txn:"},{"line_number":522,"context_line":"            for route in add:"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f4b6375_2fcd54b6","side":"PARENT","line":519,"updated":"2017-10-27 10:33:10.000000000","message":"Just as a note, this method was duplicated with another one called _update_lrouter_routes (note the l in router). That\u0027s why it has been removed.","commit_id":"edfd2001c6d2590b1c49821a9664c2abe23e6719"}],"networking_ovn/ovsdb/ovn_api.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"71a7072ceaf6c43badd76ce9590ef444f4b1a487","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        :type lrouter:       string"},{"line_number":159,"context_line":"        :param lswitch:      The unique name of the lswitch"},{"line_number":160,"context_line":"        :type lswitch:       string"},{"line_number":161,"context_line":"        :param may_exist     If true, checks if the DHCP options for"},{"line_number":162,"context_line":"                             subnet_id exists or not. If it already exists,"},{"line_number":163,"context_line":"                             it updates the row with the columns specified."},{"line_number":164,"context_line":"                             Else creates a new row."},{"line_number":165,"context_line":"        :type may_exist:     bool"},{"line_number":166,"context_line":"        :param columns:      Dictionary of lrouter columns"},{"line_number":167,"context_line":"                             Supported columns: external_ids, mac, network"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_5b592733","line":164,"range":{"start_line":161,"start_character":28,"end_line":164,"end_character":52},"updated":"2017-10-31 09:22:16.000000000","message":"copy/paste error :)","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"42eb454735af0628988314c88d07cd0d0fc81b9a","unresolved":false,"context_lines":[{"line_number":158,"context_line":"        :type lrouter:       string"},{"line_number":159,"context_line":"        :param lswitch:      The unique name of the lswitch"},{"line_number":160,"context_line":"        :type lswitch:       string"},{"line_number":161,"context_line":"        :param may_exist     If true, checks if the DHCP options for"},{"line_number":162,"context_line":"                             subnet_id exists or not. If it already exists,"},{"line_number":163,"context_line":"                             it updates the row with the columns specified."},{"line_number":164,"context_line":"                             Else creates a new row."},{"line_number":165,"context_line":"        :type may_exist:     bool"},{"line_number":166,"context_line":"        :param columns:      Dictionary of lrouter columns"},{"line_number":167,"context_line":"                             Supported columns: external_ids, mac, network"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_e116e449","line":164,"range":{"start_line":161,"start_character":28,"end_line":164,"end_character":52},"in_reply_to":"3f4b6375_5b592733","updated":"2017-10-31 10:23:35.000000000","message":"++","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"}],"networking_ovn/tests/unit/ovsdb/test_commands.py":[{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"71a7072ceaf6c43badd76ce9590ef444f4b1a487","unresolved":false,"context_lines":[{"line_number":646,"context_line":"        with mock.patch.object(idlutils, \u0027row_by_value\u0027,"},{"line_number":647,"context_line":"                               side_effect\u003didlutils.RowNotFound):"},{"line_number":648,"context_line":"            cmd \u003d commands.AddLRouterPortCommand("},{"line_number":649,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, False)"},{"line_number":650,"context_line":"            self.assertRaises(RuntimeError, cmd.run_idl, self.transaction)"},{"line_number":651,"context_line":"            self.transaction.insert.assert_not_called()"},{"line_number":652,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_fbbe93fd","line":649,"range":{"start_line":649,"start_character":58,"end_line":649,"end_character":63},"updated":"2017-10-31 09:22:16.000000000","message":"nit: I know the rest of the arguments are positional but since this one is new, i\u0027d rather write it like may_exist\u003dFalse. What do you think? It really improves readability IMHO","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"42eb454735af0628988314c88d07cd0d0fc81b9a","unresolved":false,"context_lines":[{"line_number":646,"context_line":"        with mock.patch.object(idlutils, \u0027row_by_value\u0027,"},{"line_number":647,"context_line":"                               side_effect\u003didlutils.RowNotFound):"},{"line_number":648,"context_line":"            cmd \u003d commands.AddLRouterPortCommand("},{"line_number":649,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, False)"},{"line_number":650,"context_line":"            self.assertRaises(RuntimeError, cmd.run_idl, self.transaction)"},{"line_number":651,"context_line":"            self.transaction.insert.assert_not_called()"},{"line_number":652,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_812170a2","line":649,"range":{"start_line":649,"start_character":58,"end_line":649,"end_character":63},"in_reply_to":"3f4b6375_fbbe93fd","updated":"2017-10-31 10:23:35.000000000","message":"True, yeah it\u0027s more explicit... Will fix","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"71a7072ceaf6c43badd76ce9590ef444f4b1a487","unresolved":false,"context_lines":[{"line_number":654,"context_line":"        with mock.patch.object(idlutils, \u0027row_by_value\u0027,"},{"line_number":655,"context_line":"                               return_value\u003dmock.ANY):"},{"line_number":656,"context_line":"            cmd \u003d commands.AddLRouterPortCommand("},{"line_number":657,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, False)"},{"line_number":658,"context_line":"            self.assertRaises(RuntimeError, cmd.run_idl, self.transaction)"},{"line_number":659,"context_line":"            self.transaction.insert.assert_not_called()"},{"line_number":660,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_dbb99715","line":657,"range":{"start_line":657,"start_character":58,"end_line":657,"end_character":63},"updated":"2017-10-31 09:22:16.000000000","message":"ditto","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"71a7072ceaf6c43badd76ce9590ef444f4b1a487","unresolved":false,"context_lines":[{"line_number":667,"context_line":"                attrs\u003d{\u0027foo\u0027: None})"},{"line_number":668,"context_line":"            self.transaction.insert.return_value \u003d fake_lrp"},{"line_number":669,"context_line":"            cmd \u003d commands.AddLRouterPortCommand("},{"line_number":670,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, fake_lrouter.name, False, foo\u003d\u0027bar\u0027)"},{"line_number":671,"context_line":"            cmd.run_idl(self.transaction)"},{"line_number":672,"context_line":"            self.transaction.insert.assert_called_once_with("},{"line_number":673,"context_line":"                self.ovn_api._tables[\u0027Logical_Router_Port\u0027])"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f4b6375_bb36dbb3","line":670,"range":{"start_line":670,"start_character":61,"end_line":670,"end_character":66},"updated":"2017-10-31 09:22:16.000000000","message":"ditto","commit_id":"1b07458b83fccc7e23b39dda6627d6196bbb9da9"},{"author":{"_account_id":23458,"name":"Dong Jun","email":"dongjun.01@bytedance.com","username":"Dongj"},"change_message_id":"3fa1998564b33e6667ea0c485bf85ab43ebb774f","unresolved":false,"context_lines":[{"line_number":657,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, may_exist\u003dFalse)"},{"line_number":658,"context_line":"            self.assertRaises(RuntimeError, cmd.run_idl, self.transaction)"},{"line_number":659,"context_line":"            self.transaction.insert.assert_not_called()"},{"line_number":660,"context_line":""},{"line_number":661,"context_line":"    def test_lrouter_port_add(self):"},{"line_number":662,"context_line":"        fake_lrouter \u003d fakes.FakeOvsdbRow.create_one_ovsdb_row()"},{"line_number":663,"context_line":"        with mock.patch.object(idlutils, \u0027row_by_value\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_6c79bdfa","line":660,"updated":"2017-11-14 06:57:39.000000000","message":"Need a Test, other LGTM.\n\n    def test_lrouter_port_may_exist(self):\n        with mock.patch.object(idlutils, \u0027row_by_value\u0027,\n                               return_value\u003dmock.ANY):\n            cmd \u003d commands.AddLRouterPortCommand(\n                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, may_exist\u003dTrue)\n            cmd.run_idl(self.transaction)\n            self.transaction.insert.assert_not_called()","commit_id":"d0e445b7fde23c9c586d083c5387d390130f2104"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"8a9014b84c1ae8ba4939efd1b3b4b28eb8cdf5f4","unresolved":false,"context_lines":[{"line_number":657,"context_line":"                self.ovn_api, \u0027fake-lrp\u0027, \u0027fake-lrouter\u0027, may_exist\u003dFalse)"},{"line_number":658,"context_line":"            self.assertRaises(RuntimeError, cmd.run_idl, self.transaction)"},{"line_number":659,"context_line":"            self.transaction.insert.assert_not_called()"},{"line_number":660,"context_line":""},{"line_number":661,"context_line":"    def test_lrouter_port_add(self):"},{"line_number":662,"context_line":"        fake_lrouter \u003d fakes.FakeOvsdbRow.create_one_ovsdb_row()"},{"line_number":663,"context_line":"        with mock.patch.object(idlutils, \u0027row_by_value\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_69464a7f","line":660,"in_reply_to":"1f485f77_6c79bdfa","updated":"2017-11-14 09:42:38.000000000","message":"Indeed! Thanks for pointing it out Dong.\n\nI will update the patch","commit_id":"d0e445b7fde23c9c586d083c5387d390130f2104"}]}
