Merge "Add policy description for multinic"
This commit is contained in:
commit
41689dfb03
|
@ -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,23 @@ BASE_POLICY_NAME = 'os_compute_api:os-multinic'
|
||||||
|
|
||||||
|
|
||||||
multinic_policies = [
|
multinic_policies = [
|
||||||
policy.RuleDefault(
|
base.create_rule_default(
|
||||||
name=BASE_POLICY_NAME,
|
BASE_POLICY_NAME,
|
||||||
check_str=base.RULE_ADMIN_OR_OWNER),
|
base.RULE_ADMIN_OR_OWNER,
|
||||||
|
"""Adds or Removes a fixed IP address from a server.
|
||||||
|
|
||||||
|
These APIs are proxy calls to the Network service. These are all
|
||||||
|
deprecated.""",
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'method': 'POST',
|
||||||
|
'path': '/servers/{server_id}/action (addFixedIp)'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'method': 'POST',
|
||||||
|
'path': '/servers/{server_id}/action (removeFixedIp)'
|
||||||
|
}
|
||||||
|
]),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue