|
95 | 95 | policy.DocumentedRuleDefault( |
96 | 96 | name='get_subnet', |
97 | 97 | check_str=neutron_policy.policy_or( |
98 | | - base.ADMIN_OR_NET_OWNER_MEMBER, |
99 | 98 | base.PROJECT_READER, |
100 | | - 'rule:shared'), |
| 99 | + 'rule:shared', |
| 100 | + base.ADMIN_OR_NET_OWNER_MEMBER, |
| 101 | + ), |
101 | 102 | scope_types=['project'], |
102 | 103 | description='Get a subnet', |
103 | 104 | operations=ACTION_GET, |
104 | 105 | deprecated_rule=policy.DeprecatedRule( |
105 | 106 | name='get_subnet', |
106 | 107 | check_str=neutron_policy.policy_or( |
| 108 | + 'rule:shared', |
107 | 109 | neutron_policy.RULE_ADMIN_OR_OWNER, |
108 | | - 'rule:shared'), |
| 110 | + ), |
109 | 111 | deprecated_reason=DEPRECATED_REASON, |
110 | 112 | deprecated_since=versionutils.deprecated.WALLABY) |
111 | 113 | ), |
|
124 | 126 | policy.DocumentedRuleDefault( |
125 | 127 | name='get_subnets_tags', |
126 | 128 | check_str=neutron_policy.policy_or( |
127 | | - base.ADMIN_OR_NET_OWNER_MEMBER, |
128 | 129 | base.PROJECT_READER, |
129 | | - 'rule:shared'), |
| 130 | + 'rule:shared', |
| 131 | + base.ADMIN_OR_NET_OWNER_MEMBER, |
| 132 | + ), |
130 | 133 | scope_types=['project'], |
131 | 134 | description='Get the subnet tags', |
132 | 135 | operations=ACTION_GET_TAGS, |
133 | 136 | ), |
134 | 137 | policy.DocumentedRuleDefault( |
135 | 138 | name='update_subnet', |
136 | 139 | check_str=neutron_policy.policy_or( |
137 | | - base.ADMIN_OR_NET_OWNER_MEMBER, |
138 | | - base.PROJECT_MEMBER), |
| 140 | + base.PROJECT_MEMBER, |
| 141 | + base.ADMIN_OR_NET_OWNER_MEMBER), |
139 | 142 | scope_types=['project'], |
140 | 143 | description='Update a subnet', |
141 | 144 | operations=ACTION_PUT, |
|
172 | 175 | policy.DocumentedRuleDefault( |
173 | 176 | name='update_subnets_tags', |
174 | 177 | check_str=neutron_policy.policy_or( |
| 178 | + base.PROJECT_MEMBER, |
175 | 179 | base.ADMIN_OR_NET_OWNER_MEMBER, |
176 | | - base.PROJECT_MEMBER), |
| 180 | + ), |
177 | 181 | scope_types=['project'], |
178 | 182 | description='Update the subnet tags', |
179 | 183 | operations=ACTION_PUT_TAGS, |
180 | 184 | ), |
181 | 185 | policy.DocumentedRuleDefault( |
182 | 186 | name='delete_subnet', |
183 | 187 | check_str=neutron_policy.policy_or( |
| 188 | + base.PROJECT_MEMBER, |
184 | 189 | base.ADMIN_OR_NET_OWNER_MEMBER, |
185 | | - base.PROJECT_MEMBER), |
| 190 | + ), |
186 | 191 | scope_types=['project'], |
187 | 192 | description='Delete a subnet', |
188 | 193 | operations=ACTION_DELETE, |
|
195 | 200 | policy.DocumentedRuleDefault( |
196 | 201 | name='delete_subnets_tags', |
197 | 202 | check_str=neutron_policy.policy_or( |
| 203 | + base.PROJECT_MEMBER, |
198 | 204 | base.ADMIN_OR_NET_OWNER_MEMBER, |
199 | | - base.PROJECT_MEMBER), |
| 205 | + ), |
200 | 206 | scope_types=['project'], |
201 | 207 | description='Delete the subnet tags', |
202 | 208 | operations=ACTION_DELETE_TAGS, |
|
0 commit comments