)]}'
{"neutron/db/l3_db.py":[{"author":{"_account_id":16688,"name":"Rodolfo Alonso","email":"ralonsoh@redhat.com","username":"rodolfo-alonso-hernandez"},"change_message_id":"b1e45122854ddb7db24d2dedb67df237d4b38562","unresolved":false,"context_lines":[{"line_number":1097,"context_line":"        the floating IP should be associated to."},{"line_number":1098,"context_line":"        \"\"\""},{"line_number":1099,"context_line":"        internal_port \u003d self._core_plugin.get_port(context, fip[\u0027port_id\u0027])"},{"line_number":1100,"context_line":"        port_same_tenant \u003d internal_port[\u0027tenant_id\u0027] \u003d\u003d tenant_id"},{"line_number":1101,"context_line":"        if not port_same_tenant and not context.is_admin:"},{"line_number":1102,"context_line":"            port_id \u003d fip[\u0027port_id\u0027]"},{"line_number":1103,"context_line":"            msg \u003d (_(\u0027Cannot process floating IP association with \u0027"},{"line_number":1104,"context_line":"                     \u0027Port %s, since that port is owned by a \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_f49b0363","line":1101,"range":{"start_line":1100,"start_character":0,"end_line":1101,"end_character":57},"updated":"2017-05-11 08:58:25.000000000","message":"This could be done in one line:\n\nif not context.is_admin and internal_port[\u0027tenant_id\u0027] !\u003d tenant_id:","commit_id":"45c886a51b8ef2c3eb4b2051e1a59f4aed09dbbc"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"ed9e0016b76d159d8bc9120a5f4d38db6953c9c1","unresolved":false,"context_lines":[{"line_number":1097,"context_line":"        the floating IP should be associated to."},{"line_number":1098,"context_line":"        \"\"\""},{"line_number":1099,"context_line":"        internal_port \u003d self._core_plugin.get_port(context, fip[\u0027port_id\u0027])"},{"line_number":1100,"context_line":"        port_same_tenant \u003d internal_port[\u0027tenant_id\u0027] \u003d\u003d tenant_id"},{"line_number":1101,"context_line":"        if not port_same_tenant and not context.is_admin:"},{"line_number":1102,"context_line":"            port_id \u003d fip[\u0027port_id\u0027]"},{"line_number":1103,"context_line":"            msg \u003d (_(\u0027Cannot process floating IP association with \u0027"},{"line_number":1104,"context_line":"                     \u0027Port %s, since that port is owned by a \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f013ff3_425a3d2a","line":1101,"range":{"start_line":1100,"start_character":0,"end_line":1101,"end_character":57},"in_reply_to":"1f013ff3_61742569","updated":"2017-05-17 06:42:20.000000000","message":"Rodolfo: True, I often try to split stuff like this out into logical blocks, but I think you\u0027re correct that it would be fine as one line.\n\nMiguel: It should be: If the ownership *does not* match, and you aren\u0027t an admin, this type of cross-tenant operation isn\u0027t allowed.","commit_id":"45c886a51b8ef2c3eb4b2051e1a59f4aed09dbbc"},{"author":{"_account_id":4694,"name":"Miguel Lavalle","email":"miguel@mlavalle.com","username":"minsel"},"change_message_id":"14ed502435c2eeeb8dc8c9b6211b5a7ce41ee002","unresolved":false,"context_lines":[{"line_number":1097,"context_line":"        the floating IP should be associated to."},{"line_number":1098,"context_line":"        \"\"\""},{"line_number":1099,"context_line":"        internal_port \u003d self._core_plugin.get_port(context, fip[\u0027port_id\u0027])"},{"line_number":1100,"context_line":"        port_same_tenant \u003d internal_port[\u0027tenant_id\u0027] \u003d\u003d tenant_id"},{"line_number":1101,"context_line":"        if not port_same_tenant and not context.is_admin:"},{"line_number":1102,"context_line":"            port_id \u003d fip[\u0027port_id\u0027]"},{"line_number":1103,"context_line":"            msg \u003d (_(\u0027Cannot process floating IP association with \u0027"},{"line_number":1104,"context_line":"                     \u0027Port %s, since that port is owned by a \u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f013ff3_61742569","line":1101,"range":{"start_line":1100,"start_character":0,"end_line":1101,"end_character":57},"in_reply_to":"3f044301_f49b0363","updated":"2017-05-16 20:35:12.000000000","message":"The way I read this part of the code and the  message in line 1103 below is that the API behavior we want is to not allow a different tenant owning the port, even if the association is performed by an admin. I am going to have other reviewers chime in","commit_id":"45c886a51b8ef2c3eb4b2051e1a59f4aed09dbbc"}]}
