)]}'
{"etc/policy.json":[{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"77f6eabe90d80d630a083af3df0456cb7a59ee08","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    \"create_port\": \"\","},{"line_number":74,"context_line":"    \"create_port:device_owner\": \"not rule:network_device or rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":75,"context_line":"    \"create_port:mac_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":76,"context_line":"    \"create_port:fixed_ips\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":77,"context_line":"    \"create_port:fixed_ips:ip_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":78,"context_line":"    \"create_port:fixed_ips:subnet_id\": \"rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared\","},{"line_number":79,"context_line":"    \"create_port:port_security_enabled\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_06f41fce","line":76,"updated":"2018-06-22 17:48:31.000000000","message":"I\u0027m not sure what this gets us as the two allowed items in the dict are already below.","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"57e13fdb890c132b956d8f6d91199932856ad3f1","unresolved":false,"context_lines":[{"line_number":73,"context_line":"    \"create_port\": \"\","},{"line_number":74,"context_line":"    \"create_port:device_owner\": \"not rule:network_device or rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":75,"context_line":"    \"create_port:mac_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":76,"context_line":"    \"create_port:fixed_ips\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":77,"context_line":"    \"create_port:fixed_ips:ip_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":78,"context_line":"    \"create_port:fixed_ips:subnet_id\": \"rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared\","},{"line_number":79,"context_line":"    \"create_port:port_security_enabled\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_e578c28f","line":76,"in_reply_to":"5f7c97a3_06f41fce","updated":"2018-06-26 14:20:56.000000000","message":"This doesn\u0027t buy the Neutron team anything per se. It\u0027s not meant to be an enhancement; instead, it\u0027s just documenting a policy action enforced by Neutron.\n\nAccording to the governance spec in the commit message, benefits of policy in code documentation include:\n\n* \"Documentation describing each policy is generated and available to assist operators.\n* \"Project developers have a way to communicate changing defaults to operators through a library. Think of this like marking configuration values for deprecation or removal. The important bit is that we have a programmatic way to signal those changes for operators.\"\n\nWhile Neutron doesn\u0027t have policy in code documentation, this policy file is its surrogate.\n\nAnother argument is that operators downstream can simply just add this here and modify Neutron behavior accordingly: if they have that power (since the policy is enforced by Neutron), why not just convey what the intended default is from the get-go?","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"77f6eabe90d80d630a083af3df0456cb7a59ee08","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    \"update_port\": \"rule:admin_or_owner or rule:context_is_advsvc\","},{"line_number":91,"context_line":"    \"update_port:device_owner\": \"not rule:network_device or rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":92,"context_line":"    \"update_port:mac_address\": \"rule:admin_only or rule:context_is_advsvc\","},{"line_number":93,"context_line":"    \"update_port:fixed_ips\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":94,"context_line":"    \"update_port:fixed_ips:ip_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":95,"context_line":"    \"update_port:fixed_ips:subnet_id\": \"rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared\","},{"line_number":96,"context_line":"    \"update_port:port_security_enabled\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_a6fc4bb6","line":93,"updated":"2018-06-22 17:48:31.000000000","message":"same","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"57e13fdb890c132b956d8f6d91199932856ad3f1","unresolved":false,"context_lines":[{"line_number":90,"context_line":"    \"update_port\": \"rule:admin_or_owner or rule:context_is_advsvc\","},{"line_number":91,"context_line":"    \"update_port:device_owner\": \"not rule:network_device or rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":92,"context_line":"    \"update_port:mac_address\": \"rule:admin_only or rule:context_is_advsvc\","},{"line_number":93,"context_line":"    \"update_port:fixed_ips\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":94,"context_line":"    \"update_port:fixed_ips:ip_address\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","},{"line_number":95,"context_line":"    \"update_port:fixed_ips:subnet_id\": \"rule:context_is_advsvc or rule:admin_or_network_owner or rule:shared\","},{"line_number":96,"context_line":"    \"update_port:port_security_enabled\": \"rule:context_is_advsvc or rule:admin_or_network_owner\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_856b0eb7","line":93,"in_reply_to":"5f7c97a3_a6fc4bb6","updated":"2018-06-26 14:20:56.000000000","message":"Ditto.","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"77f6eabe90d80d630a083af3df0456cb7a59ee08","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    \"delete_port\": \"rule:context_is_advsvc or rule:admin_owner_or_network_owner\","},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    \"create_router\": \"rule:regular_user\","},{"line_number":105,"context_line":"    \"create_router:external_gateway_info\": \"rule:admin_only\","},{"line_number":106,"context_line":"    \"create_router:external_gateway_info:enable_snat\": \"rule:admin_only\","},{"line_number":107,"context_line":"    \"create_router:external_gateway_info:external_fixed_ips\": \"rule:admin_only\","},{"line_number":108,"context_line":"    \"create_router:distributed\": \"rule:admin_only\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_066f3f92","line":105,"updated":"2018-06-22 17:48:31.000000000","message":"This is wrong, the create router API allows users to specify the network_id in the external_gateway_info dict, this will break that.  See L114-115 below.","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"57e13fdb890c132b956d8f6d91199932856ad3f1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"    \"delete_port\": \"rule:context_is_advsvc or rule:admin_owner_or_network_owner\","},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    \"create_router\": \"rule:regular_user\","},{"line_number":105,"context_line":"    \"create_router:external_gateway_info\": \"rule:admin_only\","},{"line_number":106,"context_line":"    \"create_router:external_gateway_info:enable_snat\": \"rule:admin_only\","},{"line_number":107,"context_line":"    \"create_router:external_gateway_info:external_fixed_ips\": \"rule:admin_only\","},{"line_number":108,"context_line":"    \"create_router:distributed\": \"rule:admin_only\","}],"source_content_type":"application/json","patch_set":2,"id":"5f7c97a3_a56e4ac5","line":105,"in_reply_to":"5f7c97a3_066f3f92","updated":"2018-06-26 14:20:56.000000000","message":"Thanks, fixed in next patch.","commit_id":"34c5bfc6ad483b4f3b569b75b4c3c4aa65334285"},{"author":{"_account_id":1131,"name":"Brian Haley","email":"haleyb.dev@gmail.com","username":"brian-haley"},"change_message_id":"9eba71764cddf61d1fd5b986e8552636d69e5acf","unresolved":false,"context_lines":[{"line_number":112,"context_line":"    \"get_router:distributed\": \"rule:admin_only\","},{"line_number":113,"context_line":"    \"update_router\": \"rule:admin_or_owner\","},{"line_number":114,"context_line":"    \"update_router:external_gateway_info\": \"rule:admin_or_owner\","},{"line_number":115,"context_line":"    \"update_router:external_gateway_info:network_id\": \"rule:admin_or_owner\","},{"line_number":116,"context_line":"    \"update_router:external_gateway_info:enable_snat\": \"rule:admin_only\","},{"line_number":117,"context_line":"    \"update_router:external_gateway_info:external_fixed_ips\": \"rule:admin_only\","},{"line_number":118,"context_line":"    \"update_router:distributed\": \"rule:admin_only\","}],"source_content_type":"application/json","patch_set":3,"id":"5f7c97a3_4ef3cee7","line":115,"updated":"2018-06-26 20:35:24.000000000","message":"Should you also add a similar line to create_router just like this one?","commit_id":"fc49af31dc5a045891aeeaba1dfd128249d047dd"},{"author":{"_account_id":23186,"name":"Felipe Monteiro","email":"felipe.carneiro.monteiro@gmail.com","username":"felipe.monteiro"},"change_message_id":"5d2918bdbcc8f6d61e9fe4b187f4a2d797b5030d","unresolved":false,"context_lines":[{"line_number":112,"context_line":"    \"get_router:distributed\": \"rule:admin_only\","},{"line_number":113,"context_line":"    \"update_router\": \"rule:admin_or_owner\","},{"line_number":114,"context_line":"    \"update_router:external_gateway_info\": \"rule:admin_or_owner\","},{"line_number":115,"context_line":"    \"update_router:external_gateway_info:network_id\": \"rule:admin_or_owner\","},{"line_number":116,"context_line":"    \"update_router:external_gateway_info:enable_snat\": \"rule:admin_only\","},{"line_number":117,"context_line":"    \"update_router:external_gateway_info:external_fixed_ips\": \"rule:admin_only\","},{"line_number":118,"context_line":"    \"update_router:distributed\": \"rule:admin_only\","}],"source_content_type":"application/json","patch_set":3,"id":"5f7c97a3_07fc9870","line":115,"in_reply_to":"5f7c97a3_4ef3cee7","updated":"2018-06-29 05:22:24.000000000","message":"Thanks, will check, nice catch","commit_id":"fc49af31dc5a045891aeeaba1dfd128249d047dd"}]}
