summaryrefslogtreecommitdiffstats
path: root/platform-logic
diff options
context:
space:
mode:
authorroot <ha076r@att.com>2017-06-16 11:55:40 -0400
committerPatrick Brady <pb071s@att.com>2017-06-19 18:43:16 +0000
commit2543e4903bcf7b59097b210d836a52d4245cbd58 (patch)
treed216cee331caeef58da4535a4a0e793d9ecf2374 /platform-logic
parent68d73ae78d65b3ba82ddcd48be00b18c27c6647d (diff)
[feature/APPC-6] Adding DG assoc w Ansible Feature
Change-Id: I0d24b0ff35954c585f23d17b74b777991eb27634 Signed-off-by: root <ha076r@att.com>
Diffstat (limited to 'platform-logic')
-rw-r--r--platform-logic/appc/src/main/resources/graph.versions1
-rw-r--r--platform-logic/appc/src/main/xml/APPC_method_ansible_adapter_1.0_2.0.1.xml55
2 files changed, 56 insertions, 0 deletions
diff --git a/platform-logic/appc/src/main/resources/graph.versions b/platform-logic/appc/src/main/resources/graph.versions
index ae6e958..4ecb9ac 100644
--- a/platform-logic/appc/src/main/resources/graph.versions
+++ b/platform-logic/appc/src/main/resources/graph.versions
@@ -1 +1,2 @@
APPC topology-operation-all 2.0.0 sync
+APPC ansible-adapter-1.0 2.0.1 sync
diff --git a/platform-logic/appc/src/main/xml/APPC_method_ansible_adapter_1.0_2.0.1.xml b/platform-logic/appc/src/main/xml/APPC_method_ansible_adapter_1.0_2.0.1.xml
new file mode 100644
index 0000000..551f633
--- /dev/null
+++ b/platform-logic/appc/src/main/xml/APPC_method_ansible_adapter_1.0_2.0.1.xml
@@ -0,0 +1,55 @@
+<service-logic xmlns='http://www.openecomp.org/sdnc/svclogic' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.openecomp.org/sdnc/svclogic ./svclogic.xsd' module='APPC' version='2.0.1'><method rpc='ansible-adapter-1.0' mode='sync'>
+<execute plugin='org.openecomp.appc.adapter.ansible.AnsibleAdapter' method='reqExec' >
+<parameter name='AgentUrl' value='`$AgentUrl`'/>
+ <parameter name='User' value='`$User`'/>
+ <parameter name='Password' value='`$Password`'/>
+ <parameter name='LocalParameters' value='`$LocalParameters`'/>
+ <parameter name='EnvParameters' value='`$EnvParameters`'/>
+ <parameter name='FileParameters' value='`$FileParameters`'/>
+ <parameter name='NodeList' value='`$NodeList`'/>
+ <parameter name='Timeout' value='`$Timeout`'/>
+ <parameter name='Version' value='`$Version`'/>
+ <parameter name='PlaybookName' value='`$PlaybookName`'/>
+ <parameter name='Action' value='`$Action`'/>
+<outcome value='failure'>
+<return status='failure'>
+<parameter name='output.status.code' value='200' />
+<parameter name='output.status.message' value='`$org.openecomp.appc.adapter.ansible.message`' />
+</return></outcome>
+<outcome value='Other'>
+<switch test="`$org.openecomp.appc.adapter.ansible.result.code`">
+<outcome value='500'>
+<return status='failure'>
+<parameter name='output.status.code' value='200' />
+<parameter name='output.status.message' value='`$org.openecomp.appc.adapter.ansible.message`' />
+<parameter name='output.status.results' value='`$org.openecomp.appc.adapter.ansible.results`' />
+</return></outcome>
+<outcome value='100'>
+<execute plugin='org.openecomp.appc.adapter.ansible.AnsibleAdapter' method='reqExecResult' >
+ <parameter name='message' value='`$org.openecomp.appc.adapter.ansible.message`'/>
+ <parameter name='code' value='`$org.openecomp.appc.adapter.ansible.result.code`'/>
+ <parameter name='AgentUrl' value='`$AgentUrl`'/>
+ <parameter name='User' value='`$User`'/>
+ <parameter name='Password' value='`$Password`'/>
+ <parameter name='Id' value='`$org.openecomp.appc.adapter.ansible.Id`'/>
+<outcome value='failure'>
+<return status='failure'>
+<parameter name='output.status.code' value='200' />
+<parameter name='output.status.message' value='`$org.openecomp.appc.adapter.ansible.message`' />
+<parameter name='output.status.results' value='`$org.openecomp.appc.adapter.ansible.results`' />
+</return>
+</outcome>
+<outcome value='success'>
+<set>
+<parameter name='output.status.code' value='`$org.openecomp.appc.adapter.ansible.result.code`' />
+<parameter name='output.status.message' value='`$org.openecomp.appc.adapter.ansible.message`' />
+<parameter name='output.status.results' value='`$org.openecomp.appc.adapter.ansible.results`' />
+</set>
+</outcome>
+</execute>
+</outcome>
+</switch>
+</outcome>
+</execute>
+</method>
+</service-logic>