Merge "Add policy description for os-fixed-ips"
This commit is contained in:
commit
65402e1aeb
|
@ -13,8 +13,6 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from oslo_policy import policy
|
|
||||||
|
|
||||||
from nova.policies import base
|
from nova.policies import base
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,9 +20,26 @@ BASE_POLICY_NAME = 'os_compute_api:os-fixed-ips'
|
||||||
|
|
||||||
|
|
||||||
fixed_ips_policies = [
|
fixed_ips_policies = [
|
||||||
policy.RuleDefault(
|
base.create_rule_default(
|
||||||
name=BASE_POLICY_NAME,
|
BASE_POLICY_NAME,
|
||||||
check_str=base.RULE_ADMIN_API),
|
base.RULE_ADMIN_API,
|
||||||
|
"""Shows details for, reserve and unreserve a fixed IP address.
|
||||||
|
|
||||||
|
These APIs are only available with nova-network which is deprecated.""",
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'method': 'GET',
|
||||||
|
'path': '/os-fixed-ips/{fixed_ip}'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'method': 'POST',
|
||||||
|
'path': '/os-fixed-ips/{fixed_ip}/action (reserve)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'method': 'POST',
|
||||||
|
'path': '/os-fixed-ips/{fixed_ip}/action (unreserve)'
|
||||||
|
}
|
||||||
|
]),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue