)]}'
{"networking_ovn/ovsdb/commands.py":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"3b94c34e9fe8d91cf13f5889dda4b60bffa38942","unresolved":false,"context_lines":[{"line_number":1061,"context_line":"                ovn_resource \u003d self._get_subnet()"},{"line_number":1062,"context_line":"            else:"},{"line_number":1063,"context_line":"                ovn_resource \u003d self.api.lookup(ovn_table,"},{"line_number":1064,"context_line":"                                               utils.ovn_name(self.name))"},{"line_number":1065,"context_line":"        except idlutils.RowNotFound:"},{"line_number":1066,"context_line":"            if self.if_exists:"},{"line_number":1067,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_23e36836","line":1064,"updated":"2018-01-24 12:33:02.000000000","message":"I\u0027m not sure this applies for all resources, I can see routers (as u have in the bug ticket) does uses utils.ovn_name() but others like ports do not [0].\n\nI think what we can do here, is to add a new elif filtering the resources that needs to use ovn_name and then ones that don\u0027t by its type.\n\nI wish we were consistent with the use of names in OVNDB :-(. Good catch on this anyway.\n\n[0] http://paste.openstack.org/show/651977/","commit_id":"11f80482fb8fac0075b4ded1a8c0ea25f8e5de0d"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"d804fceef050ddeb23b0ba2cf918c51126246f8c","unresolved":false,"context_lines":[{"line_number":1061,"context_line":"                ovn_resource \u003d self._get_subnet()"},{"line_number":1062,"context_line":"            else:"},{"line_number":1063,"context_line":"                ovn_resource \u003d self.api.lookup(ovn_table,"},{"line_number":1064,"context_line":"                                               utils.ovn_name(self.name))"},{"line_number":1065,"context_line":"        except idlutils.RowNotFound:"},{"line_number":1066,"context_line":"            if self.if_exists:"},{"line_number":1067,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_e38a6019","line":1064,"in_reply_to":"7f96bb07_23e36836","updated":"2018-01-24 12:47:37.000000000","message":"Or probably easier, we can change it here: https://github.com/openstack/networking-ovn/blob/1563875b018a4f3bd189e2a0bd31da64616f4d4e/networking_ovn/common/ovn_client.py#L903-L904\n\ns/router_id/router_name\n\nWe do it similarly for networks for example: https://github.com/openstack/networking-ovn/blob/1563875b018a4f3bd189e2a0bd31da64616f4d4e/networking_ovn/common/ovn_client.py#L1118-L1119","commit_id":"11f80482fb8fac0075b4ded1a8c0ea25f8e5de0d"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"222f7bfff2c10246ecb662631dec07d6f4732c4c","unresolved":false,"context_lines":[{"line_number":1061,"context_line":"                ovn_resource \u003d self._get_subnet()"},{"line_number":1062,"context_line":"            else:"},{"line_number":1063,"context_line":"                ovn_resource \u003d self.api.lookup(ovn_table,"},{"line_number":1064,"context_line":"                                               utils.ovn_name(self.name))"},{"line_number":1065,"context_line":"        except idlutils.RowNotFound:"},{"line_number":1066,"context_line":"            if self.if_exists:"},{"line_number":1067,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_a37f78dd","line":1064,"in_reply_to":"7f96bb07_23e36836","updated":"2018-01-24 12:53:11.000000000","message":"Yeah I agree with Lucas even though the code will be ugly... Maybe we should be consistent with names if at all possible and get rid of the bunch of \u0027if-elif\u0027 later.","commit_id":"11f80482fb8fac0075b4ded1a8c0ea25f8e5de0d"},{"author":{"_account_id":21550,"name":"xurong00037997","email":"xu.rong@zte.com.cn","username":"xurong"},"change_message_id":"96e853217e705d0ec8a3df618738e95d9d727b41","unresolved":false,"context_lines":[{"line_number":1061,"context_line":"                ovn_resource \u003d self._get_subnet()"},{"line_number":1062,"context_line":"            else:"},{"line_number":1063,"context_line":"                ovn_resource \u003d self.api.lookup(ovn_table,"},{"line_number":1064,"context_line":"                                               utils.ovn_name(self.name))"},{"line_number":1065,"context_line":"        except idlutils.RowNotFound:"},{"line_number":1066,"context_line":"            if self.if_exists:"},{"line_number":1067,"context_line":"                return"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_0b94bc43","line":1064,"in_reply_to":"7f96bb07_e38a6019","updated":"2018-01-25 00:38:45.000000000","message":"OK,I\u0027ll fix it,thanks;-)","commit_id":"11f80482fb8fac0075b4ded1a8c0ea25f8e5de0d"}]}
