)]}'
{"neutron/db/l3_hamode_db.py":[{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"7c24f07e64865a1d5c9281961677547c0a128981","unresolved":false,"context_lines":[{"line_number":666,"context_line":"                         [constants.DEVICE_OWNER_HA_REPLICATED_INT,"},{"line_number":667,"context_line":"                          constants.DEVICE_OWNER_ROUTER_SNAT,"},{"line_number":668,"context_line":"                          constants.DEVICE_OWNER_ROUTER_GW]}"},{"line_number":669,"context_line":"        ports \u003d self._core_plugin.get_ports(admin_ctx, filters\u003ddevice_filter)"},{"line_number":670,"context_line":"        active_ports \u003d (port for port in ports"},{"line_number":671,"context_line":"            if states[port[\u0027device_id\u0027]] \u003d\u003d n_const.HA_ROUTER_STATE_ACTIVE)"},{"line_number":672,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_6d961af3","line":669,"updated":"2018-01-17 04:39:22.000000000","message":"nit: we could probably also pass fields to extract just device_id and id (the only two fields that are used in the method).","commit_id":"fea188acd173fe09e2e6f98534c4b9cb1523ebc6"},{"author":{"_account_id":9656,"name":"Ihar Hrachyshka","email":"ihrachys@redhat.com","username":"ihrachys","status":"Red Hat Networking Systems Engineer"},"change_message_id":"a8cfb874be7920815d493dfc8c99a661c071c8a7","unresolved":false,"context_lines":[{"line_number":666,"context_line":"                         [constants.DEVICE_OWNER_HA_REPLICATED_INT,"},{"line_number":667,"context_line":"                          constants.DEVICE_OWNER_ROUTER_SNAT,"},{"line_number":668,"context_line":"                          constants.DEVICE_OWNER_ROUTER_GW]}"},{"line_number":669,"context_line":"        ports \u003d self._core_plugin.get_ports(admin_ctx, filters\u003ddevice_filter)"},{"line_number":670,"context_line":"        active_ports \u003d (port for port in ports"},{"line_number":671,"context_line":"            if states[port[\u0027device_id\u0027]] \u003d\u003d n_const.HA_ROUTER_STATE_ACTIVE)"},{"line_number":672,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_cf0ced95","line":669,"in_reply_to":"7f96bb07_360cd33f","updated":"2018-01-17 17:13:05.000000000","message":"I think it\u0027s not really worth it: most plugins including ml2 don\u0027t really optimize their work done when fields are passed. The only cpu time saved is the one wasted in api layer to serialize the dict, but we don\u0027t invoke it here at all.","commit_id":"fea188acd173fe09e2e6f98534c4b9cb1523ebc6"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"de59b8308baf4f550fa86bbfe83ab014fb849d6b","unresolved":false,"context_lines":[{"line_number":666,"context_line":"                         [constants.DEVICE_OWNER_HA_REPLICATED_INT,"},{"line_number":667,"context_line":"                          constants.DEVICE_OWNER_ROUTER_SNAT,"},{"line_number":668,"context_line":"                          constants.DEVICE_OWNER_ROUTER_GW]}"},{"line_number":669,"context_line":"        ports \u003d self._core_plugin.get_ports(admin_ctx, filters\u003ddevice_filter)"},{"line_number":670,"context_line":"        active_ports \u003d (port for port in ports"},{"line_number":671,"context_line":"            if states[port[\u0027device_id\u0027]] \u003d\u003d n_const.HA_ROUTER_STATE_ACTIVE)"},{"line_number":672,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_360cd33f","line":669,"in_reply_to":"7f96bb07_6d961af3","updated":"2018-01-17 14:45:11.000000000","message":"So I decided to look in the tree and I didn\u0027t see any callers of get_port* using fields\u003d, but it could probably be an optimization in a number of places.","commit_id":"fea188acd173fe09e2e6f98534c4b9cb1523ebc6"}]}
