|
81 | 81 | deprecated_reason=DEPRECATED_REASON, |
82 | 82 | deprecated_since=versionutils.deprecated.WALLABY) |
83 | 83 | ), |
| 84 | + policy.DocumentedRuleDefault( |
| 85 | + name='create_port:device_id', |
| 86 | + check_str=neutron_policy.policy_or( |
| 87 | + base.ADMIN_OR_PROJECT_MEMBER, |
| 88 | + base.SERVICE), |
| 89 | + scope_types=['project'], |
| 90 | + description='Specify ``device_id`` attribute when creating a port', |
| 91 | + operations=ACTION_POST, |
| 92 | + deprecated_rule=policy.DeprecatedRule( |
| 93 | + name='create_port:device_id', |
| 94 | + check_str=neutron_policy.RULE_ANY, |
| 95 | + deprecated_reason=DEPRECATED_REASON, |
| 96 | + deprecated_since=versionutils.deprecated.WALLABY) |
| 97 | + ), |
84 | 98 | policy.DocumentedRuleDefault( |
85 | 99 | name='create_port:device_owner', |
86 | 100 | check_str=neutron_policy.policy_or( |
|
244 | 258 | name='create_port:allowed_address_pairs', |
245 | 259 | check_str=neutron_policy.policy_or( |
246 | 260 | base.ADMIN_OR_NET_OWNER_MEMBER, |
247 | | - base.PROJECT_MANAGER), |
| 261 | + base.PROJECT_MANAGER, |
| 262 | + base.SERVICE), |
248 | 263 | scope_types=['project'], |
249 | 264 | description=( |
250 | 265 | 'Specify ``allowed_address_pairs`` ' |
|
261 | 276 | name='create_port:allowed_address_pairs:mac_address', |
262 | 277 | check_str=neutron_policy.policy_or( |
263 | 278 | base.ADMIN_OR_NET_OWNER_MEMBER, |
264 | | - base.PROJECT_MANAGER), |
| 279 | + base.PROJECT_MANAGER, |
| 280 | + base.SERVICE), |
265 | 281 | scope_types=['project'], |
266 | 282 | description=( |
267 | 283 | 'Specify ``mac_address` of `allowed_address_pairs`` ' |
|
278 | 294 | name='create_port:allowed_address_pairs:ip_address', |
279 | 295 | check_str=neutron_policy.policy_or( |
280 | 296 | base.ADMIN_OR_NET_OWNER_MEMBER, |
281 | | - base.PROJECT_MANAGER), |
| 297 | + base.PROJECT_MANAGER, |
| 298 | + base.SERVICE), |
282 | 299 | scope_types=['project'], |
283 | 300 | description=( |
284 | 301 | 'Specify ``ip_address`` of ``allowed_address_pairs`` ' |
|
460 | 477 | deprecated_reason=DEPRECATED_REASON, |
461 | 478 | deprecated_since=versionutils.deprecated.WALLABY) |
462 | 479 | ), |
| 480 | + policy.DocumentedRuleDefault( |
| 481 | + name='update_port:device_id', |
| 482 | + check_str=neutron_policy.policy_or( |
| 483 | + base.ADMIN_OR_PROJECT_MEMBER, |
| 484 | + base.SERVICE), |
| 485 | + scope_types=['project'], |
| 486 | + description='Update ``device_id`` attribute of a port', |
| 487 | + operations=ACTION_PUT, |
| 488 | + deprecated_rule=policy.DeprecatedRule( |
| 489 | + name='update_port:device_id', |
| 490 | + check_str=neutron_policy.RULE_ANY, |
| 491 | + deprecated_reason=DEPRECATED_REASON, |
| 492 | + deprecated_since=versionutils.deprecated.WALLABY) |
| 493 | + ), |
463 | 494 | policy.DocumentedRuleDefault( |
464 | 495 | name='update_port:device_owner', |
465 | 496 | check_str=neutron_policy.policy_or( |
|
622 | 653 | name='update_port:allowed_address_pairs', |
623 | 654 | check_str=neutron_policy.policy_or( |
624 | 655 | base.ADMIN_OR_NET_OWNER_MEMBER, |
625 | | - base.PROJECT_MANAGER), |
| 656 | + base.PROJECT_MANAGER, |
| 657 | + base.SERVICE), |
626 | 658 | scope_types=['project'], |
627 | 659 | description='Update ``allowed_address_pairs`` attribute of a port', |
628 | 660 | operations=ACTION_PUT, |
|
636 | 668 | name='update_port:allowed_address_pairs:mac_address', |
637 | 669 | check_str=neutron_policy.policy_or( |
638 | 670 | base.ADMIN_OR_NET_OWNER_MEMBER, |
639 | | - base.PROJECT_MANAGER), |
| 671 | + base.PROJECT_MANAGER, |
| 672 | + base.SERVICE), |
640 | 673 | scope_types=['project'], |
641 | 674 | description=( |
642 | 675 | 'Update ``mac_address`` of ``allowed_address_pairs`` ' |
|
653 | 686 | name='update_port:allowed_address_pairs:ip_address', |
654 | 687 | check_str=neutron_policy.policy_or( |
655 | 688 | base.ADMIN_OR_NET_OWNER_MEMBER, |
656 | | - base.PROJECT_MANAGER), |
| 689 | + base.PROJECT_MANAGER, |
| 690 | + base.SERVICE), |
657 | 691 | scope_types=['project'], |
658 | 692 | description=( |
659 | 693 | 'Update ``ip_address`` of ``allowed_address_pairs`` ' |
|
0 commit comments