summaryrefslogtreecommitdiffstats
path: root/docs/Multicloud-Fake_Cloud-Guide.rst
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2018-06-05 17:26:55 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2018-06-05 19:13:16 +0800
commitb3e79cc6ebba2898e201426b59c1bc8caa347a6a (patch)
tree8107165bb6733e29492dbc3f1196d2d99fb50cfc /docs/Multicloud-Fake_Cloud-Guide.rst
parenta47bd5937ca0a7dd88533c05cbf8e67010ab56f2 (diff)
Fix style Change-Id: Ifee26b7453de51f63bd37b0289ab3ccdc0697ec2 Issue-ID: MULTICLOUD-239 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'docs/Multicloud-Fake_Cloud-Guide.rst')
-rw-r--r--docs/Multicloud-Fake_Cloud-Guide.rst53
1 files changed, 32 insertions, 21 deletions
diff --git a/docs/Multicloud-Fake_Cloud-Guide.rst b/docs/Multicloud-Fake_Cloud-Guide.rst
index 4a2087d..52011a5 100644
--- a/docs/Multicloud-Fake_Cloud-Guide.rst
+++ b/docs/Multicloud-Fake_Cloud-Guide.rst
@@ -8,12 +8,15 @@ MultiCloud Fake_Cloud User Case
-multilcoud-vmware server not only provide vio plugin to access real openstack platform,but
+multilcoud-vmware server not only provide vio plugin to access real openstack
+platform,but
also provide fake_cloud plugin which simulate thereal VIO function.The fake
-cloud is suitable for testing openstack function if there is not real VIO platform.
+cloud is suitable for testing openstack function if there is not real VIO
+platform.
-Make sure you environment have msb,aai service and multicloud-vmware config file has the right msb_ip and
+Make sure you environment have msb,aai service and multicloud-vmware config
+file has the right msb_ip and
msb_port value,The config file path is vio/vio/pub/config/congfig.py
@@ -21,7 +24,8 @@ msb_port value,The config file path is vio/vio/pub/config/congfig.py
Register Fake Cloud to AAI
~~~~~~~~~~~~~~~~~~~~~~~~~~
-Register vio information into AAI service with region name "vmware" and region id "fake"
+Register vio information into AAI service with region name "vmware" and region
+id "fake"
.. code-block:: console
@@ -66,7 +70,8 @@ the ${msb_address} = "MSB_IP:MSB_PORT"
Get auth token
--------------
-# send request to multicloud-framework(broker) service to get token of keystone V3
+# send request to multicloud-framework(broker) service to get token of keystone
+V3
.. code-block:: console
@@ -76,36 +81,42 @@ test.json content example:
::
- {
+ {
"auth": {
- "scope": {"project": {"id": “<project-id>”}},
- "identity":
- {
- "password": {"user": {"domain": {"name": “<doman-name>”}, "password": “<user-password>”, "name": “<user-name>”}}, "methods": ["password"]
- }
+ "scope": {"project": {"id": “<project-id>”}},
+ "identity":
+ {
+ "password": {"user": {"domain": {"name": “<doman-name>”}, "password": “<user-password>”, "name": “<user-name>”}}, "methods": ["password"]
+ }
+ }
}
- }
Response:
-There are a large amounts of data including service endpoint, user information, etc.
-For our testing We take nova and identity service endpoint address and auth token which is in response header named “X-Subject-Token”.
+There are a large amounts of data including service endpoint, user information,
+etc.
+For our testing We take nova and identity service endpoint address and auth
+token which is in response header named “X-Subject-Token”.
+
+# you can find the endpoint url namespace is
+"api/multicloiud-vio/v0/vmware_fake", it represent the multicloud-vio service,
+So requests sending to mulitcloud-vio will be forwarded to fake cloud.the ip
+and port reprenst ${msb_address}
+
-# you can find the endpoint url namespace is "api/multicloiud-vio/v0/vmware_fake", it represent the multicloud-vio service, So
-requests sending to mulitcloud-vio will be forwarded to fake cloud.the ip and port reprenst ${msb_address}
+Identity endpoint::
+ http://$msb_address/api/multicloud-vio/v0/vmware_fake/identity
-Identity endpoint:
- http://$msb_address/api/multicloud-vio/v0/vmware_fake/identity
+Nova endpoint::
-Nova endpoint:
- http://$msb_address/api/multicloud-vio/v0/vmware_fake/compute/<user-tenantid>
+ http://$msb_address/api/multicloud-vio/v0/vmware_fake/compute/<user-tenantid>
List projects
-------------
-Use identity’s endpoint: http://$msb_address/api/multicloud-vio/v0/vmware_fake/identity/
+Use identity’s endpoint: http://$msb_address/api/multicloud-vio/v0/vmware_fake/identity/
.. code-block:: console