L2gateway policy.json file

This file defines roles for l2gateway operations.

Change-Id: I5d5ee4dfd8dd26495df1955f00ccbbc17ed4acc2
stable/ocata
selvakumar 8 years ago
parent 1d5841ffda
commit 30065ff090
  1. 16
      etc/policy.json

@ -0,0 +1,16 @@
{
"admin_only": "rule:context_is_admin",
"admin_or_owner": "rule:context_is_admin or tenant_id:%(tenant_id)s",
"create_l2_gateway": "rule:admin_only",
"update_l2_gateway": "rule:admin_only",
"get_l2_gateway": "rule:admin_or_owner",
"delete_l2_gateway": "rule:admin_or_owner",
"get_l2_gateways": "rule:admin_or_owner",
"create_l2_gateway_connection": "rule:admin_only",
"update_l2_gateway_connection": "rule:admin_only",
"get_l2_gateway_connections": "rule:admin_or_owner",
"get_l2_gateway_connection": "rule:admin_or_owner",
"delete_l2_gateway_connection": "rule:admin_or_owner"
}
Loading…
Cancel
Save