54738ea382
Bug #1042030 , part 2 Also reworks model queries in order to allow plugins and extensions to augment them as required through hooks. Change-Id: Ice72fc6d3b1c613d596c037818ed66d7e9ed841d
41 lines
1.7 KiB
JSON
41 lines
1.7 KiB
JSON
{
|
|
"admin_or_owner": [["role:admin"], ["tenant_id:%(tenant_id)s"]],
|
|
"admin_or_network_owner": [["role:admin"], ["tenant_id:%(network_tenant_id)s"]],
|
|
"admin_only": [["role:admin"]],
|
|
"regular_user": [],
|
|
"shared": [["field:networks:shared=True"]],
|
|
"external": [["field:networks:router:external=True"]],
|
|
"default": [["rule:admin_or_owner"]],
|
|
|
|
"extension:provider_network:view": [["rule:admin_only"]],
|
|
"extension:provider_network:set": [["rule:admin_only"]],
|
|
|
|
"extension:router:view": [["rule:regular_user"]],
|
|
"extension:router:set": [["rule:admin_only"]],
|
|
|
|
"subnets:private:read": [["rule:admin_or_owner"]],
|
|
"subnets:private:write": [["rule:admin_or_owner"]],
|
|
"subnets:shared:read": [["rule:regular_user"]],
|
|
"subnets:shared:write": [["rule:admin_only"]],
|
|
|
|
"create_subnet": [["rule:admin_or_network_owner"]],
|
|
"get_subnet": [["rule:admin_or_owner"], ["rule:shared"]],
|
|
"update_subnet": [["rule:admin_or_network_owner"]],
|
|
"delete_subnet": [["rule:admin_or_network_owner"]],
|
|
|
|
"create_network": [],
|
|
"get_network": [["rule:admin_or_owner"], ["rule:shared"], ["rule:external"]],
|
|
"create_network:shared": [["rule:admin_only"]],
|
|
"create_network:router:external": [["rule:admin_only"]],
|
|
"update_network": [["rule:admin_or_owner"]],
|
|
"delete_network": [["rule:admin_or_owner"]],
|
|
|
|
"create_port": [],
|
|
"create_port:mac_address": [["rule:admin_or_network_owner"]],
|
|
"create_port:fixed_ips": [["rule:admin_or_network_owner"]],
|
|
"get_port": [["rule:admin_or_owner"]],
|
|
"update_port": [["rule:admin_or_owner"]],
|
|
"update_port:fixed_ips": [["rule:admin_or_network_owner"]],
|
|
"delete_port": [["rule:admin_or_owner"]]
|
|
}
|