OpenStack Compute (Nova)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

133 lines
4.8 KiB

  1. # Licensed under the Apache License, Version 2.0 (the "License"); you may
  2. # not use this file except in compliance with the License. You may obtain
  3. # a copy of the License at
  4. #
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. #
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  9. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  10. # License for the specific language governing permissions and limitations
  11. # under the License.
  12. import itertools
  13. from nova.policies import admin_actions
  14. from nova.policies import admin_password
  15. from nova.policies import agents
  16. from nova.policies import aggregates
  17. from nova.policies import assisted_volume_snapshots
  18. from nova.policies import attach_interfaces
  19. from nova.policies import availability_zone
  20. from nova.policies import baremetal_nodes
  21. from nova.policies import base
  22. from nova.policies import console_auth_tokens
  23. from nova.policies import console_output
  24. from nova.policies import create_backup
  25. from nova.policies import deferred_delete
  26. from nova.policies import evacuate
  27. from nova.policies import extended_server_attributes
  28. from nova.policies import extensions
  29. from nova.policies import flavor_access
  30. from nova.policies import flavor_extra_specs
  31. from nova.policies import flavor_manage
  32. from nova.policies import floating_ip_pools
  33. from nova.policies import floating_ips
  34. from nova.policies import hosts
  35. from nova.policies import hypervisors
  36. from nova.policies import instance_actions
  37. from nova.policies import instance_usage_audit_log
  38. from nova.policies import ips
  39. from nova.policies import keypairs
  40. from nova.policies import limits
  41. from nova.policies import lock_server
  42. from nova.policies import migrate_server
  43. from nova.policies import migrations
  44. from nova.policies import multinic
  45. from nova.policies import networks
  46. from nova.policies import pause_server
  47. from nova.policies import quota_class_sets
  48. from nova.policies import quota_sets
  49. from nova.policies import remote_consoles
  50. from nova.policies import rescue
  51. from nova.policies import security_groups
  52. from nova.policies import server_diagnostics
  53. from nova.policies import server_external_events
  54. from nova.policies import server_groups
  55. from nova.policies import server_metadata
  56. from nova.policies import server_password
  57. from nova.policies import server_tags
  58. from nova.policies import server_topology
  59. from nova.policies import servers
  60. from nova.policies import servers_migrations
  61. from nova.policies import services
  62. from nova.policies import shelve
  63. from nova.policies import simple_tenant_usage
  64. from nova.policies import suspend_server
  65. from nova.policies import tenant_networks
  66. from nova.policies import used_limits
  67. from nova.policies import volumes
  68. from nova.policies import volumes_attachments
  69. def list_rules():
  70. return itertools.chain(
  71. base.list_rules(),
  72. admin_actions.list_rules(),
  73. admin_password.list_rules(),
  74. agents.list_rules(),
  75. aggregates.list_rules(),
  76. assisted_volume_snapshots.list_rules(),
  77. attach_interfaces.list_rules(),
  78. availability_zone.list_rules(),
  79. baremetal_nodes.list_rules(),
  80. console_auth_tokens.list_rules(),
  81. console_output.list_rules(),
  82. create_backup.list_rules(),
  83. deferred_delete.list_rules(),
  84. evacuate.list_rules(),
  85. extended_server_attributes.list_rules(),
  86. extensions.list_rules(),
  87. flavor_access.list_rules(),
  88. flavor_extra_specs.list_rules(),
  89. flavor_manage.list_rules(),
  90. floating_ip_pools.list_rules(),
  91. floating_ips.list_rules(),
  92. hosts.list_rules(),
  93. hypervisors.list_rules(),
  94. instance_actions.list_rules(),
  95. instance_usage_audit_log.list_rules(),
  96. ips.list_rules(),
  97. keypairs.list_rules(),
  98. limits.list_rules(),
  99. lock_server.list_rules(),
  100. migrate_server.list_rules(),
  101. migrations.list_rules(),
  102. multinic.list_rules(),
  103. networks.list_rules(),
  104. pause_server.list_rules(),
  105. quota_class_sets.list_rules(),
  106. quota_sets.list_rules(),
  107. remote_consoles.list_rules(),
  108. rescue.list_rules(),
  109. security_groups.list_rules(),
  110. server_diagnostics.list_rules(),
  111. server_external_events.list_rules(),
  112. server_groups.list_rules(),
  113. server_metadata.list_rules(),
  114. server_password.list_rules(),
  115. server_tags.list_rules(),
  116. server_topology.list_rules(),
  117. servers.list_rules(),
  118. servers_migrations.list_rules(),
  119. services.list_rules(),
  120. shelve.list_rules(),
  121. simple_tenant_usage.list_rules(),
  122. suspend_server.list_rules(),
  123. tenant_networks.list_rules(),
  124. used_limits.list_rules(),
  125. volumes.list_rules(),
  126. volumes_attachments.list_rules()
  127. )