aboutsummaryrefslogtreecommitdiffstats
path: root/platform-logic/optical-service/src/main/json/optical-service_success-aai-update-tapi.json
blob: 497a75c875f638bfad69e7b3b57438cafc5934d1 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[
    {
        "id": "257d2596.c5ecca",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic=\"true\">\n",
        "atomic": "false",
        "comments": "",
        "outputs": 1,
        "x": 571,
        "y": 662,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "5432b538.633ffc",
                "7695aa94.c622d4",
                "ebe3ff74.b36dd"
            ]
        ]
    },
    {
        "id": "1cc69ab0.52e865",
        "type": "dgstart",
        "name": "DGSTART",
        "outputs": 1,
        "x": 101.5,
        "y": 597,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "d088abd2.9587b8"
            ]
        ]
    },
    {
        "id": "d088abd2.9587b8",
        "type": "service-logic",
        "name": "optical-service ${project.version}",
        "module": "optical-service",
        "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='optical-service' version='${project.version}'>",
        "outputs": 1,
        "x": 249.5,
        "y": 654,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "ddbd4624.086548"
            ]
        ]
    },
    {
        "id": "ddbd4624.086548",
        "type": "method",
        "name": "method success-aai-update-tapi",
        "xml": "<method rpc='success-aai-update-tapi' mode='sync'>\n",
        "comments": "",
        "outputs": 1,
        "x": 439.5,
        "y": 589,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "257d2596.c5ecca"
            ]
        ]
    },
    {
        "id": "5432b538.633ffc",
        "type": "save",
        "name": "save",
        "xml": "<save plugin='org.onap.ccsdk.sli.adaptors.aai.AAIService' resource='service-instance:relationship-list'  \n     key='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id' force=\"true\" pfx=\"tmp.AnAI-data\">\n<parameter name=\"relationship-list.relationship[0].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[0].related-link\" value=\"`'/network/pnfs/pnf/' + $aend-node-uuid + '/p-interfaces/p-interface/' + $aend-nep `\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[0].relationship-data[0].relationship-value\" value=\"`$aend-node-uuid`\" /> \n<parameter name=\"relationship-list.relationship[1].related-to\" value=\"p-interface\" />\n<parameter name=\"relationship-list.relationship[1].related-link\" value=\"`'/network/pnfs/pnf/' + $zend-node-uuid + '/p-interfaces/p-interface/' + $zend-nep `\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-key\" value=\"pnf.pnf-name\" />\n<parameter name=\"relationship-list.relationship[1].relationship-data[0].relationship-value\" value=\"`$zend-node-uuid`\" />\n",
        "comments": "",
        "outputs": 1,
        "x": 729,
        "y": 607,
        "z": "2ef02d36.ca2f92",
        "wires": [
            []
        ]
    },
    {
        "id": "7695aa94.c622d4",
        "type": "get-resource",
        "name": "Get service from AAI",
        "xml": "<get-resource plugin=\"org.onap.ccsdk.sli.adaptors.aai.AAIService\"\nresource=\"service-instance\"\nkey='customer.global-customer-id = $optical-service-create-input.global-customer-id AND\n     service-subscription.service-type = $optical-service-create-input.service-type AND\n     service-instance.service-instance-id = $optical-service-create-input.service-id'  \npfx='aai.service'      local-only='false'>\n\n",
        "comments": "",
        "outputs": 1,
        "x": 788,
        "y": 661,
        "z": "2ef02d36.ca2f92",
        "wires": [
            []
        ]
    },
    {
        "id": "ebe3ff74.b36dd",
        "type": "for",
        "name": "for",
        "xml": "<for index='idy' start='0' end='`$aai.service.relationship-list.relationship_length`' >\n",
        "comments": "",
        "outputs": 1,
        "x": 700,
        "y": 733,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "50909009.4a074"
            ]
        ]
    },
    {
        "id": "50909009.4a074",
        "type": "block",
        "name": "block : atomic",
        "xml": "<block atomic='true'>",
        "atomic": "true",
        "comments": "",
        "outputs": 1,
        "x": 847,
        "y": 733,
        "z": "2ef02d36.ca2f92",
        "wires": [
            [
                "65d0b7bd.e13a18",
                "9f8f4fb.cc3cbb"
            ]
        ]
    },
    {
        "id": "65d0b7bd.e13a18",
        "type": "set",
        "name": "set",
        "xml": "<set>\n<parameter name='pnf-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[0].relationship-value`' />\n<parameter name='pinterface-name' value='`$aai.service.relationship-list.relationship[$idx].relationship-data[1].relationship-value`' />\n\n",
        "comments": "",
        "x": 991,
        "y": 637,
        "z": "2ef02d36.ca2f92",
        "wires": []
    },
    {
        "id": "9f8f4fb.cc3cbb",
        "type": "call",
        "name": "call call-bandwidth-update-pinterface",
        "xml": "<call module='optical-service' rpc='call-bandwidth-update-pinterface' mode='sync' >\n",
        "comments": "",
        "outputs": 1,
        "x": 1127,
        "y": 732,
        "z": "2ef02d36.ca2f92",
        "wires": [
            []
        ]
    }
]