aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.01.yml22
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_precheck@0.01.yml22
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml11
-rw-r--r--installation/ansible-server/src/main/Playbooks/ansible_huawei_upgrade@0.01.yml63
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json828
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json830
-rw-r--r--platform-logic/lcm/src/main/json/LCM_upgrade-software.json910
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml216
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml216
-rw-r--r--platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml216
10 files changed, 2315 insertions, 1019 deletions
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.01.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.01.yml
index ad4edf51..b9b1ab81 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.01.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_postcheck@0.01.yml
@@ -3,13 +3,11 @@
tasks:
- name: create a temporary file for additional data
file:
- path: /tmp/tmp-{{Id}}
- state: touch
- become: false
+ path: /tmp/tmp-{{Id}}
+ state: touch
- name: prepare additional data
shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
- become: false
- name: execute post-check operation
shell: ./swm/upgrade-post-check {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}
@@ -22,9 +20,19 @@
- name: remove the temporary file
file:
- path: /tmp/tmp-{{Id}}
- state: absent
- become: false
+ path: /tmp/tmp-{{Id}}
+ state: absent
+
+ - name: build error message
+ set_fact:
+ err_msg:
+ "reason": "{{postcheck_result.stderr}}"
+ "result": "Failure"
+ when: postcheck_result is failed and postcheck_result.stdout == "" and postcheck_result.stderr != ""
+
+ - name: write error message to file
+ local_action: copy content="{{err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: postcheck_result is failed and postcheck_result.stdout == "" and postcheck_result.stderr != ""
- name: use result of post-check as the result of Playbook
fail:
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_precheck@0.01.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_precheck@0.01.yml
index 668ed7d0..dcb6f6a0 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_precheck@0.01.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_precheck@0.01.yml
@@ -3,13 +3,11 @@
tasks:
- name: create a temporary file for additional data
file:
- path: /tmp/tmp-{{Id}}
- state: touch
- become: false
+ path: /tmp/tmp-{{Id}}
+ state: touch
- name: prepare additional data
shell: echo {{additionalData}} > /tmp/tmp-{{Id}}
- become: false
- name: execute pre-check operation
shell: ./swm/upgrade-pre-check {{pnfId}} {{oldSwVersion}} {{targetSwVersion}} {{ruleName}} /tmp/tmp-{{Id}}
@@ -22,9 +20,19 @@
- name: remove the temporary file
file:
- path: /tmp/tmp-{{Id}}
- state: absent
- become: false
+ path: /tmp/tmp-{{Id}}
+ state: absent
+
+ - name: build error message
+ set_fact:
+ err_msg:
+ "reason": "{{precheck_result.stderr}}"
+ "result": "Failure"
+ when: precheck_result is failed and precheck_result.stdout == "" and precheck_result.stderr != ""
+
+ - name: write error message to file
+ local_action: copy content="{{err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: precheck_result is failed and precheck_result.stdout == "" and precheck_result.stderr != ""
- name: use result of pre-check as the result of Playbook
fail:
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
index fa164c9c..8d8982af 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_rollback@0.00.yml
@@ -11,6 +11,17 @@
local_action: copy content="{{fallback_result.stdout}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
when: fallback_result.stdout != ""
+ - name: build error message
+ set_fact:
+ err_msg:
+ "reason": "{{fallback_result.stderr}}"
+ "result": "Failure"
+ when: fallback_result is failed and fallback_result.stdout == "" and fallback_result.stderr != ""
+
+ - name: write error message to file
+ local_action: copy content="{{err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: fallback_result is failed and fallback_result.stdout == "" and fallback_result.stderr != ""
+
- name: use result of swFallback as the result of Playbook
fail:
msg: "{{fallback_result.stderr}}"
diff --git a/installation/ansible-server/src/main/Playbooks/ansible_huawei_upgrade@0.01.yml b/installation/ansible-server/src/main/Playbooks/ansible_huawei_upgrade@0.01.yml
index 4ebe69f0..c4b76b0f 100644
--- a/installation/ansible-server/src/main/Playbooks/ansible_huawei_upgrade@0.01.yml
+++ b/installation/ansible-server/src/main/Playbooks/ansible_huawei_upgrade@0.01.yml
@@ -38,8 +38,25 @@
- name: execute downloadNESw operation
shell: ./swm/downloadNESw --swToBeDownloaded {{sw_to_be_downloaded}} --neIdentifier {{ne_identifier}}
+ ignore_errors: yes
register: download_result
+ - name: build error message for downloadNESw
+ set_fact:
+ download_err_msg:
+ "reason": "downloadNESw failure"
+ "result": "Failure"
+ when: download_result is failed
+
+ - name: write error message to file for downloadNESw
+ local_action: copy content="{{download_err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: download_result is failed
+
+ - name: use result of downloadNESw as the result of Playbook
+ fail:
+ msg: "{{download_err_msg}}"
+ when: download_result is failed
+
- name: parse response of downloadNESw
set_fact:
download_response: "{{ download_result.stdout | from_json }}"
@@ -67,11 +84,13 @@
- name: execute installNESw operation
shell: ./swm/installNESw --swToBeInstalled {{item}} --neIdentifier {{ne_identifier}}
+ ignore_errors: yes
register: install_result
with_items: "{{ downloaded_ne_sw_info | default([]) }}"
- name: execute installNESw operation using new parameter
shell: ./swm/installNESw --swToBeInstalled {{item}} --neIdentifier {{ne_identifier}}
+ ignore_errors: yes
register: install_result_new
with_items: "{{ sw_to_be_installed | default([]) }}"
@@ -80,6 +99,22 @@
install_result: "{{ install_result_new }}"
when: swToBeInstalled is defined
+ - name: build error message for installNESw
+ set_fact:
+ install_err_msg:
+ "reason": "installNESw failure"
+ "result": "Failure"
+ when: install_result is failed
+
+ - name: write error message to file for installNESw
+ local_action: copy content="{{install_err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: install_result is failed
+
+ - name: use result of installNESw as the result of Playbook
+ fail:
+ msg: "{{install_err_msg}}"
+ when: install_result is failed
+
- name: set install results list
set_fact:
install_results_list: "{{ install_result.results }}"
@@ -112,11 +147,13 @@
- name: execute activateNESw operation
shell: ./swm/activateNESw --swVersionToBeActivated {{item}} --neIdentifier {{ne_identifier}}
+ ignore_errors: yes
register: activate_result
with_items: "{{ installed_ne_sw_info | default([]) }}"
- name: execute activateNESw operation using new parameter
shell: ./swm/activateNESw --swVersionToBeActivated {{sw_version_to_be_activated}} --neIdentifier {{ne_identifier}}
+ ignore_errors: yes
register: activate_result_new
when: swVersionToBeActivated is defined
@@ -125,3 +162,29 @@
activate_result: "{{ activate_result_new }}"
when: swVersionToBeActivated is defined
+ - name: build error message for activateNESw
+ set_fact:
+ activate_err_msg:
+ "reason": "activateNESw failure"
+ "result": "Failure"
+ when: activate_result is failed
+
+ - name: write error message to file for activateNESw
+ local_action: copy content="{{activate_err_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: activate_result is failed
+
+ - name: use result of activateNESw as the result of Playbook
+ fail:
+ msg: "{{activate_err_msg}}"
+ when: activate_result is failed
+
+ - name: build success message for activateNESw
+ set_fact:
+ activate_success_msg:
+ "result": "Success"
+ when: activate_result is not failed
+
+ - name: write success message to file for activateNESw
+ local_action: copy content="{{activate_success_msg}}" dest="{{inventory_dir}}/{{inventory_hostname}}_results.txt"
+ when: activate_result is not failed
+
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
index 18a63f29..781faaa6 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-post-check.json
@@ -1,813 +1,1083 @@
[
{
- "id": "ab475552.d851d8",
+ "id": "fe0acee3.b3d4f",
"type": "method",
"name": "upgrade-post-check",
"xml": "<method rpc='upgrade-post-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 548,
- "y": 59,
- "z": "802a6e37.fb3c1",
+ "x": 523,
+ "y": 71,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "356938f4.e6ef78"
+ "88d3f9c3.91e818"
]
]
},
{
- "id": "db22c5e0.c4b368",
+ "id": "dd69f330.0db38",
"type": "service-logic",
- "name": "LCM 1.4.5",
+ "name": "LCM ${project.version}",
"module": "LCM",
- "version": "1.4.5",
+ "version": "${project.version}",
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 335.99993896484375,
- "y": 60,
- "z": "802a6e37.fb3c1",
+ "x": 310.99993896484375,
+ "y": 72,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "ab475552.d851d8"
+ "fe0acee3.b3d4f"
]
]
},
{
- "id": "74883a0a.669d34",
+ "id": "ca77e1d2.5f235",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-post-check-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 403.00001525878906,
- "y": 667,
- "z": "802a6e37.fb3c1",
+ "x": 378.00001525878906,
+ "y": 679,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8efae65a.30c7b8",
- "fdc248e2.dda948",
- "fc8e86cf.976918"
+ "98532a13.9e8648",
+ "300b9189.6839ae",
+ "93689f4a.8157"
]
]
},
{
- "id": "ea8ede8a.5e5e7",
+ "id": "338f7649.ef4e9a",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 802.9999389648438,
- "y": 775.0000305175781,
- "z": "802a6e37.fb3c1",
+ "x": 777.9999389648438,
+ "y": 787.0000305175781,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "ed747ae6.f82e38",
- "d348a5a9.90bb58",
- "606ee94e.547568"
+ "13e6fdd5.284672",
+ "558456ec.861628",
+ "d84c0d6b.4e961"
]
]
},
{
- "id": "ed747ae6.f82e38",
+ "id": "13e6fdd5.284672",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 947.9999389648438,
- "y": 773.0000381469727,
- "z": "802a6e37.fb3c1",
+ "x": 922.9999389648438,
+ "y": 785.0000381469727,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8e974f56.dbd44"
+ "d4f3b77a.b39508"
]
]
},
{
- "id": "d348a5a9.90bb58",
+ "id": "558456ec.861628",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 944.9999389648438,
- "y": 830.0000305175781,
- "z": "802a6e37.fb3c1",
+ "x": 919.9999389648438,
+ "y": 842.0000305175781,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "5fe71ec4.57d62"
+ "a1c39fcf.a06c"
]
]
},
{
- "id": "5fe71ec4.57d62",
+ "id": "a1c39fcf.a06c",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1132.9999389648438,
- "y": 829.0000305175781,
- "z": "802a6e37.fb3c1",
+ "x": 1107.9999389648438,
+ "y": 841.0000305175781,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "484e1e77.a4c4c",
- "ef7a898e.c55ae8"
+ "f58c60bb.b391f",
+ "b18d4538.e8ef28"
]
]
},
{
- "id": "fdc248e2.dda948",
+ "id": "300b9189.6839ae",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 661.9999389648438,
- "y": 688.0000915527344,
- "z": "802a6e37.fb3c1",
+ "x": 636.9999389648438,
+ "y": 700.0000915527344,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8e974f56.dbd44"
+ "d4f3b77a.b39508"
]
]
},
{
- "id": "8efae65a.30c7b8",
+ "id": "98532a13.9e8648",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 663.9999389648438,
- "y": 740.0000610351562,
- "z": "802a6e37.fb3c1",
+ "x": 638.9999389648438,
+ "y": 752.0000610351562,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "ea8ede8a.5e5e7"
+ "338f7649.ef4e9a"
]
]
},
{
- "id": "484e1e77.a4c4c",
+ "id": "f58c60bb.b391f",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1301.9999389648438,
- "y": 787.0000381469727,
- "z": "802a6e37.fb3c1",
+ "x": 1278.9998779296875,
+ "y": 820.0000610351562,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8e974f56.dbd44"
+ "44e1b1d0.b5bf9"
]
]
},
{
- "id": "606ee94e.547568",
+ "id": "d84c0d6b.4e961",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 944.9999389648438,
- "y": 731.0000686645508,
- "z": "802a6e37.fb3c1",
+ "x": 919.9999389648438,
+ "y": 743.0000686645508,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8e974f56.dbd44"
+ "d4f3b77a.b39508"
]
]
},
{
- "id": "ef7a898e.c55ae8",
+ "id": "b18d4538.e8ef28",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1309.9998779296875,
- "y": 835.0001220703125,
- "z": "802a6e37.fb3c1",
+ "x": 1281.9998779296875,
+ "y": 871.0001220703125,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "565fc0b9.1ff1a"
+ "44e1b1d0.b5bf9"
]
]
},
{
- "id": "bca33267.b186f",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
- "comments": "",
- "x": 1603.9998779296875,
- "y": 892.0000610351562,
- "z": "802a6e37.fb3c1",
- "wires": []
- },
- {
- "id": "f3c40140.4762d",
+ "id": "67392fb2.3fda3",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 151,
- "y": 59,
- "z": "802a6e37.fb3c1",
+ "x": 126,
+ "y": 71,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "db22c5e0.c4b368"
+ "dd69f330.0db38"
]
]
},
{
- "id": "356938f4.e6ef78",
+ "id": "88d3f9c3.91e818",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 148.91668701171875,
- "y": 151.08334350585938,
- "z": "802a6e37.fb3c1",
+ "x": 123.91668701171875,
+ "y": 163.08334350585938,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "74883a0a.669d34",
- "5f157934.113238",
- "fad67e1f.e709b",
- "f04f2fb5.8c0ca",
- "a1aa3253.06afa",
- "e636c2ac.2dc0d",
- "8b5b2558.88c888",
- "89a1b60f.9a2848"
+ "ca77e1d2.5f235",
+ "c7ec6050.45978",
+ "889f84ed.e111e8",
+ "40652fca.65d24",
+ "983b7f00.0aa95",
+ "43b098aa.2b8088",
+ "3c8d18f4.57a768",
+ "5c9efc94.d81d24"
]
]
},
{
- "id": "5f157934.113238",
+ "id": "c7ec6050.45978",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 447.0000305175781,
- "y": 184.08334350585938,
- "z": "802a6e37.fb3c1",
+ "x": 422.0000305175781,
+ "y": 196.08334350585938,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "9c2d2fed.0688d",
+ "id": "d9d2286.379c4d8",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1613.9998779296875,
- "y": 637.0834045410156,
- "z": "802a6e37.fb3c1",
+ "x": 1588.9998779296875,
+ "y": 649.0834045410156,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "789af377.cced2c"
+ "642ae55d.535a7c"
]
]
},
{
- "id": "789af377.cced2c",
+ "id": "642ae55d.535a7c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1783.9998168945312,
- "y": 636.0834045410156,
- "z": "802a6e37.fb3c1",
+ "x": 1758.9998168945312,
+ "y": 648.0834045410156,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "c75d24f.c2de2d8"
+ "7969554f.e56e0c"
]
]
},
{
- "id": "8e974f56.dbd44",
+ "id": "d4f3b77a.b39508",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1416.9998168945312,
- "y": 661.0834045410156,
- "z": "802a6e37.fb3c1",
+ "x": 1391.9998168945312,
+ "y": 673.0834045410156,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "9c2d2fed.0688d",
- "a0c3935d.9a935",
- "82255155.ccaef"
+ "d9d2286.379c4d8",
+ "8a00ee98.85d8c",
+ "a967853.2e08a78"
]
]
},
{
- "id": "2939808a.b52ef",
+ "id": "61a865a3.81374c",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1614.4998779296875,
- "y": 842.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1600.4998779296875,
+ "y": 904.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "22bed4c.08b6a2c"
+ "bf6e3414.ac0ab8"
]
]
},
{
- "id": "22bed4c.08b6a2c",
+ "id": "bf6e3414.ac0ab8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
"x": 1782.4998779296875,
- "y": 842.0833740234375,
- "z": "802a6e37.fb3c1",
+ "y": 904.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "8841bc4a.67149"
+ "a98ac8b6.1c8b18"
]
]
},
{
- "id": "c75d24f.c2de2d8",
+ "id": "7969554f.e56e0c",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1903.9998779296875,
- "y": 635.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1878.9998779296875,
+ "y": 647.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "a0c3935d.9a935",
+ "id": "8a00ee98.85d8c",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1595.91650390625,
- "y": 688.0834045410156,
- "z": "802a6e37.fb3c1",
+ "x": 1570.91650390625,
+ "y": 700.0834045410156,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "8841bc4a.67149",
+ "id": "a98ac8b6.1c8b18",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1910.9166259765625,
- "y": 842.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1912.9166259765625,
+ "y": 904.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "82255155.ccaef",
+ "id": "a967853.2e08a78",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1600.9998779296875,
- "y": 584.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1575.9998779296875,
+ "y": 596.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "565fc0b9.1ff1a",
+ "id": "44e1b1d0.b5bf9",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1437.9998779296875,
- "y": 836.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1406.9998779296875,
+ "y": 845.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "2939808a.b52ef",
- "cd18f032.f6fef",
- "bca33267.b186f"
+ "61a865a3.81374c",
+ "af2360f3.a1b32",
+ "c058b1a3.cafa7",
+ "d59d4575.f7aa08",
+ "97b68625.59c538"
]
]
},
{
- "id": "cd18f032.f6fef",
+ "id": "72836a7a.768624",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1604.1666259765625,
- "y": 787.0833740234375,
- "z": "802a6e37.fb3c1",
+ "x": 1938.1666259765625,
+ "y": 819.0833740234375,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "fc8e86cf.976918",
+ "id": "93689f4a.8157",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 670.9999389648438,
- "y": 640.0000610351562,
- "z": "802a6e37.fb3c1",
+ "x": 645.9999389648438,
+ "y": 652.0000610351562,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "95e77813.ba9108"
+ "c92e96da.bead68"
]
]
},
{
- "id": "60c18ca3.4f03c4",
+ "id": "3705b5ae.a55ada",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 961.9999389648438,
- "y": 599,
- "z": "802a6e37.fb3c1",
+ "x": 936.9999389648438,
+ "y": 611,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "95e77813.ba9108",
+ "id": "c92e96da.bead68",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 807.9999389648438,
- "y": 634.0000610351562,
- "z": "802a6e37.fb3c1",
+ "x": 782.9999389648438,
+ "y": 646.0000610351562,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "60c18ca3.4f03c4",
- "8e974f56.dbd44"
+ "3705b5ae.a55ada",
+ "d4f3b77a.b39508"
]
]
},
{
- "id": "fad67e1f.e709b",
+ "id": "889f84ed.e111e8",
"type": "set",
"name": "set default values",
- "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n<parameter name='outputPayloadField' value='.Output' />\n",
"comments": "",
- "x": 440,
- "y": 231,
- "z": "802a6e37.fb3c1",
+ "x": 415,
+ "y": 243,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "24f45898.65de18",
+ "id": "9e2047bf.84ca98",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-post-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 980,
- "y": 407,
- "z": "802a6e37.fb3c1",
+ "x": 955,
+ "y": 419,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "3a57fbc.0ac6d04"
+ "db67679b.d5f7f8"
]
]
},
{
- "id": "3a57fbc.0ac6d04",
+ "id": "db67679b.d5f7f8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1138.3907470703125,
- "y": 405.28399658203125,
- "z": "802a6e37.fb3c1",
+ "x": 1113.3907470703125,
+ "y": 417.28399658203125,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "721a47cc.cdf2d8"
+ "9f78147c.45b0d8"
]
]
},
{
- "id": "8b5b2558.88c888",
+ "id": "3c8d18f4.57a768",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 368.9998779296875,
- "y": 595,
- "z": "802a6e37.fb3c1",
+ "x": 343.9998779296875,
+ "y": 607,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "a1aa3253.06afa",
+ "id": "983b7f00.0aa95",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 422,
- "y": 332,
- "z": "802a6e37.fb3c1",
+ "x": 397,
+ "y": 344,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "9417db8c.51c568",
- "9e3df3f5.2c2d9"
+ "6ab53366.6b679c",
+ "c2f80dd0.8d1"
]
]
},
{
- "id": "f04f2fb5.8c0ca",
+ "id": "40652fca.65d24",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-post-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 454,
- "y": 278,
- "z": "802a6e37.fb3c1",
+ "x": 429,
+ "y": 290,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "9417db8c.51c568",
+ "id": "6ab53366.6b679c",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 619,
- "y": 311,
- "z": "802a6e37.fb3c1",
+ "x": 594,
+ "y": 323,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "94353f3f.e7eee"
+ "b2f335c.b319ac8"
]
]
},
{
- "id": "9e3df3f5.2c2d9",
+ "id": "c2f80dd0.8d1",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 618.9999389648438,
- "y": 372,
- "z": "802a6e37.fb3c1",
+ "x": 593.9999389648438,
+ "y": 384,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "95b6db3f.a43608"
+ "64084999.263e28"
]
]
},
{
- "id": "95b6db3f.a43608",
+ "id": "64084999.263e28",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 766.9999389648438,
- "y": 371,
- "z": "802a6e37.fb3c1",
+ "x": 741.9999389648438,
+ "y": 383,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "24f45898.65de18",
- "240a5e4b.ef6af2"
+ "9e2047bf.84ca98",
+ "1c2838e7.02c327"
]
]
},
{
- "id": "94353f3f.e7eee",
+ "id": "b2f335c.b319ac8",
"type": "set",
"name": "set AnsibleReq",
- "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-post-check.playbookname`'/>\n",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-post-check.playbookname`'/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",
"comments": "",
- "x": 780,
- "y": 309,
- "z": "802a6e37.fb3c1",
+ "x": 755,
+ "y": 321,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "240a5e4b.ef6af2",
+ "id": "1c2838e7.02c327",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 989,
- "y": 351,
- "z": "802a6e37.fb3c1",
+ "x": 964,
+ "y": 363,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
},
{
- "id": "e636c2ac.2dc0d",
+ "id": "43b098aa.2b8088",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 419,
- "y": 463,
- "z": "802a6e37.fb3c1",
+ "x": 394,
+ "y": 475,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "a65bd4c9.27f638"
+ "f5a4d554.8310a8"
]
]
},
{
- "id": "a65bd4c9.27f638",
+ "id": "f5a4d554.8310a8",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 590,
- "y": 464,
- "z": "802a6e37.fb3c1",
+ "x": 565,
+ "y": 476,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "286bc0d0.e5819"
+ "e3207caa.85b44"
]
]
},
{
- "id": "286bc0d0.e5819",
+ "id": "e3207caa.85b44",
"type": "set",
"name": "set playbookname",
"xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-post-check.playbookname`'/>",
"comments": "",
- "x": 780,
- "y": 463,
- "z": "802a6e37.fb3c1",
+ "x": 755,
+ "y": 475,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "89a1b60f.9a2848",
+ "id": "5c9efc94.d81d24",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 409,
- "y": 522,
- "z": "802a6e37.fb3c1",
+ "x": 384,
+ "y": 534,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "10bd0563.dd89eb",
- "9f1eacfe.fa54"
+ "77224991.c20a78",
+ "2deab8c5.642298"
]
]
},
{
- "id": "10bd0563.dd89eb",
+ "id": "77224991.c20a78",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 589,
- "y": 515,
- "z": "802a6e37.fb3c1",
+ "x": 564,
+ "y": 527,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "f0ef60d3.f64f"
+ "3881d027.425ff"
]
]
},
{
- "id": "f0ef60d3.f64f",
+ "id": "3881d027.425ff",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 746,
- "y": 529,
- "z": "802a6e37.fb3c1",
+ "x": 721,
+ "y": 541,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "9f1eacfe.fa54",
+ "id": "2deab8c5.642298",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 588,
- "y": 559,
- "z": "802a6e37.fb3c1",
+ "x": 563,
+ "y": 571,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "f0ef60d3.f64f"
+ "3881d027.425ff"
]
]
},
{
- "id": "26d43493.24ca8c",
+ "id": "153ed401.962ddc",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1464,
- "y": 394,
- "z": "802a6e37.fb3c1",
+ "x": 1439,
+ "y": 406,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "ad0fd429.dd1178"
+ "3cfaf009.20065"
]
]
},
{
- "id": "ad0fd429.dd1178",
+ "id": "3cfaf009.20065",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1642,
- "y": 394,
- "z": "802a6e37.fb3c1",
+ "x": 1617,
+ "y": 406,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "bbed41e1.ca0c4"
+ "8e725f1f.6662f"
]
]
},
{
- "id": "3935df66.a3be5",
+ "id": "9e70216f.c9b2f",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1437,
- "y": 447,
- "z": "802a6e37.fb3c1",
+ "x": 1412,
+ "y": 459,
+ "z": "b4969602.e5a2a8",
"wires": []
},
{
- "id": "721a47cc.cdf2d8",
+ "id": "9f78147c.45b0d8",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1267,
- "y": 404,
- "z": "802a6e37.fb3c1",
+ "x": 1242,
+ "y": 416,
+ "z": "b4969602.e5a2a8",
"wires": [
[
- "26d43493.24ca8c",
- "3935df66.a3be5"
+ "153ed401.962ddc",
+ "9e70216f.c9b2f"
]
]
},
{
- "id": "bbed41e1.ca0c4",
+ "id": "8e725f1f.6662f",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-post-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1814,
- "y": 392,
- "z": "802a6e37.fb3c1",
+ "x": 1789,
+ "y": 404,
+ "z": "b4969602.e5a2a8",
"wires": [
[]
]
+ },
+ {
+ "id": "af2360f3.a1b32",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1616,
+ "y": 750,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "c058b1a3.cafa7",
+ "type": "execute",
+ "name": "execute getAttributeValue",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson' + $outputPayloadField`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1622,
+ "y": 793,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d59d4575.f7aa08",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1606,
+ "y": 840,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "676d5ce5.e9d864",
+ "8ecd1678.ebdff8"
+ ]
+ ]
+ },
+ {
+ "id": "676d5ce5.e9d864",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1783,
+ "y": 819,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "72836a7a.768624"
+ ]
+ ]
+ },
+ {
+ "id": "8ecd1678.ebdff8",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1782,
+ "y": 859,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "5f5e736e.9d3b8c"
+ ]
+ ]
+ },
+ {
+ "id": "5f5e736e.9d3b8c",
+ "type": "set",
+ "name": "set DmaapReq with payload",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 1980,
+ "y": 859,
+ "z": "b4969602.e5a2a8",
+ "wires": []
+ },
+ {
+ "id": "bd7deada.205038",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "comments": "",
+ "x": 2322,
+ "y": 937,
+ "z": "b4969602.e5a2a8",
+ "wires": []
+ },
+ {
+ "id": "530e9d63.07dd34",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1788.000244140625,
+ "y": 958.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "aba50f21.a535d"
+ ]
+ ]
+ },
+ {
+ "id": "d6c0e471.9108d8",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1787.000244140625,
+ "y": 1034.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "801dd50e.8622c8"
+ ]
+ ]
+ },
+ {
+ "id": "97b68625.59c538",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1605.000244140625,
+ "y": 994.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "530e9d63.07dd34",
+ "d6c0e471.9108d8"
+ ]
+ ]
+ },
+ {
+ "id": "acbbf9db.eeba28",
+ "type": "returnSuccess",
+ "name": "return success with payload",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2363.000244140625,
+ "y": 1018.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": []
+ },
+ {
+ "id": "aba50f21.a535d",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1958.000244140625,
+ "y": 958.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "3ac4241b.62144c",
+ "c67e4b5c.d70a28"
+ ]
+ ]
+ },
+ {
+ "id": "801dd50e.8622c8",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1958.000244140625,
+ "y": 1034.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "8dcd3ae3.608a58",
+ "a94e8dc6.52647"
+ ]
+ ]
+ },
+ {
+ "id": "657ecc9e.2687c4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "comments": "",
+ "x": 2316.000244140625,
+ "y": 974.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": []
+ },
+ {
+ "id": "52f49f6f.dcf4",
+ "type": "returnFailure",
+ "name": "return failure with payload",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2359.000244140625,
+ "y": 1056.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": []
+ },
+ {
+ "id": "3ac4241b.62144c",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2146.000244140625,
+ "y": 936.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "bd7deada.205038"
+ ]
+ ]
+ },
+ {
+ "id": "c67e4b5c.d70a28",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2127.000244140625,
+ "y": 974.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "657ecc9e.2687c4"
+ ]
+ ]
+ },
+ {
+ "id": "8dcd3ae3.608a58",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2147.000244140625,
+ "y": 1018.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "acbbf9db.eeba28"
+ ]
+ ]
+ },
+ {
+ "id": "a94e8dc6.52647",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2129.000244140625,
+ "y": 1056.9999389648438,
+ "z": "b4969602.e5a2a8",
+ "wires": [
+ [
+ "52f49f6f.dcf4"
+ ]
+ ]
}
] \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
index 08b896ec..0239c763 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-pre-check.json
@@ -1,813 +1,1083 @@
[
{
- "id": "dfc42d29.4066",
+ "id": "e17c1584.f756d8",
"type": "method",
"name": "upgrade-pre-check",
"xml": "<method rpc='upgrade-pre-check' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 554,
- "y": 86,
- "z": "a5b492f8.99d13",
+ "x": 552,
+ "y": 67,
+ "z": "df893cfa.16f38",
"wires": [
[
- "dc3f6c8f.49cb4"
+ "4a691c8b.6b9db4"
]
]
},
{
- "id": "ec3ea72c.b00d38",
+ "id": "1f7a861d.c2112a",
"type": "service-logic",
- "name": "LCM 1.4.5",
+ "name": "LCM ${project.version}",
"module": "LCM",
- "version": "1.4.5",
+ "version": "${project.version}",
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 341.99993896484375,
- "y": 87,
- "z": "a5b492f8.99d13",
+ "x": 339.99993896484375,
+ "y": 68,
+ "z": "df893cfa.16f38",
"wires": [
[
- "dfc42d29.4066"
+ "e17c1584.f756d8"
]
]
},
{
- "id": "aa4b4733.b95e98",
+ "id": "bb18ce54.65a6d",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-pre-check-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 409.00001525878906,
- "y": 694,
- "z": "a5b492f8.99d13",
+ "x": 407.00001525878906,
+ "y": 675,
+ "z": "df893cfa.16f38",
"wires": [
[
- "eed23890.382f88",
- "39c73cda.20f284",
- "d5d4d9a.dfdee28"
+ "c6f98872.c067e8",
+ "5614f2d4.83759c",
+ "1beab9a5.7e2366"
]
]
},
{
- "id": "c2461908.a56de8",
+ "id": "8e97cc56.5d143",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 808.9999389648438,
- "y": 802.0000305175781,
- "z": "a5b492f8.99d13",
+ "x": 806.9999389648438,
+ "y": 783.0000305175781,
+ "z": "df893cfa.16f38",
"wires": [
[
- "21b1a494.57eb8c",
- "c0ddf646.939658",
- "c13b6a1f.ac5838"
+ "d5d391c0.e33eb",
+ "96569d9a.8f849",
+ "8eb6da31.c976d8"
]
]
},
{
- "id": "21b1a494.57eb8c",
+ "id": "d5d391c0.e33eb",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 953.9999389648438,
- "y": 800.0000381469727,
- "z": "a5b492f8.99d13",
+ "x": 951.9999389648438,
+ "y": 781.0000381469727,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c0fa5e3.de329a"
+ "261676ae.6c18ea"
]
]
},
{
- "id": "c0ddf646.939658",
+ "id": "96569d9a.8f849",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 950.9999389648438,
- "y": 857.0000305175781,
- "z": "a5b492f8.99d13",
+ "x": 948.9999389648438,
+ "y": 838.0000305175781,
+ "z": "df893cfa.16f38",
"wires": [
[
- "95b7bcea.2185b"
+ "a9aeb5d4.ad8218"
]
]
},
{
- "id": "95b7bcea.2185b",
+ "id": "a9aeb5d4.ad8218",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1138.9999389648438,
- "y": 856.0000305175781,
- "z": "a5b492f8.99d13",
+ "x": 1136.9999389648438,
+ "y": 837.0000305175781,
+ "z": "df893cfa.16f38",
"wires": [
[
- "205ffc13.4d2b24",
- "c24e2446.933768"
+ "50e30f80.cb97b",
+ "f9b1e44f.cf0bf8"
]
]
},
{
- "id": "39c73cda.20f284",
+ "id": "5614f2d4.83759c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 667.9999389648438,
- "y": 715.0000915527344,
- "z": "a5b492f8.99d13",
+ "x": 665.9999389648438,
+ "y": 696.0000915527344,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c0fa5e3.de329a"
+ "261676ae.6c18ea"
]
]
},
{
- "id": "eed23890.382f88",
+ "id": "c6f98872.c067e8",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 669.9999389648438,
- "y": 767.0000610351562,
- "z": "a5b492f8.99d13",
+ "x": 667.9999389648438,
+ "y": 748.0000610351562,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c2461908.a56de8"
+ "8e97cc56.5d143"
]
]
},
{
- "id": "205ffc13.4d2b24",
+ "id": "50e30f80.cb97b",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1307.9999389648438,
- "y": 814.0000381469727,
- "z": "a5b492f8.99d13",
+ "x": 1305.9998779296875,
+ "y": 819.0000610351562,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c0fa5e3.de329a"
+ "7ac364bd.12e01c"
]
]
},
{
- "id": "c13b6a1f.ac5838",
+ "id": "8eb6da31.c976d8",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 950.9999389648438,
- "y": 758.0000686645508,
- "z": "a5b492f8.99d13",
+ "x": 948.9999389648438,
+ "y": 739.0000686645508,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c0fa5e3.de329a"
+ "261676ae.6c18ea"
]
]
},
{
- "id": "c24e2446.933768",
+ "id": "f9b1e44f.cf0bf8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1315.9998779296875,
- "y": 862.0001220703125,
- "z": "a5b492f8.99d13",
+ "x": 1309.9998779296875,
+ "y": 863.0001220703125,
+ "z": "df893cfa.16f38",
"wires": [
[
- "1b8bc484.4e584b"
+ "7ac364bd.12e01c"
]
]
},
{
- "id": "425c7483.101a2c",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
- "comments": "",
- "x": 1609.9998779296875,
- "y": 919.0000610351562,
- "z": "a5b492f8.99d13",
- "wires": []
- },
- {
- "id": "d9f050b3.ea908",
+ "id": "a40759ed.63a388",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 157,
- "y": 86,
- "z": "a5b492f8.99d13",
+ "x": 155,
+ "y": 67,
+ "z": "df893cfa.16f38",
"wires": [
[
- "ec3ea72c.b00d38"
+ "1f7a861d.c2112a"
]
]
},
{
- "id": "dc3f6c8f.49cb4",
+ "id": "4a691c8b.6b9db4",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 154.91668701171875,
- "y": 178.08334350585938,
- "z": "a5b492f8.99d13",
+ "x": 152.91668701171875,
+ "y": 159.08334350585938,
+ "z": "df893cfa.16f38",
"wires": [
[
- "aa4b4733.b95e98",
- "ad12ad52.0e14c",
- "494bc731.2b3b38",
- "e7275d95.288b8",
- "790211fa.4ddc3",
- "87c25306.3bca6",
- "54a283d8.5df65c",
- "1cee6cc7.a0f263"
+ "bb18ce54.65a6d",
+ "4f789742.ddd168",
+ "2f15d339.87cf0c",
+ "556d2c3e.217c14",
+ "905f1137.7562f",
+ "5cc58e7c.083a5",
+ "db896c60.3d19a",
+ "ae5d9d02.d1fe4"
]
]
},
{
- "id": "ad12ad52.0e14c",
+ "id": "4f789742.ddd168",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 453.0000305175781,
- "y": 211.08334350585938,
- "z": "a5b492f8.99d13",
+ "x": 451.0000305175781,
+ "y": 192.08334350585938,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "9aa2e4.6e1c5d2",
+ "id": "9f29e934.d196d8",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1619.9998779296875,
- "y": 664.0834045410156,
- "z": "a5b492f8.99d13",
+ "x": 1617.9998779296875,
+ "y": 645.0834045410156,
+ "z": "df893cfa.16f38",
"wires": [
[
- "fde058a0.d22348"
+ "eff6b07f.5f555"
]
]
},
{
- "id": "fde058a0.d22348",
+ "id": "eff6b07f.5f555",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1789.9998168945312,
- "y": 663.0834045410156,
- "z": "a5b492f8.99d13",
+ "x": 1787.9998168945312,
+ "y": 644.0834045410156,
+ "z": "df893cfa.16f38",
"wires": [
[
- "ff5c4bc7.d7c748"
+ "39c1e046.0c9a2"
]
]
},
{
- "id": "c0fa5e3.de329a",
+ "id": "261676ae.6c18ea",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1422.9998168945312,
- "y": 688.0834045410156,
- "z": "a5b492f8.99d13",
+ "x": 1420.9998168945312,
+ "y": 669.0834045410156,
+ "z": "df893cfa.16f38",
"wires": [
[
- "9aa2e4.6e1c5d2",
- "16091a49.ebb886",
- "320ba499.3a71fc"
+ "9f29e934.d196d8",
+ "20f5321f.fe2dee",
+ "b16d5209.3031f"
]
]
},
{
- "id": "d1627c41.4a916",
+ "id": "dd99789.6491a88",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1620.4998779296875,
- "y": 869.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1653.4998779296875,
+ "y": 911.0833740234375,
+ "z": "df893cfa.16f38",
"wires": [
[
- "cdd5a821.a26858"
+ "16bb547b.d2861c"
]
]
},
{
- "id": "cdd5a821.a26858",
+ "id": "16bb547b.d2861c",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1788.4998779296875,
- "y": 869.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1838.4998779296875,
+ "y": 911.0833740234375,
+ "z": "df893cfa.16f38",
"wires": [
[
- "6834bf03.5aff8"
+ "95e8f51a.226ea8"
]
]
},
{
- "id": "ff5c4bc7.d7c748",
+ "id": "39c1e046.0c9a2",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1909.9998779296875,
- "y": 662.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1907.9998779296875,
+ "y": 643.0833740234375,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "16091a49.ebb886",
+ "id": "20f5321f.fe2dee",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1601.91650390625,
- "y": 715.0834045410156,
- "z": "a5b492f8.99d13",
+ "x": 1599.91650390625,
+ "y": 696.0834045410156,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "6834bf03.5aff8",
+ "id": "95e8f51a.226ea8",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1916.9166259765625,
- "y": 869.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1970.9166259765625,
+ "y": 911.0833740234375,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "320ba499.3a71fc",
+ "id": "b16d5209.3031f",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1606.9998779296875,
- "y": 611.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1604.9998779296875,
+ "y": 592.0833740234375,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "1b8bc484.4e584b",
+ "id": "7ac364bd.12e01c",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1443.9998779296875,
- "y": 863.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1441.9998779296875,
+ "y": 838.0833740234375,
+ "z": "df893cfa.16f38",
"wires": [
[
- "d1627c41.4a916",
- "da2077e7.65e5f8",
- "425c7483.101a2c"
+ "dd99789.6491a88",
+ "66ca1a2.98ef5e4",
+ "6f78d9df.0d3518",
+ "3c0a54ab.00262c",
+ "9977ea00.521808"
]
]
},
{
- "id": "da2077e7.65e5f8",
+ "id": "b364bef1.e2765",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1610.1666259765625,
- "y": 814.0833740234375,
- "z": "a5b492f8.99d13",
+ "x": 1995.1666259765625,
+ "y": 816.0833740234375,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "d5d4d9a.dfdee28",
+ "id": "1beab9a5.7e2366",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 676.9999389648438,
- "y": 667.0000610351562,
- "z": "a5b492f8.99d13",
+ "x": 674.9999389648438,
+ "y": 648.0000610351562,
+ "z": "df893cfa.16f38",
"wires": [
[
- "c67639b8.92e2d8"
+ "dd0b1351.6bec5"
]
]
},
{
- "id": "1707d581.de00aa",
+ "id": "6e45eb8e.292b44",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 967.9999389648438,
- "y": 626,
- "z": "a5b492f8.99d13",
+ "x": 965.9999389648438,
+ "y": 607,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "c67639b8.92e2d8",
+ "id": "dd0b1351.6bec5",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 813.9999389648438,
- "y": 661.0000610351562,
- "z": "a5b492f8.99d13",
+ "x": 811.9999389648438,
+ "y": 642.0000610351562,
+ "z": "df893cfa.16f38",
"wires": [
[
- "1707d581.de00aa",
- "c0fa5e3.de329a"
+ "6e45eb8e.292b44",
+ "261676ae.6c18ea"
]
]
},
{
- "id": "494bc731.2b3b38",
+ "id": "2f15d339.87cf0c",
"type": "set",
"name": "set default values",
- "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n<parameter name='outputPayloadField' value='.Output' />\n",
"comments": "",
- "x": 446,
- "y": 258,
- "z": "a5b492f8.99d13",
+ "x": 444,
+ "y": 239,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "6e382fc2.9cf55",
+ "id": "3bd1d194.63001e",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-pre-check-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 986,
- "y": 434,
- "z": "a5b492f8.99d13",
+ "x": 984,
+ "y": 415,
+ "z": "df893cfa.16f38",
"wires": [
[
- "d143bfec.8f45b"
+ "d0549989.50cdf8"
]
]
},
{
- "id": "d143bfec.8f45b",
+ "id": "d0549989.50cdf8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1144.3907470703125,
- "y": 432.28399658203125,
- "z": "a5b492f8.99d13",
+ "x": 1142.3907470703125,
+ "y": 413.28399658203125,
+ "z": "df893cfa.16f38",
"wires": [
[
- "19bb6647.2aa81a"
+ "50890a76.58d434"
]
]
},
{
- "id": "54a283d8.5df65c",
+ "id": "db896c60.3d19a",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 374.9998779296875,
- "y": 622,
- "z": "a5b492f8.99d13",
+ "x": 372.9998779296875,
+ "y": 603,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "790211fa.4ddc3",
+ "id": "905f1137.7562f",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 428,
- "y": 359,
- "z": "a5b492f8.99d13",
+ "x": 426,
+ "y": 340,
+ "z": "df893cfa.16f38",
"wires": [
[
- "3deb4f48.5eacb",
- "33286dd4.94fc62"
+ "d4a98e23.62f9b",
+ "a403044b.ebc9f8"
]
]
},
{
- "id": "e7275d95.288b8",
+ "id": "556d2c3e.217c14",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-pre-check-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 460,
- "y": 305,
- "z": "a5b492f8.99d13",
+ "x": 458,
+ "y": 286,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "3deb4f48.5eacb",
+ "id": "d4a98e23.62f9b",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 625,
- "y": 338,
- "z": "a5b492f8.99d13",
+ "x": 623,
+ "y": 319,
+ "z": "df893cfa.16f38",
"wires": [
[
- "cb346986.12dd48"
+ "582ec79b.faa468"
]
]
},
{
- "id": "33286dd4.94fc62",
+ "id": "a403044b.ebc9f8",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 624.9999389648438,
- "y": 399,
- "z": "a5b492f8.99d13",
+ "x": 622.9999389648438,
+ "y": 380,
+ "z": "df893cfa.16f38",
"wires": [
[
- "3af30869.256818"
+ "3184e083.2b204"
]
]
},
{
- "id": "3af30869.256818",
+ "id": "3184e083.2b204",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 772.9999389648438,
- "y": 398,
- "z": "a5b492f8.99d13",
+ "x": 770.9999389648438,
+ "y": 379,
+ "z": "df893cfa.16f38",
"wires": [
[
- "6e382fc2.9cf55",
- "ce17fe7f.d3b68"
+ "3bd1d194.63001e",
+ "395906a2.acd1ea"
]
]
},
{
- "id": "cb346986.12dd48",
+ "id": "582ec79b.faa468",
"type": "set",
"name": "set AnsibleReq",
- "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-pre-check.playbookname`'/>\n",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-pre-check.playbookname`'/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",
"comments": "",
- "x": 786,
- "y": 336,
- "z": "a5b492f8.99d13",
+ "x": 784,
+ "y": 317,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "ce17fe7f.d3b68",
+ "id": "395906a2.acd1ea",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 995,
- "y": 378,
- "z": "a5b492f8.99d13",
+ "x": 993,
+ "y": 359,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
},
{
- "id": "87c25306.3bca6",
+ "id": "5cc58e7c.083a5",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 425,
- "y": 490,
- "z": "a5b492f8.99d13",
+ "x": 423,
+ "y": 471,
+ "z": "df893cfa.16f38",
"wires": [
[
- "4b5ce9b.bbd8818"
+ "b9c121b9.01765"
]
]
},
{
- "id": "4b5ce9b.bbd8818",
+ "id": "b9c121b9.01765",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 596,
- "y": 491,
- "z": "a5b492f8.99d13",
+ "x": 594,
+ "y": 472,
+ "z": "df893cfa.16f38",
"wires": [
[
- "7b056df1.6a5e34"
+ "96dc86e8.19da88"
]
]
},
{
- "id": "7b056df1.6a5e34",
+ "id": "96dc86e8.19da88",
"type": "set",
"name": "set playbookname",
"xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-pre-check.playbookname`'/>",
"comments": "",
- "x": 786,
- "y": 490,
- "z": "a5b492f8.99d13",
+ "x": 784,
+ "y": 471,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "1cee6cc7.a0f263",
+ "id": "ae5d9d02.d1fe4",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 415,
- "y": 549,
- "z": "a5b492f8.99d13",
+ "x": 413,
+ "y": 530,
+ "z": "df893cfa.16f38",
"wires": [
[
- "892b8fdd.f84ea",
- "8e25ca9e.be6708"
+ "d47821da.1dd48",
+ "69b2cec2.dd018"
]
]
},
{
- "id": "892b8fdd.f84ea",
+ "id": "d47821da.1dd48",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 595,
- "y": 542,
- "z": "a5b492f8.99d13",
+ "x": 593,
+ "y": 523,
+ "z": "df893cfa.16f38",
"wires": [
[
- "482863bc.936c5c"
+ "dce9b14d.bb77b"
]
]
},
{
- "id": "482863bc.936c5c",
+ "id": "dce9b14d.bb77b",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 752,
- "y": 556,
- "z": "a5b492f8.99d13",
+ "x": 750,
+ "y": 537,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "8e25ca9e.be6708",
+ "id": "69b2cec2.dd018",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 594,
- "y": 586,
- "z": "a5b492f8.99d13",
+ "x": 592,
+ "y": 567,
+ "z": "df893cfa.16f38",
"wires": [
[
- "482863bc.936c5c"
+ "dce9b14d.bb77b"
]
]
},
{
- "id": "75287f66.d6424",
+ "id": "8d045871.31f638",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1470,
- "y": 421,
- "z": "a5b492f8.99d13",
+ "x": 1468,
+ "y": 402,
+ "z": "df893cfa.16f38",
"wires": [
[
- "cf31ac68.a9966"
+ "ef1e7a17.621f38"
]
]
},
{
- "id": "cf31ac68.a9966",
+ "id": "ef1e7a17.621f38",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1648,
- "y": 421,
- "z": "a5b492f8.99d13",
+ "x": 1646,
+ "y": 402,
+ "z": "df893cfa.16f38",
"wires": [
[
- "822cf6dc.fbd318"
+ "862a6ea8.3ba16"
]
]
},
{
- "id": "f5a8e69f.6d2868",
+ "id": "8543ebcf.2ead48",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1443,
- "y": 474,
- "z": "a5b492f8.99d13",
+ "x": 1441,
+ "y": 455,
+ "z": "df893cfa.16f38",
"wires": []
},
{
- "id": "19bb6647.2aa81a",
+ "id": "50890a76.58d434",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1273,
- "y": 431,
- "z": "a5b492f8.99d13",
+ "x": 1271,
+ "y": 412,
+ "z": "df893cfa.16f38",
"wires": [
[
- "75287f66.d6424",
- "f5a8e69f.6d2868"
+ "8d045871.31f638",
+ "8543ebcf.2ead48"
]
]
},
{
- "id": "822cf6dc.fbd318",
+ "id": "862a6ea8.3ba16",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-pre-check.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1820,
- "y": 419,
- "z": "a5b492f8.99d13",
+ "x": 1818,
+ "y": 400,
+ "z": "df893cfa.16f38",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "66ca1a2.98ef5e4",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1668,
+ "y": 744,
+ "z": "df893cfa.16f38",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "6f78d9df.0d3518",
+ "type": "execute",
+ "name": "execute getAttributeValue",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson' + $outputPayloadField`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1674,
+ "y": 789,
+ "z": "df893cfa.16f38",
"wires": [
[]
]
+ },
+ {
+ "id": "3c0a54ab.00262c",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1660,
+ "y": 836,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "65b8d06e.2f308",
+ "db2edf05.5dbf2"
+ ]
+ ]
+ },
+ {
+ "id": "65b8d06e.2f308",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1838,
+ "y": 816,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "b364bef1.e2765"
+ ]
+ ]
+ },
+ {
+ "id": "db2edf05.5dbf2",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1839,
+ "y": 860,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "3b020d0b.edb822"
+ ]
+ ]
+ },
+ {
+ "id": "3b020d0b.edb822",
+ "type": "set",
+ "name": "set DmaapReq with payload",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2036,
+ "y": 860,
+ "z": "df893cfa.16f38",
+ "wires": []
+ },
+ {
+ "id": "e583cc0b.79586",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "comments": "",
+ "x": 2371,
+ "y": 946.9999389648438,
+ "z": "df893cfa.16f38",
+ "wires": []
+ },
+ {
+ "id": "b678b572.4bc6d8",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1837.000244140625,
+ "y": 968.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "bebb9bde.cadbc8"
+ ]
+ ]
+ },
+ {
+ "id": "e71f0e75.f5e6e",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1836.000244140625,
+ "y": 1044.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "a34ae1ab.50555"
+ ]
+ ]
+ },
+ {
+ "id": "9977ea00.521808",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1654.000244140625,
+ "y": 1004.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "b678b572.4bc6d8",
+ "e71f0e75.f5e6e"
+ ]
+ ]
+ },
+ {
+ "id": "c888915f.7e81c",
+ "type": "returnSuccess",
+ "name": "return success with payload",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2412.000244140625,
+ "y": 1028.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": []
+ },
+ {
+ "id": "bebb9bde.cadbc8",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2007.000244140625,
+ "y": 968.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "1b395046.b5f6",
+ "d4989dec.88a2e"
+ ]
+ ]
+ },
+ {
+ "id": "a34ae1ab.50555",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2007.000244140625,
+ "y": 1044.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "8e9f2082.ee767",
+ "3b44f0c3.4b7c2"
+ ]
+ ]
+ },
+ {
+ "id": "5e9a3c.5f7e95c4",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "comments": "",
+ "x": 2365.000244140625,
+ "y": 984.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": []
+ },
+ {
+ "id": "398f4135.fd470e",
+ "type": "returnFailure",
+ "name": "return failure with payload",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2408.000244140625,
+ "y": 1066.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": []
+ },
+ {
+ "id": "1b395046.b5f6",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2195.000244140625,
+ "y": 946.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "e583cc0b.79586"
+ ]
+ ]
+ },
+ {
+ "id": "d4989dec.88a2e",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2176.000244140625,
+ "y": 984.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "5e9a3c.5f7e95c4"
+ ]
+ ]
+ },
+ {
+ "id": "8e9f2082.ee767",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2196.000244140625,
+ "y": 1028.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "c888915f.7e81c"
+ ]
+ ]
+ },
+ {
+ "id": "3b44f0c3.4b7c2",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2178.000244140625,
+ "y": 1066.9998779296875,
+ "z": "df893cfa.16f38",
+ "wires": [
+ [
+ "398f4135.fd470e"
+ ]
+ ]
}
] \ No newline at end of file
diff --git a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
index 656abb45..98bb939d 100644
--- a/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
+++ b/platform-logic/lcm/src/main/json/LCM_upgrade-software.json
@@ -1,813 +1,1083 @@
[
{
- "id": "d52a9fe6.4a061",
+ "id": "700a0160.004aa",
"type": "method",
"name": "upgrade-software",
"xml": "<method rpc='upgrade-software' mode='sync'>\n",
"comments": "",
"outputs": 1,
- "x": 544,
- "y": 52,
- "z": "d0eb0cbd.ae56e",
+ "x": 567,
+ "y": 95,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "8be92af7.e48088"
+ "bd9b1e7b.c0a1e"
]
]
},
{
- "id": "b090596a.f30168",
+ "id": "fa41fb4b.580858",
"type": "service-logic",
- "name": "LCM 1.4.5",
+ "name": "LCM ${project.version}",
"module": "LCM",
- "version": "1.4.5",
+ "version": "${project.version}",
"comments": "",
"xml": "<service-logic xmlns='http://www.onap.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='LCM' version='${project.version}'>",
"outputs": 1,
- "x": 331.99993896484375,
- "y": 53,
- "z": "d0eb0cbd.ae56e",
+ "x": 354.99993896484375,
+ "y": 96,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "d52a9fe6.4a061"
+ "700a0160.004aa"
]
]
},
{
- "id": "2f057096.50046",
+ "id": "e9118cc6.cb56",
"type": "execute",
"name": "execute AnsibleA.reqExec",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExec' >\n<parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n<parameter name='User' value='`$prop.ansible.user`'/>\n<parameter name='Password' value='`$prop.ansible.password`'/>\n<parameter name='LocalParameters' value='`$prop.ansible.lcm.localparameters`'/>\n<parameter name='EnvParameters' value='`$upgrade-software-input.payload`'/>\n<parameter name='NodeList' value=\"`$nodelist`\"/>\n<parameter name='Timeout' value='`$prop.ansible.timeout`'/>\n<parameter name='Version' value='`$prop.ansible.version`'/>\n<parameter name='Id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='PlaybookName' value='`$playbookname`'/>",
"comments": "",
"outputs": 1,
- "x": 399.00001525878906,
- "y": 660,
- "z": "d0eb0cbd.ae56e",
+ "x": 422.00001525878906,
+ "y": 703,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "f4a52a80.3301f8",
- "4c3969ef.3ad0e8",
- "519ffe08.0c9b3"
+ "a4805e06.99a58",
+ "c3cf6822.251028",
+ "8fa9e7e9.017688"
]
]
},
{
- "id": "5a208b8c.11bad4",
+ "id": "53951e82.372c1",
"type": "switchNode",
"name": "switch",
"xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
"comments": "",
"outputs": 1,
- "x": 798.9999389648438,
- "y": 768.0000305175781,
- "z": "d0eb0cbd.ae56e",
+ "x": 821.9999389648438,
+ "y": 811.0000305175781,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "e1869f29.6536c",
- "43f57bf1.626ff4",
- "c32ffe89.d048e"
+ "46287bfa.134154",
+ "b76b1945.f582c8",
+ "c42f2303.695eb"
]
]
},
{
- "id": "e1869f29.6536c",
+ "id": "46287bfa.134154",
"type": "other",
"name": "outcome 500",
"xml": "<outcome value='500'>\n",
"comments": "",
"outputs": 1,
- "x": 943.9999389648438,
- "y": 766.0000381469727,
- "z": "d0eb0cbd.ae56e",
+ "x": 966.9999389648438,
+ "y": 809.0000381469727,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "398fd4fb.d6173c"
+ "cd8ebd14.23c24"
]
]
},
{
- "id": "43f57bf1.626ff4",
+ "id": "b76b1945.f582c8",
"type": "other",
"name": "outcome 100",
"xml": "<outcome value='100'>\n",
"comments": "",
"outputs": 1,
- "x": 940.9999389648438,
- "y": 823.0000305175781,
- "z": "d0eb0cbd.ae56e",
+ "x": 963.9999389648438,
+ "y": 866.0000305175781,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "f88fcab6.006eb8"
+ "6450772a.c289b8"
]
]
},
{
- "id": "f88fcab6.006eb8",
+ "id": "6450772a.c289b8",
"type": "execute",
"name": "execute reqExecResult",
"xml": "<execute plugin='org.onap.ccsdk.sli.adaptors.ansible.AnsibleAdapter' method='reqExecResult' >\n <parameter name='AgentUrl' value='`$prop.ansible.agenturl`'/>\n\t<parameter name='User' value='`$prop.ansible.user`'/>\n\t<parameter name='Password' value='`$prop.ansible.password`'/>\n\t<parameter name='Id' value='`$org.onap.appc.adapter.ansible.Id`'/>\n\t<parameter name='PlaybookName' value='`$playbookname`'/>\n\t\n\n\n\n\n",
"comments": "",
"outputs": 1,
- "x": 1128.9999389648438,
- "y": 822.0000305175781,
- "z": "d0eb0cbd.ae56e",
+ "x": 1151.9999389648438,
+ "y": 865.0000305175781,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "73432b98.4b25e4",
- "bd487c1a.8c998"
+ "e139990d.0bffa8",
+ "d862bbfb.0fc3d8"
]
]
},
{
- "id": "4c3969ef.3ad0e8",
+ "id": "c3cf6822.251028",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 657.9999389648438,
- "y": 681.0000915527344,
- "z": "d0eb0cbd.ae56e",
+ "x": 680.9999389648438,
+ "y": 724.0000915527344,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "398fd4fb.d6173c"
+ "cd8ebd14.23c24"
]
]
},
{
- "id": "f4a52a80.3301f8",
+ "id": "a4805e06.99a58",
"type": "other",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 659.9999389648438,
- "y": 733.0000610351562,
- "z": "d0eb0cbd.ae56e",
+ "x": 682.9999389648438,
+ "y": 776.0000610351562,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "5a208b8c.11bad4"
+ "53951e82.372c1"
]
]
},
{
- "id": "73432b98.4b25e4",
+ "id": "e139990d.0bffa8",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1297.9999389648438,
- "y": 780.0000381469727,
- "z": "d0eb0cbd.ae56e",
+ "x": 1320.9998779296875,
+ "y": 841.0000610351562,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "398fd4fb.d6173c"
+ "c8609f9e.cb4cc"
]
]
},
{
- "id": "c32ffe89.d048e",
+ "id": "c42f2303.695eb",
"type": "other",
"name": "outcome 101",
"xml": "<outcome value='101'>\n",
"comments": "",
"outputs": 1,
- "x": 940.9999389648438,
- "y": 724.0000686645508,
- "z": "d0eb0cbd.ae56e",
+ "x": 963.9999389648438,
+ "y": 767.0000686645508,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "398fd4fb.d6173c"
+ "cd8ebd14.23c24"
]
]
},
{
- "id": "bd487c1a.8c998",
+ "id": "d862bbfb.0fc3d8",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1305.9998779296875,
- "y": 828.0001220703125,
- "z": "d0eb0cbd.ae56e",
+ "x": 1324.9998779296875,
+ "y": 895.0001220703125,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "adb9b1a6.61eb5"
+ "c8609f9e.cb4cc"
]
]
},
{
- "id": "2b291cab.721924",
- "type": "returnSuccess",
- "name": "return success",
- "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
- "comments": "",
- "x": 1599.9998779296875,
- "y": 885.0000610351562,
- "z": "d0eb0cbd.ae56e",
- "wires": []
- },
- {
- "id": "db787a9a.5729a8",
+ "id": "a498eeb0.e871c",
"type": "dgstart",
"name": "DGSTART",
"outputs": 1,
- "x": 147,
- "y": 52,
- "z": "d0eb0cbd.ae56e",
+ "x": 170,
+ "y": 95,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "b090596a.f30168"
+ "fa41fb4b.580858"
]
]
},
{
- "id": "8be92af7.e48088",
+ "id": "bd9b1e7b.c0a1e",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 144.91668701171875,
- "y": 144.08334350585938,
- "z": "d0eb0cbd.ae56e",
+ "x": 167.91668701171875,
+ "y": 187.08334350585938,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "2f057096.50046",
- "f86ff952.0492a8",
- "e1e7ef0d.bad94",
- "3f387094.3465e",
- "1f8f1867.c1cf08",
- "4e2df025.06262",
- "690e9c9d.3aca34",
- "3ebaf64f.5a6c4a"
+ "e9118cc6.cb56",
+ "8f2cdd2c.cf15b",
+ "881e51a9.bba9",
+ "3bae173d.769688",
+ "f24727d0.cfe3a8",
+ "a40512f5.69e4d",
+ "57b0407c.30e16",
+ "2f8a882.7fbf078"
]
]
},
{
- "id": "f86ff952.0492a8",
+ "id": "8f2cdd2c.cf15b",
"type": "execute",
"name": "execute Properties",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >\n <parameter name='fileName' value='%SDNC_CONFIG_DIR%/lcm-dg.properties' />\n <parameter name='contextPrefix' value='prop' />\n",
"comments": "",
"outputs": 1,
- "x": 443.0000305175781,
- "y": 177.08334350585938,
- "z": "d0eb0cbd.ae56e",
+ "x": 466.0000305175781,
+ "y": 220.08334350585938,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
},
{
- "id": "70a47606.d49438",
+ "id": "f33bb583.25a398",
"type": "execute",
"name": "execute DmaapMsg",
"xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
"comments": "",
"outputs": 1,
- "x": 1609.9998779296875,
- "y": 630.0834045410156,
- "z": "d0eb0cbd.ae56e",
+ "x": 1632.9998779296875,
+ "y": 673.0834045410156,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "34ac5379.9a844c"
+ "1ec548c6.857767"
]
]
},
{
- "id": "34ac5379.9a844c",
+ "id": "1ec548c6.857767",
"type": "failure",
"name": "failure",
"xml": "<outcome value='failure'>\n",
"comments": "",
"outputs": 1,
- "x": 1779.9998168945312,
- "y": 629.0834045410156,
- "z": "d0eb0cbd.ae56e",
+ "x": 1802.9998168945312,
+ "y": 672.0834045410156,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "fb390c18.77a19"
+ "f99d1384.2dae"
]
]
},
{
- "id": "398fd4fb.d6173c",
+ "id": "cd8ebd14.23c24",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1412.9998168945312,
- "y": 654.0834045410156,
- "z": "d0eb0cbd.ae56e",
+ "x": 1435.9998168945312,
+ "y": 697.0834045410156,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "70a47606.d49438",
- "d82deaf3.a98988",
- "df7a754d.479a48"
+ "f33bb583.25a398",
+ "bfff1f61.da463",
+ "b136bf71.fb6b9"
]
]
},
{
- "id": "add47742.421838",
- "type": "execute",
- "name": "execute DmaapMsg",
- "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
- "comments": "",
- "outputs": 1,
- "x": 1610.4998779296875,
- "y": 835.0833740234375,
- "z": "d0eb0cbd.ae56e",
- "wires": [
- [
- "5ad46d9d.c433d4"
- ]
- ]
- },
- {
- "id": "5ad46d9d.c433d4",
- "type": "failure",
- "name": "failure",
- "xml": "<outcome value='failure'>\n",
- "comments": "",
- "outputs": 1,
- "x": 1778.4998779296875,
- "y": 835.0833740234375,
- "z": "d0eb0cbd.ae56e",
- "wires": [
- [
- "a1c42905.fff878"
- ]
- ]
- },
- {
- "id": "fb390c18.77a19",
+ "id": "f99d1384.2dae",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
"comments": "",
"outputs": 1,
- "x": 1899.9998779296875,
- "y": 628.0833740234375,
- "z": "d0eb0cbd.ae56e",
+ "x": 1922.9998779296875,
+ "y": 671.0833740234375,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
},
{
- "id": "d82deaf3.a98988",
+ "id": "bfff1f61.da463",
"type": "returnFailure",
"name": "return failure",
"xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
"comments": "",
- "x": 1591.91650390625,
- "y": 681.0834045410156,
- "z": "d0eb0cbd.ae56e",
+ "x": 1614.91650390625,
+ "y": 724.0834045410156,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "a1c42905.fff878",
- "type": "record",
- "name": "record",
- "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
- "comments": "",
- "outputs": 1,
- "x": 1906.9166259765625,
- "y": 835.0833740234375,
- "z": "d0eb0cbd.ae56e",
- "wires": [
- []
- ]
- },
- {
- "id": "df7a754d.479a48",
+ "id": "b136bf71.fb6b9",
"type": "set",
"name": "set DmaapReq",
"xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
"comments": "",
- "x": 1596.9998779296875,
- "y": 577.0833740234375,
- "z": "d0eb0cbd.ae56e",
+ "x": 1619.9998779296875,
+ "y": 620.0833740234375,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "adb9b1a6.61eb5",
+ "id": "c8609f9e.cb4cc",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1433.9998779296875,
- "y": 829.0833740234375,
- "z": "d0eb0cbd.ae56e",
+ "x": 1453.9998779296875,
+ "y": 864.0833740234375,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "add47742.421838",
- "ff897b1a.9583f8",
- "2b291cab.721924"
+ "77de5f8d.0aa37",
+ "87eb757f.5a9998",
+ "d4c78c4a.10f57",
+ "9253558b.1de3f8",
+ "abc5eb21.233c78"
]
]
},
{
- "id": "ff897b1a.9583f8",
- "type": "set",
- "name": "set DmaapReq",
- "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
- "comments": "",
- "x": 1600.1666259765625,
- "y": 780.0833740234375,
- "z": "d0eb0cbd.ae56e",
- "wires": []
- },
- {
- "id": "519ffe08.0c9b3",
+ "id": "8fa9e7e9.017688",
"type": "not-found",
"name": "not-found",
"xml": "<outcome value='not-found'>\n",
"comments": "",
"outputs": 1,
- "x": 666.9999389648438,
- "y": 633.0000610351562,
- "z": "d0eb0cbd.ae56e",
+ "x": 689.9999389648438,
+ "y": 676.0000610351562,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "e32c4a6d.892558"
+ "8d1a07a6.9f8f38"
]
]
},
{
- "id": "8405f654.a242a8",
+ "id": "d1a59bdb.49c988",
"type": "set",
"name": "set Defaults",
"xml": "<set>\n<parameter name='org.onap.appc.adapter.ansible.result.code' value='401'/>\n<parameter name='org.onap.appc.adapter.ansible.message' value='Ansible Adapter was not found'/>\n",
"comments": "",
- "x": 957.9999389648438,
- "y": 592,
- "z": "d0eb0cbd.ae56e",
+ "x": 980.9999389648438,
+ "y": 635,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "e32c4a6d.892558",
+ "id": "8d1a07a6.9f8f38",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 803.9999389648438,
- "y": 627.0000610351562,
- "z": "d0eb0cbd.ae56e",
+ "x": 826.9999389648438,
+ "y": 670.0000610351562,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "8405f654.a242a8",
- "398fd4fb.d6173c"
+ "d1a59bdb.49c988",
+ "cd8ebd14.23c24"
]
]
},
{
- "id": "e1e7ef0d.bad94",
+ "id": "881e51a9.bba9",
"type": "set",
"name": "set default values",
- "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n",
+ "xml": "<set>\n<parameter name='status.code' value='200' />\n<parameter name='status.message' value='unexpected return from DG' />\n<parameter name='quote' value=\"'\" />\n<parameter name='outputPayloadField' value='.Output' />\n",
"comments": "",
- "x": 436,
- "y": 224,
- "z": "d0eb0cbd.ae56e",
+ "x": 459,
+ "y": 267,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "62ae5ec1.69479",
+ "id": "27e24246.a44b8e",
"type": "get-resource",
"name": "get aai.generic-vnf ",
"xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\" \n\tresource=\"generic-vnf\" \n\t\tkey=\"generic-vnf.vnf-id = $upgrade-software-input.action-identifiers.vnf-id\" \n\t\tlocal-only=\"false\" \n\t\tpfx='aai.generic-vnf'>",
"comments": "",
"outputs": 1,
- "x": 978,
- "y": 415,
- "z": "d0eb0cbd.ae56e",
+ "x": 999,
+ "y": 443,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "45f13d8e.2baab4"
+ "4d967fc5.86e13"
]
]
},
{
- "id": "45f13d8e.2baab4",
+ "id": "4d967fc5.86e13",
"type": "success",
"name": "success",
"xml": "<outcome value='success'>\n",
"comments": "",
"outputs": 1,
- "x": 1134.3907470703125,
- "y": 398.28399658203125,
- "z": "d0eb0cbd.ae56e",
+ "x": 1157.3907470703125,
+ "y": 441.28399658203125,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "374bb3b9.6cefec"
+ "363cf7ac.eea978"
]
]
},
{
- "id": "690e9c9d.3aca34",
+ "id": "57b0407c.30e16",
"type": "record",
"name": "record",
"xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='`$playbookname`'/>\n\t<parameter name=\"field2\" value='`$nodelist`'/>",
"comments": "",
"outputs": 1,
- "x": 364.9998779296875,
- "y": 588,
- "z": "d0eb0cbd.ae56e",
+ "x": 387.9998779296875,
+ "y": 631,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
},
{
- "id": "1f8f1867.c1cf08",
+ "id": "f24727d0.cfe3a8",
"type": "switchNode",
"name": "switch pnf-flag",
"xml": "<switch test='`$payloadJson.pnf-flag`'>\n",
"comments": "",
"outputs": 1,
- "x": 418,
- "y": 325,
- "z": "d0eb0cbd.ae56e",
+ "x": 441,
+ "y": 368,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "5b32bef7.b059e",
- "f5bcff23.7649a"
+ "ebcaa444.5c15f8",
+ "200181e1.aab39e"
]
]
},
{
- "id": "3f387094.3465e",
+ "id": "3bae173d.769688",
"type": "execute",
"name": "execute jsonStringToCtx",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='upgrade-software-input.payload' />\n\t<parameter name='outputPath' value='payloadJson' />\n\t<parameter name='isEscaped' value='true' />",
"comments": "",
"outputs": 1,
- "x": 450,
- "y": 271,
- "z": "d0eb0cbd.ae56e",
+ "x": 473,
+ "y": 314,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
},
{
- "id": "5b32bef7.b059e",
+ "id": "ebcaa444.5c15f8",
"type": "outcome",
"name": "true",
"xml": "<outcome value='true'>\n",
"comments": "",
"outputs": 1,
- "x": 615,
- "y": 304,
- "z": "d0eb0cbd.ae56e",
+ "x": 638,
+ "y": 347,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "a02f543f.407778"
+ "4f4ae7b6.577da8"
]
]
},
{
- "id": "f5bcff23.7649a",
+ "id": "200181e1.aab39e",
"type": "outcome",
"name": "other",
"xml": "<outcome value='Other'>\n",
"comments": "",
"outputs": 1,
- "x": 614.9999389648438,
- "y": 365,
- "z": "d0eb0cbd.ae56e",
+ "x": 637.9999389648438,
+ "y": 408,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "4ae3a7c9.907f18"
+ "b59848fc.f07918"
]
]
},
{
- "id": "4ae3a7c9.907f18",
+ "id": "b59848fc.f07918",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 762.9999389648438,
- "y": 364,
- "z": "d0eb0cbd.ae56e",
+ "x": 785.9999389648438,
+ "y": 407,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "62ae5ec1.69479",
- "fc28a02d.cc248"
+ "27e24246.a44b8e",
+ "91c96ed6.a5b05"
]
]
},
{
- "id": "a02f543f.407778",
+ "id": "4f4ae7b6.577da8",
"type": "set",
"name": "set AnsibleReq",
- "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n",
+ "xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`\"/>\n<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>\n<parameter name='outputPayloadField' value=\"`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`\"/>\n",
"comments": "",
- "x": 776,
- "y": 302,
- "z": "d0eb0cbd.ae56e",
+ "x": 799,
+ "y": 345,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "fc28a02d.cc248",
+ "id": "91c96ed6.a5b05",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $payloadJson.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 976,
- "y": 312,
- "z": "d0eb0cbd.ae56e",
+ "x": 1008,
+ "y": 387,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
},
{
- "id": "4e2df025.06262",
+ "id": "a40512f5.69e4d",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 415,
- "y": 456,
- "z": "d0eb0cbd.ae56e",
+ "x": 438,
+ "y": 499,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "6164fda7.628474"
+ "e6c437a6.29de58"
]
]
},
{
- "id": "6164fda7.628474",
+ "id": "e6c437a6.29de58",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 586,
- "y": 457,
- "z": "d0eb0cbd.ae56e",
+ "x": 609,
+ "y": 500,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "789294b0.3e8a8c"
+ "a4fde5cc.d4c598"
]
]
},
{
- "id": "789294b0.3e8a8c",
+ "id": "a4fde5cc.d4c598",
"type": "set",
"name": "set playbookname",
"xml": "<set>\n<parameter name='playbookname' value='`$prop.lcm.upgrade-software.playbookname`'/>",
"comments": "",
- "x": 776,
- "y": 456,
- "z": "d0eb0cbd.ae56e",
+ "x": 799,
+ "y": 499,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "3ebaf64f.5a6c4a",
+ "id": "2f8a882.7fbf078",
"type": "switchNode",
"name": "switch nodelist",
"xml": "<switch test='`$nodelist`'>\n",
"comments": "",
"outputs": 1,
- "x": 405,
- "y": 515,
- "z": "d0eb0cbd.ae56e",
+ "x": 428,
+ "y": 558,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "12193ca9.50e163",
- "8146ae4e.2b29b"
+ "fc8a62b5.226f9",
+ "174740d3.bb580f"
]
]
},
{
- "id": "12193ca9.50e163",
+ "id": "fc8a62b5.226f9",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 585,
- "y": 508,
- "z": "d0eb0cbd.ae56e",
+ "x": 608,
+ "y": 551,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "b589f932.9ec108"
+ "82a452fa.2b2b4"
]
]
},
{
- "id": "b589f932.9ec108",
+ "id": "82a452fa.2b2b4",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`$prop.ansible.nodelist`\"/>",
"comments": "",
- "x": 742,
- "y": 522,
- "z": "d0eb0cbd.ae56e",
+ "x": 765,
+ "y": 565,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "8146ae4e.2b29b",
+ "id": "174740d3.bb580f",
"type": "outcome",
"name": "empty",
"xml": "<outcome value=\"['']\">\n\n",
"comments": "",
"outputs": 1,
- "x": 584,
- "y": 552,
- "z": "d0eb0cbd.ae56e",
+ "x": 607,
+ "y": 595,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "b589f932.9ec108"
+ "82a452fa.2b2b4"
]
]
},
{
- "id": "94498b41.794368",
+ "id": "2651af68.3f9dc",
"type": "switchNode",
"name": "switch playbookname",
"xml": "<switch test='`$playbookname`'>\n",
"comments": "",
"outputs": 1,
- "x": 1460,
- "y": 387,
- "z": "d0eb0cbd.ae56e",
+ "x": 1483,
+ "y": 430,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "975c4b05.0f6d08"
+ "bf08f71c.7cf758"
]
]
},
{
- "id": "975c4b05.0f6d08",
+ "id": "bf08f71c.7cf758",
"type": "outcome",
"name": "null",
"xml": "<outcome value=''>\n",
"comments": "",
"outputs": 1,
- "x": 1638,
- "y": 387,
- "z": "d0eb0cbd.ae56e",
+ "x": 1661,
+ "y": 430,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "eee08f4b.ee327"
+ "61379210.f96dcc"
]
]
},
{
- "id": "7c4590ff.245c9",
+ "id": "5f26038d.9f08dc",
"type": "set",
"name": "set nodelist",
"xml": "<set>\n<parameter name='nodelist' value=\"`'[' + $quote + $aai.generic-vnf.ipv4-oam-address + $quote + ']'`\"/>\n",
"comments": "",
- "x": 1433,
- "y": 440,
- "z": "d0eb0cbd.ae56e",
+ "x": 1456,
+ "y": 483,
+ "z": "ec3deb45.e00818",
"wires": []
},
{
- "id": "374bb3b9.6cefec",
+ "id": "363cf7ac.eea978",
"type": "block",
"name": "block",
"xml": "<block>\n",
"atomic": "false",
"comments": "",
"outputs": 1,
- "x": 1263,
- "y": 397,
- "z": "d0eb0cbd.ae56e",
+ "x": 1286,
+ "y": 440,
+ "z": "ec3deb45.e00818",
"wires": [
[
- "94498b41.794368",
- "7c4590ff.245c9"
+ "2651af68.3f9dc",
+ "5f26038d.9f08dc"
]
]
},
{
- "id": "eee08f4b.ee327",
+ "id": "61379210.f96dcc",
"type": "execute",
"name": "set playbookname",
"xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='outputPath' value='playbookname' />\n\t<parameter name='source' value=\"`'prop.lcm.' + $aai.generic-vnf.nf-naming-code + '.upgrade-software.playbookname'`\" />\n\n",
"comments": "",
"outputs": 1,
- "x": 1810,
- "y": 385,
- "z": "d0eb0cbd.ae56e",
+ "x": 1833,
+ "y": 428,
+ "z": "ec3deb45.e00818",
"wires": [
[]
]
+ },
+ {
+ "id": "9253558b.1de3f8",
+ "type": "execute",
+ "name": "execute DmaapMsg",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >\n <parameter name='templateFileName' value=\"`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`\" />\n <parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />\n <parameter name='restapiUser' value='`$prop.lcm.dmaap.user`' />\n <parameter name='restapiPassword' value='`$prop.lcm.dmaap.password`' />\n <parameter name='format' value='json' />\n <parameter name='httpMethod' value='POST' />\n <parameter name='contentType' value='application/json' />\n <parameter name=\"responsePrefix\" value=\"lcm\" />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1648,
+ "y": 939,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "a452deae.c86e6"
+ ]
+ ]
+ },
+ {
+ "id": "a452deae.c86e6",
+ "type": "failure",
+ "name": "failure",
+ "xml": "<outcome value='failure'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1830,
+ "y": 939,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "fedb3391.b66c"
+ ]
+ ]
+ },
+ {
+ "id": "fedb3391.b66c",
+ "type": "record",
+ "name": "record",
+ "xml": "<record plugin=\"org.onap.ccsdk.sli.core.sli.recording.Slf4jRecorder\"> \n\t<parameter name=\"logger\" value=\"message-log\"/> \n\t<parameter name=\"field1\" value='Failed to Publish to DMaap'/>",
+ "comments": "",
+ "outputs": 1,
+ "x": 1960.416748046875,
+ "y": 939,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "4f44742c.4c245c",
+ "type": "set",
+ "name": "set DmaapReq",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n",
+ "comments": "",
+ "x": 1985.666748046875,
+ "y": 854,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "77de5f8d.0aa37",
+ "type": "execute",
+ "name": "execute jsonStringToCtx",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>\n\t<parameter name='source' value='org.onap.appc.adapter.ansible.results' />\n\t<parameter name='outputPath' value='resultsJson' />\n\t<parameter name='isEscaped' value='false' />\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1663.5001220703125,
+ "y": 784.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "87eb757f.5a9998",
+ "type": "execute",
+ "name": "execute getAttributeValue",
+ "xml": "<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>\n\t<parameter name='source' value=\"`'resultsJson' + $outputPayloadField`\" />\n\t<parameter name='outputPath' value='outputPayload' />",
+ "comments": "",
+ "outputs": 1,
+ "x": 1669.5001220703125,
+ "y": 827.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ []
+ ]
+ },
+ {
+ "id": "d4c78c4a.10f57",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1653.5001220703125,
+ "y": 874.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "52af5803.b461c8",
+ "f8c7b0fd.65877"
+ ]
+ ]
+ },
+ {
+ "id": "52af5803.b461c8",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1830.5001220703125,
+ "y": 853.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "4f44742c.4c245c"
+ ]
+ ]
+ },
+ {
+ "id": "f8c7b0fd.65877",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1829.5001220703125,
+ "y": 893.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "596dd9e6.b15a48"
+ ]
+ ]
+ },
+ {
+ "id": "596dd9e6.b15a48",
+ "type": "set",
+ "name": "set DmaapReq with payload",
+ "xml": "<set>\n<parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>\n<parameter name='lcm-dmaap.correlation-id' value=\"`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`\"/>\n<parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>\n<parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>\n<parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>\n<parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>\n<parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>\n<parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>\n<parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>\n<parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>\n<parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>\n<parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>\n<parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>\n<parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2027.5001220703125,
+ "y": 893.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "1310b766.620cb9",
+ "type": "returnSuccess",
+ "name": "return success",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>",
+ "comments": "",
+ "x": 2369.5001220703125,
+ "y": 971.9166259765625,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "94ccd9bd.ce5728",
+ "type": "outcome",
+ "name": "null",
+ "xml": "<outcome value=''>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1835.5003662109375,
+ "y": 993.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "acf117a7.e47ff8"
+ ]
+ ]
+ },
+ {
+ "id": "af6eae51.b597d",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1834.5003662109375,
+ "y": 1069.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "526dfc55.6eeaf4"
+ ]
+ ]
+ },
+ {
+ "id": "abc5eb21.233c78",
+ "type": "switchNode",
+ "name": "switch outputPayload",
+ "xml": "<switch test='`$outputPayload`'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 1652.5003662109375,
+ "y": 1029.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "94ccd9bd.ce5728",
+ "af6eae51.b597d"
+ ]
+ ]
+ },
+ {
+ "id": "d4fc7ba0.d97cd8",
+ "type": "returnSuccess",
+ "name": "return success with payload",
+ "xml": "<return status='success'>\n<parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2410.5003662109375,
+ "y": 1053.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "acf117a7.e47ff8",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2005.5003662109375,
+ "y": 993.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "7b6a7dcd.0bf034",
+ "964b16ae.6cb568"
+ ]
+ ]
+ },
+ {
+ "id": "526dfc55.6eeaf4",
+ "type": "switchNode",
+ "name": "switch result code",
+ "xml": "<switch test=\"`$org.onap.appc.adapter.ansible.result.code`\">\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2005.5003662109375,
+ "y": 1069.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "116f67f9.8b84e8",
+ "b7261460.4d2728"
+ ]
+ ]
+ },
+ {
+ "id": "270915b4.03f91a",
+ "type": "returnFailure",
+ "name": "return failure",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n",
+ "comments": "",
+ "x": 2363.5003662109375,
+ "y": 1009.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "ba208b9e.ce90f8",
+ "type": "returnFailure",
+ "name": "return failure with payload",
+ "xml": "<return status='failure'>\n<parameter name='status.code' value='401' />\n<parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />\n<parameter name='payload' value='`$outputPayload`'/>",
+ "comments": "",
+ "x": 2406.5003662109375,
+ "y": 1091.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": []
+ },
+ {
+ "id": "7b6a7dcd.0bf034",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2193.5003662109375,
+ "y": 971.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "1310b766.620cb9"
+ ]
+ ]
+ },
+ {
+ "id": "964b16ae.6cb568",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2174.5003662109375,
+ "y": 1009.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "270915b4.03f91a"
+ ]
+ ]
+ },
+ {
+ "id": "116f67f9.8b84e8",
+ "type": "other",
+ "name": "outcome 400",
+ "xml": "<outcome value='400'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2194.5003662109375,
+ "y": 1053.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "d4fc7ba0.d97cd8"
+ ]
+ ]
+ },
+ {
+ "id": "b7261460.4d2728",
+ "type": "outcome",
+ "name": "other",
+ "xml": "<outcome value='Other'>\n",
+ "comments": "",
+ "outputs": 1,
+ "x": 2176.5003662109375,
+ "y": 1091.9165649414062,
+ "z": "ec3deb45.e00818",
+ "wires": [
+ [
+ "ba208b9e.ce90f8"
+ ]
+ ]
}
-] \ No newline at end of file
+]
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
index 4a88aac4..b22f4715 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-post-check.xml
@@ -11,6 +11,7 @@
<parameter name='status.code' value='200' />
<parameter name='status.message' value='unexpected return from DG' />
<parameter name='quote' value="'" />
+ <parameter name='outputPayloadField' value='.Output' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
<parameter name='source' value='upgrade-post-check-input.payload' />
@@ -22,6 +23,7 @@
<set>
<parameter name='nodelist' value="`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`"/>
<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-post-check.playbookname`'/>
+ <parameter name='outputPayloadField' value="`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`"/>
</set>
</outcome>
<outcome value='Other'>
@@ -270,23 +272,56 @@
<parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -303,31 +338,96 @@
</record>
</outcome>
</execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
<outcome value='success'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-post-check-input.common-header.request-id + '-' + $upgrade-post-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-post-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-post-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-post-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-post-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-post-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-post-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-post-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-post-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-post-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -344,10 +444,42 @@
</record>
</outcome>
</execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
index 6f89bfcf..89033222 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-pre-check.xml
@@ -11,6 +11,7 @@
<parameter name='status.code' value='200' />
<parameter name='status.message' value='unexpected return from DG' />
<parameter name='quote' value="'" />
+ <parameter name='outputPayloadField' value='.Output' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
<parameter name='source' value='upgrade-pre-check-input.payload' />
@@ -22,6 +23,7 @@
<set>
<parameter name='nodelist' value="`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`"/>
<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-pre-check.playbookname`'/>
+ <parameter name='outputPayloadField' value="`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`"/>
</set>
</outcome>
<outcome value='Other'>
@@ -270,23 +272,56 @@
<parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -303,31 +338,96 @@
</record>
</outcome>
</execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
<outcome value='success'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-pre-check-input.common-header.request-id + '-' + $upgrade-pre-check-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-pre-check'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-pre-check-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-pre-check-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-pre-check-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-pre-check-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-pre-check-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-pre-check-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-pre-check-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-pre-check-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -344,10 +444,42 @@
</record>
</outcome>
</execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
</execute>
diff --git a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
index e4f818f7..af0ee715 100644
--- a/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
+++ b/platform-logic/lcm/src/main/xml/LCM_upgrade-software.xml
@@ -11,6 +11,7 @@
<parameter name='status.code' value='200' />
<parameter name='status.message' value='unexpected return from DG' />
<parameter name='quote' value="'" />
+ <parameter name='outputPayloadField' value='.Output' />
</set>
<execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
<parameter name='source' value='upgrade-software-input.payload' />
@@ -22,6 +23,7 @@
<set>
<parameter name='nodelist' value="`'[' + $quote + $payloadJson.ipaddress-v4-oam + $quote + ']'`"/>
<parameter name='playbookname' value='`$prop.lcm.pnf.upgrade-software.playbookname`'/>
+ <parameter name='outputPayloadField' value="`'.' + $payloadJson.ipaddress-v4-oam + '.Output'`"/>
</set>
</outcome>
<outcome value='Other'>
@@ -270,23 +272,56 @@
<parameter name='PlaybookName' value='`$playbookname`'/>
<outcome value='failure'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -303,31 +338,96 @@
</record>
</outcome>
</execute>
- <return status='failure'>
- <parameter name='status.code' value='401' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
<outcome value='success'>
<block>
- <set>
- <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
- <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
- <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
- <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
- <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
- <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
- <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
- <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
- <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
- <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
- <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
- <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
- <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
- <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </set>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx'>
+ <parameter name='source' value='org.onap.appc.adapter.ansible.results' />
+ <parameter name='outputPath' value='resultsJson' />
+ <parameter name='isEscaped' value='false' />
+ </execute>
+ <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='getAttributeValue'>
+ <parameter name='source' value="`'resultsJson' + $outputPayloadField`" />
+ <parameter name='outputPath' value='outputPayload' />
+ </execute>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </set>
+ </outcome>
+ <outcome value='Other'>
+ <set>
+ <parameter name='lcm-dmaap.version' value='`$prop.lcm.dmaap.version`'/>
+ <parameter name='lcm-dmaap.correlation-id' value="`$upgrade-software-input.common-header.request-id + '-' + $upgrade-software-input.common-header.sub-request-id`"/>
+ <parameter name='lcm-dmaap.partition' value='`$prop.lcm.dmaap.partition`'/>
+ <parameter name='lcm-dmaap.rpc-name' value='upgrade-software'/>
+ <parameter name='lcm-dmaap.type' value='`$prop.lcm.dmaap.type`'/>
+ <parameter name='lcm-dmaap.timestamp' value='`$upgrade-software-input.common-header.timestamp`'/>
+ <parameter name='lcm-dmaap.api-ver' value='`$upgrade-software-input.common-header.api-ver`'/>
+ <parameter name='lcm-dmaap.originator-id' value='`$upgrade-software-input.common-header.originator-id`'/>
+ <parameter name='lcm-dmaap.request-id' value='`$upgrade-software-input.common-header.request-id`'/>
+ <parameter name='lcm-dmaap.sub-request-id' value='`$upgrade-software-input.common-header.sub-request-id`'/>
+ <parameter name='lcm-dmaap.flags.mode' value='`$upgrade-software-input.common-header.flags.mode`'/>
+ <parameter name='lcm-dmaap.flags.force' value='`$upgrade-software-input.common-header.flags.force`'/>
+ <parameter name='lcm-dmaap.flags.ttl' value='`$upgrade-software-input.common-header.flags.ttl`'/>
+ <parameter name='lcm-dmaap.status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='lcm-dmaap.status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='lcm-dmaap.payload' value='`$outputPayload`'/>
+ </set>
+ </outcome>
+ </switch>
<execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
<parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.lcm.dmaap.publish.templatefile`" />
<parameter name='restapiUrl' value='`$prop.lcm.dmaap.url`' />
@@ -344,10 +444,42 @@
</record>
</outcome>
</execute>
- <return status='success'>
- <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
- <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
- </return>
+ <switch test='`$outputPayload`'>
+ <outcome value=''>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ <outcome value='Other'>
+ <switch test="`$org.onap.appc.adapter.ansible.result.code`">
+ <outcome value='400'>
+ <return status='success'>
+ <parameter name='status.code' value='`$org.onap.appc.adapter.ansible.result.code`' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`'/>
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ <outcome value='Other'>
+ <return status='failure'>
+ <parameter name='status.code' value='401' />
+ <parameter name='status.message' value='`$org.onap.appc.adapter.ansible.message`' />
+ <parameter name='payload' value='`$outputPayload`'/>
+ </return>
+ </outcome>
+ </switch>
+ </outcome>
+ </switch>
</block>
</outcome>
</execute>