summaryrefslogtreecommitdiffstats
path: root/platform-logic/ran-slice-api/src/main/xml/ran-slice-api_terminateRANSliceInstance.xml
blob: d2a4e00a253faff758e6dd746024439784160c96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<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='ran-slice-api' version='${project.version}'>
    <method rpc='terminateRANSliceInstance' mode='sync'>
        <block atomic='true'>
            <execute plugin='org.onap.ccsdk.sli.plugins.prop.PropertiesNode' method='readProperties' >
                <parameter name='fileName' value='/opt/onap/ccsdk/data/properties/ran-slice-api-dg.properties' />
                <parameter name='contextPrefix' value='prop' />
            </execute>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="Properties read .. controller details "/>
                <parameter name="field2" value="`$prop.controller.user`"/>
                <parameter name="field3" value="`$prop.controller.pwd`"/>
                <parameter name="field4" value="`$prop.controller.url`"/>
                <parameter name="field5" value="ransim-mounted (true/false): "/>
                <parameter name="field6" value="`$prop.ransim-mounted`"/>
                <parameter name="field7" value="config DB deployed (true/false): "/>
                <parameter name="field8" value="`$prop.configdb-deployed`"/>
            </record>
            <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
                <parameter name="level" value="info" />
                <parameter name="field1" value="value of configdb deployed"/>
                <parameter name="field2" value='`$prop.configdb-deployed`'/>
            </record>
            <switch test='`$prop.configdb-deployed`'>
                <outcome value='true'>
                    <block atomic='true'>
                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                            <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
                            <parameter name="level" value="info" />
                            <parameter name="field1" value="Calling terminateranslice-Configdb "/>
                        </record>
                        <call module='ran-slice-api' rpc='terminateRANSliceInstance-configDB' mode='sync' ></call>
                    </block>
                </outcome>
                <outcome value='false'>
                    <block atomic='true'>
                        <record plugin="org.onap.ccsdk.sli.core.sli.recording.FileRecorder">
                            <parameter name="file" value="/opt/opendaylight/current/data/log/instantiateRANSlice.log" />
                            <parameter name="level" value="info" />
                            <parameter name="field1" value="Calling terminateranslice-CPS "/>
                        </record>
                        <call module='ran-slice-api' rpc='terminateRANSliceInstance-cps' mode='sync' ></call>
                    </block>
                </outcome>
            </switch>
        </block>
    </method>
</service-logic>