diff options
author | Zuul <zuul@review.opendev.org> | 2023-05-11 10:43:21 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-05-11 10:43:21 +0000 |
commit | daa24b9492e4bde7a7d20d45b5d7b543eec1d0b4 (patch) | |
tree | 57c2a9288c144ce17c1159dc0ab1466b2d41573d /neutron/conf | |
parent | 40e003ed84fe22612046afcdd6c5b6cca7cf3e31 (diff) | |
parent | 0390ada97c01031e675caf43b5028bb311331865 (diff) | |
download | neutron-daa24b9492e4bde7a7d20d45b5d7b543eec1d0b4.tar.gz |
Merge "port-hints: api extension"
Diffstat (limited to 'neutron/conf')
-rw-r--r-- | neutron/conf/policies/port.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/neutron/conf/policies/port.py b/neutron/conf/policies/port.py index 5783f080bb..bce04da941 100644 --- a/neutron/conf/policies/port.py +++ b/neutron/conf/policies/port.py @@ -270,6 +270,15 @@ rules = [ deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.WALLABY) ), + policy.DocumentedRuleDefault( + name='create_port:hints', + check_str=base.ADMIN, + scope_types=['project'], + description=( + 'Specify ``hints`` attribute when creating a port' + ), + operations=ACTION_POST, + ), policy.DocumentedRuleDefault( name='get_port', @@ -350,6 +359,13 @@ rules = [ deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.WALLABY) ), + policy.DocumentedRuleDefault( + name='get_port:hints', + check_str=base.ADMIN, + scope_types=['project'], + description='Get ``hints`` attribute of a port', + operations=ACTION_GET, + ), # TODO(amotoki): Add get_port:binding:vnic_type # TODO(amotoki): Add get_port:binding:data_plane_status @@ -592,6 +608,13 @@ rules = [ deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.WALLABY) ), + policy.DocumentedRuleDefault( + name='update_port:hints', + check_str=base.ADMIN, + scope_types=['project'], + description='Update ``hints`` attribute of a port', + operations=ACTION_PUT, + ), policy.DocumentedRuleDefault( name='delete_port', |