| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
from neutron_lib import policy as base |
| 14 |
from oslo_policy import policy |
| 15 |
|
| 16 |
|
| 17 |
def list_rules(): |
| 18 |
return [ |
| 19 |
policy.DocumentedRuleDefault( |
| 20 |
'create_l2_gateway_connection', |
| 21 |
base.RULE_ADMIN_ONLY, |
| 22 |
'Create a L2 Gateway Connection', |
| 23 |
[ |
| 24 |
{ |
| 25 |
'method': 'POST', |
| 26 |
'path': '/l2-gateway-connections', |
| 27 |
}, |
| 28 |
] |
| 29 |
), |
| 30 |
policy.DocumentedRuleDefault( |
| 31 |
'delete_l2_gateway_connection', |
| 32 |
base.RULE_ADMIN_ONLY, |
| 33 |
'Delete a L2 Gateway Connection', |
| 34 |
[ |
| 35 |
{ |
| 36 |
'method': 'DELETE', |
| 37 |
'path': '/l2-gateway-connections/{id}', |
| 38 |
}, |
| 39 |
] |
| 40 |
), |
| 41 |
policy.DocumentedRuleDefault( |
| 42 |
'get_l2_gateway_connections', |
| 43 |
base.RULE_ADMIN_ONLY, |
| 44 |
'Get a L2 Gateway Connections', |
| 45 |
[ |
| 46 |
{ |
| 47 |
'method': 'GET', |
| 48 |
'path': '/l2-gateway-connections', |
| 49 |
}, |
| 50 |
] |
| 51 |
), |
| 52 |
policy.DocumentedRuleDefault( |
| 53 |
'get_l2_gateway_connection', |
| 54 |
base.RULE_ADMIN_ONLY, |
| 55 |
'Get a L2 Gateway Connection', |
| 56 |
[ |
| 57 |
{ |
| 58 |
'method': 'GET', |
| 59 |
'path': '/l2-gateway-connections/{id}', |
| 60 |
}, |
| 61 |
] |
| 62 |
) |
| 63 |
] |