From 5b83ba0814d6a046d45146e97762626700440520 Mon Sep 17 00:00:00 2001 From: wr148d Date: Mon, 31 Oct 2022 09:42:06 -0400 Subject: [AAI] Fix doc config files Issue-ID: AAI-3572 Change-Id: Icb2bce5d096d9c807aa6fe2a72243c6dc16e5028 Signed-off-by: wr148d --- .../AAI_Developer_Environment_Setup.rst | 36 +++++++++------------- .../Queries/vnf_to_esr_system_info_Named_Query.rst | 2 +- 2 files changed, 16 insertions(+), 22 deletions(-) (limited to 'docs/platform') diff --git a/docs/platform/Getting Started/AAI_Developer_Environment_Setup.rst b/docs/platform/Getting Started/AAI_Developer_Environment_Setup.rst index c8afd9c1..4122a9e0 100644 --- a/docs/platform/Getting Started/AAI_Developer_Environment_Setup.rst +++ b/docs/platform/Getting Started/AAI_Developer_Environment_Setup.rst @@ -33,7 +33,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 Running `nodetool statusthrift`... OK (returned exit status 0 and printed string "running"). Forking Elasticsearch... Connecting to Elasticsearch (127.0.0.1:9200)...... OK (connected to 127.0.0.1:9200). - Forking Gremlin-Server... + Forking Gremlin-Server... Connecting to Gremlin-Server (127.0.0.1:8182).... OK (connected to 127.0.0.1:8182). Run gremlin.sh to connect. @@ -59,7 +59,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 1. $ sudo apt-get -y install haproxy 2. $ /haproxy -v - Response should be: + Response should be: .. code-block:: bash @@ -79,9 +79,9 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 $ sudo cp aai.pem /etc/ssl/private/aai.pem $ sudo chmod 640 /etc/ssl/private/aai.pem - $ sudo chown root:ssl-cert /etc/ssl/private/aai.pem + $ sudo chown root:ssl-cert /etc/ssl/private/aai.pem - Add these hostnames to the loopback interface in /etc/hosts: + Add these hostnames to the loopback interface in /etc/hosts: 127.0.0.1 localhost aai-traversal.api.simpledemo.openecomp.org aai-resources.api.simpledemo.openecomp.org aai-traversal.api.simpledemo.onap.org aai-resources.api.simpledemo.onap.org @@ -101,12 +101,6 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 $ mkdir ~/.m2 $ cp settings.xml ~/.m2 - If you get an error on some of the repos saying that oparent is - unresolvable, using the example settings.xml file should solve this - problem: `Setting Up Your Development - Environment#MavenExamplesettings.xml - `__ - 5. Set Up Repos --------------- @@ -127,8 +121,8 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 Modify both janus-cached.properties and janus-realtime.properties to the following (for all MS’s that will connect to the local Cassandra backend) - .. code:: - + .. code:: + storage.backend=cassandra storage.hostname=localhost storage.cassandra.keyspace=onap # or different keyspace name of your choosing @@ -183,7 +177,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 9. Janus setup (part 2) ----------------------- - + Run this on the local instance on your first time running AAI and whenever using new keyspace or after wiping the data. Install the schema @@ -194,7 +188,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 You should see: - .. code:: + .. code:: ---- NOTE --- about to open graph (takes a little while)--------; -- Loading new schema elements into JanusGraph -- @@ -271,10 +265,10 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 > PUT /aai/v16/cloud-infrastructure/complexes/complex/clli2 HTTP/1.1 > GET /aai/v16/cloud-infrastructure/complexes/complex/clli2 HTTP/1.1 - With payload: + With payload: .. code-block:: json - + { "physical-location-id": "clli2", "data-center-code": "example-data-center-code-val-6667", @@ -294,7 +288,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 "elevation": "example-elevation-val-28399", "lata": "example-lata-val-28399" } - + And finishes with: .. code-block:: bash @@ -303,7 +297,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 > GET /aai/v16/cloud-infrastructure/complexes HTTP/1.1 With the following: - + .. code-block:: json { @@ -319,10 +313,10 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 ] } } - } + } 12. Start the "traversal" microservice --------------------------------------- +-------------------------------------- Traversal runs on port 8446. Go to the traversal directory @@ -331,7 +325,7 @@ For this exercise, I set up a new instance of Ubuntu in Virtualbox and gave it 1 $ cd ~/src/aai/traversal Set the debug port to 9446 - + $ export MAVEN_OPTS="-Xms1024m -Xmx5120m -XX:PermSize=2024m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=9446,server=y,suspend=n" Start the microservice - adjust your build version accordingly diff --git a/docs/platform/Getting Started/Queries/vnf_to_esr_system_info_Named_Query.rst b/docs/platform/Getting Started/Queries/vnf_to_esr_system_info_Named_Query.rst index 7ad412a9..078801a4 100644 --- a/docs/platform/Getting Started/Queries/vnf_to_esr_system_info_Named_Query.rst +++ b/docs/platform/Getting Started/Queries/vnf_to_esr_system_info_Named_Query.rst @@ -7,7 +7,7 @@ vnf to esr-system-info Named Query **Example Request** -POST https://127.0.0.1:8443/aai/search/named-query +POST /aai/search/named-query { -- cgit 1.2.3-korg