Merge "Use openstack command-client to replace some deprecated senlin commands"

This commit is contained in:
Jenkins 2016-10-26 02:37:30 +00:00 committed by Gerrit Code Review
commit ba044c598d

View File

@ -37,14 +37,14 @@ To create a policy object using this specification (``spec`` for short):
.. code-block:: console .. code-block:: console
$ cd $SENLIN_ROOT/examples/policies $ cd $SENLIN_ROOT/examples/policies
$ senlin policy-create -s deletion_policy.yaml dp01 $ openstack cluster policy create --spec-file deletion_policy.yaml dp01
To verify the policy creation, you can do: To verify the policy creation, you can do:
.. code-block:: console .. code-block:: console
$ senlin policy-list $ openstack cluster policy list
$ senlin policy-show dp01 $ openstack cluster policy show dp01
Attaching a Policy Attaching a Policy
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
@ -53,14 +53,14 @@ The enforce a policy on a cluster, attach a policy to it:
.. code-block:: console .. code-block:: console
$ senlin cluster-policy-attach -p dp01 mycluster $ openstack cluster policy attach --policy dp01 mycluster
To verify the policy attach operation, do the following: To verify the policy attach operation, do the following:
.. code-block:: console .. code-block:: console
$ senlin cluster-policy-list mycluster $ openstack cluster policy binding list mycluster
$ senlin cluster-policy-show -p dp01 mycluster $ openstack cluster policy binding show --policy dp01 mycluster
Verifying a Policy Verifying a Policy
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~