Ganesh Chandrasekaran | f8ebec6 | 2018-07-18 15:27:52 +0900 | [diff] [blame^] | 1 | <service-logic xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
|
| 2 | xmlns='http://www.onap.org/sdnc/svclogic'
|
| 3 | xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd'
|
| 4 | module='APPC' version='2.0.1'>
|
| 5 | <method rpc='saltstack-adapter-1.0' mode='sync'>
|
| 6 | <execute plugin='org.openecomp.appc.adapter.saltstack.SaltstackAdapter'
|
| 7 | method='reqExecCommand'>
|
| 8 | <parameter name='HostName' value='`$AgentUrl`'/>
|
| 9 | <parameter name='Port' value='`$Port`'/>
|
| 10 | <parameter name='User' value='`$User`'/>
|
| 11 | <parameter name='Password' value='`$Password`'/>
|
| 12 | <parameter name='Id' value='test2'/>
|
| 13 | <parameter name='SlsName' value='test-file.sls'/>
|
| 14 | <parameter name='NodeList' value='`$NodeList`'/>
|
| 15 | <parameter name='Timeout' value='`$Timeout`'/>
|
| 16 | <parameter name='FileParameters' value='`$FileParameters`'/>
|
| 17 | <parameter name='EnvParameters' value='`$EnvParameters`'/>
|
| 18 | <outcome value='failure'>
|
| 19 | <return status='failure'>
|
| 20 | <parameter name='error-code' value='200'/>
|
| 21 | <parameter name='error-message'
|
| 22 | value='`$org.openecomp.appc.adapter.saltstack.message`'/>
|
| 23 | <parameter name='output.status.results'
|
| 24 | value='`$org.openecomp.appc.adapter.saltstack.results`'/>
|
| 25 | </return>
|
| 26 | </outcome>
|
| 27 | <outcome value='Other'>
|
| 28 | <switch test="`$org.onap.appc.adapter.saltstack.result.code`">
|
| 29 | <outcome value='200'>
|
| 30 | <return status='success'>
|
| 31 | <parameter name='output.status.code'
|
| 32 | value='`$org.openecomp.appc.adapter.saltstack.result.code`'/>
|
| 33 | <parameter name='output.status.message'
|
| 34 | value='`$org.openecomp.appc.adapter.saltstack.message`'/>
|
| 35 | <parameter name='output.status.results'
|
| 36 | value='`$org.openecomp.appc.adapter.saltstack.results`'/>
|
| 37 | </return>
|
| 38 | </outcome>
|
| 39 | <outcome value='Other'>
|
| 40 | <return status='failure'>
|
| 41 | <parameter name='error-code' value='200'/>
|
| 42 | <parameter name='error-message'
|
| 43 | value='`$org.openecomp.appc.adapter.saltstack.message`'/>
|
| 44 | <parameter name='output.status.results'
|
| 45 | value='`$org.openecomp.appc.adapter.saltstack.results`'/>
|
| 46 | </return>
|
| 47 | </outcome>
|
| 48 | </switch>
|
| 49 | </outcome>
|
| 50 | </execute>
|
| 51 | </method>
|
| 52 | </service-logic> |