)]}'
{"openstack_dashboard/dashboards/project/networks/ports/forms.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"db9e0b433a938003d7db8fe11c1e7909c53d03b9","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d False"},{"line_number":98,"context_line":"                    extension_kwargs[\u0027security_groups\u0027] \u003d []"},{"line_number":99,"context_line":"                else:"},{"line_number":100,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d True"},{"line_number":101,"context_line":"                extension_kwargs[\u0027mac_learning_enabled\u0027] \u003d data[\u0027mac_state\u0027]"},{"line_number":102,"context_line":"            port \u003d api.neutron.port_update(request,"},{"line_number":103,"context_line":"                                           data[\u0027port_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ffa3b31_9c006cad","line":100,"updated":"2017-04-20 09:10:26.000000000","message":"I think it is better to ask users to change both port_security_enabled, mac_state and security_group and raise an error message if a specified combination is not valid. I don\u0027t think it is a good idea to change other attributes implicitly. Thought?","commit_id":"fe058e89f8b10180db5fc42c6279134e4f5be3ca"},{"author":{"_account_id":18940,"name":"Gyorgy Szombathelyi","email":"gyurco@freemail.hu","username":"gyurco78"},"change_message_id":"4f0ca7ff845282b32bd24de2f425c209c1abc378","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d False"},{"line_number":98,"context_line":"                    extension_kwargs[\u0027security_groups\u0027] \u003d []"},{"line_number":99,"context_line":"                else:"},{"line_number":100,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d True"},{"line_number":101,"context_line":"                extension_kwargs[\u0027mac_learning_enabled\u0027] \u003d data[\u0027mac_state\u0027]"},{"line_number":102,"context_line":"            port \u003d api.neutron.port_update(request,"},{"line_number":103,"context_line":"                                           data[\u0027port_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"7ffa3b31_b7b0e18b","line":100,"in_reply_to":"7ffa3b31_9c006cad","updated":"2017-04-20 09:51:17.000000000","message":"Just note that security groups are not changeable on a per-port basis in Horizon. Actually the process to disable port security/mac learning is very tedious:\n\n 1. disable security groups for the instance\n 2. disable port security\n 3. disable MAC learning\n\nAnd if you miss a step, you won\u0027t get the error from Neutron, but just an Unable to do xy.","commit_id":"fe058e89f8b10180db5fc42c6279134e4f5be3ca"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"1f617eef64bea9024a875d6aadc767079f64bf22","unresolved":false,"context_lines":[{"line_number":97,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d False"},{"line_number":98,"context_line":"                    extension_kwargs[\u0027security_groups\u0027] \u003d []"},{"line_number":99,"context_line":"                else:"},{"line_number":100,"context_line":"                    extension_kwargs[\u0027port_security_enabled\u0027] \u003d True"},{"line_number":101,"context_line":"                extension_kwargs[\u0027mac_learning_enabled\u0027] \u003d data[\u0027mac_state\u0027]"},{"line_number":102,"context_line":"            port \u003d api.neutron.port_update(request,"},{"line_number":103,"context_line":"                                           data[\u0027port_id\u0027],"}],"source_content_type":"text/x-python","patch_set":1,"id":"3f044301_767d50e6","line":100,"in_reply_to":"7ffa3b31_b7b0e18b","updated":"2017-05-03 23:14:17.000000000","message":"FYI https://review.openstack.org/404178 tries to add security group association for neutron port. Hopefully this lands in Pike. In the proposed code, this patch clears security groups when port security is disabled. This matches the behavior of the form, i.e. if port security is disabled in the form, the security group tab will be hidden.\n\nIMHO the behavior of the form should match what actually happens. In case of this patch, if you change port security and security group when mac learning is enabled, it is nice if the field of port security is cleared  and security groups is hidden. Another solution is to show error message if mac learning is enabled and port security is enabled.\n\nI think you can assume the security group operation for a neutron port is supported (if you want). it may simplify your implementation.","commit_id":"fe058e89f8b10180db5fc42c6279134e4f5be3ca"}]}
