From 7016a047e524ddd304aa4fbfe2e9f49280d02fd7 Mon Sep 17 00:00:00 2001 From: Marco Platania Date: Tue, 5 Mar 2019 14:30:15 -0500 Subject: Add tutorial about SDNC-AAI Service adaptor - Simple DGs for writing and reading services to/from AAI - Postman POST calls to trigger DGs using CCSDK/SLI API Change-Id: I9eaa58e0a2b08e783cf61f11cb45e6f740f15ddf Issue-ID: INT-658 Signed-off-by: Marco Platania --- .../AAI_READ_TEST_aaiReadTest.json | 111 +++++++++++++++++++++ .../AAI_WRITE_TEST_aaiWriteTest.json | 96 ++++++++++++++++++ tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt | 19 ++++ tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt | 22 ++++ 4 files changed, 248 insertions(+) create mode 100644 tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json create mode 100644 tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json create mode 100644 tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt create mode 100644 tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt (limited to 'tutorials') diff --git a/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json b/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json new file mode 100644 index 00000000..77d78bbd --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/AAI_READ_TEST_aaiReadTest.json @@ -0,0 +1,111 @@ +[ + { + "id": "9004f35e.82aaf", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 151, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "c678a15d.374ce" + ] + ] + }, + { + "id": "c678a15d.374ce", + "type": "service-logic", + "name": "AAI_READ_TEST 1", + "module": "AAI_READ_TEST", + "version": "1", + "comments": "", + "xml": "", + "outputs": 1, + "x": 376, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "f7fb1b43.16c978" + ] + ] + }, + { + "id": "f7fb1b43.16c978", + "type": "method", + "name": "method", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 585, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "ca1bb9f7.661a68" + ] + ] + }, + { + "id": "ca1bb9f7.661a68", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 751, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [ + "e873afab.3db4", + "5462eeec.c1708", + "9af02e4e.2771f" + ] + ] + }, + { + "id": "e873afab.3db4", + "type": "record", + "name": "record", + "xml": "\n\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 909, + "y": 89, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + }, + { + "id": "5462eeec.c1708", + "type": "get-resource", + "name": "get-resource", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 922, + "y": 136, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + }, + { + "id": "9af02e4e.2771f", + "type": "record", + "name": "record", + "xml": "\n\n\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 910, + "y": 187, + "z": "f80284e0.3417a8", + "wires": [ + [] + ] + } +] \ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json b/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json new file mode 100644 index 00000000..4dda3ffe --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/AAI_WRITE_TEST_aaiWriteTest.json @@ -0,0 +1,96 @@ +[ + { + "id": "87de78ad.d84798", + "type": "dgstart", + "name": "DGSTART", + "outputs": 1, + "x": 132, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "5ae14c99.6f40a4" + ] + ] + }, + { + "id": "5ae14c99.6f40a4", + "type": "service-logic", + "name": "AAI_WRITE_TEST 1", + "module": "AAI_WRITE_TEST", + "version": "1", + "comments": "", + "xml": "", + "outputs": 1, + "x": 352, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "27a5dff6.0d64b" + ] + ] + }, + { + "id": "27a5dff6.0d64b", + "type": "method", + "name": "method", + "xml": "\n", + "comments": "", + "outputs": 1, + "x": 585, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "72c5f21f.8ff9bc" + ] + ] + }, + { + "id": "72c5f21f.8ff9bc", + "type": "block", + "name": "block", + "xml": "\n", + "atomic": "false", + "comments": "", + "outputs": 1, + "x": 775, + "y": 141, + "z": "915a2fa8.a1505", + "wires": [ + [ + "4f1bf235.a8ceec", + "c70f3ff5.db33" + ] + ] + }, + { + "id": "4f1bf235.a8ceec", + "type": "save", + "name": "save", + "xml": "\n\n", + "comments": "", + "outputs": 1, + "x": 967, + "y": 190, + "z": "915a2fa8.a1505", + "wires": [ + [] + ] + }, + { + "id": "c70f3ff5.db33", + "type": "record", + "name": "record", + "xml": "\n\n\n\n\n\n", + "comments": "", + "outputs": 1, + "x": 968, + "y": 82, + "z": "915a2fa8.a1505", + "wires": [ + [] + ] + } +] \ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt b/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt new file mode 100644 index 00000000..76853e7e --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/aaiReadTest.txt @@ -0,0 +1,19 @@ +curl -X POST \ + http://10.12.5.253:30202/restconf/operations/SLI-API:execute-graph \ + -H 'Authorization: Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ==' \ + -H 'Content-Type: application/json' \ + -H 'Postman-Token: 04a25312-5513-4667-a621-934cff51e289' \ + -H 'cache-control: no-cache' \ + -d '{ + "input": { + "module-name": "AAI_READ_TEST", + "rpc-name": "aaiReadTest", + "mode": "sync", + "sli-parameter": [ + { + "parameter-name": "aai-service-id", + "string-value": "792be903-6572-4306-8ae0-be884f7740b4" + } + ] + } +}' \ No newline at end of file diff --git a/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt b/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt new file mode 100644 index 00000000..5e193c65 --- /dev/null +++ b/tutorials/SDNC_AAIService_Adaptor/aaiWriteTest.txt @@ -0,0 +1,22 @@ +curl -X POST \ + http://10.12.5.253:30202/restconf/operations/SLI-API:execute-graph \ + -H 'Content-Type: application/json' \ + -H 'Postman-Token: 1b684beb-d0f1-427c-85d8-b92b29754220' \ + -H 'cache-control: no-cache' \ + -d '{ + "input": { + "module-name": "AAI_WRITE_TEST", + "rpc-name": "aaiWriteTest", + "mode": "sync", + "sli-parameter": [ + { + "parameter-name": "service-id", + "string-value": "00000000-1111-2222-3333-444444555555" + }, + { + "parameter-name": "service-description", + "string-value": "Test-Service" + } + ] + } +}' \ No newline at end of file -- cgit 1.2.3-korg