@itentialopensource/adapter-nokia_nsp_network_management 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CALLS.md +726 -0
- package/CHANGELOG.md +8 -1
- package/adapter.js +1069 -0
- package/entities/NetworkInventoryRestconfAPI/action.json +277 -0
- package/entities/NetworkInventoryRestconfAPI/mockdatafiles/getRadio-default.json +3 -0
- package/entities/NetworkInventoryRestconfAPI/schema.json +31 -0
- package/package.json +1 -1
- package/previousVersion.zip +0 -0
- package/pronghorn.json +467 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/test/integration/adapterTestIntegration.js +325 -0
- package/test/unit/adapterTestUnit.js +377 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getNE",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/network-element?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "getSpecificNE",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "GET",
|
|
28
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"sendGetBody": false,
|
|
34
|
+
"requestDatatype": "JSON",
|
|
35
|
+
"responseDatatype": "JSON",
|
|
36
|
+
"headers": {},
|
|
37
|
+
"responseObjects": [
|
|
38
|
+
{
|
|
39
|
+
"type": "default",
|
|
40
|
+
"key": "",
|
|
41
|
+
"mockFile": ""
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "getShelf",
|
|
47
|
+
"protocol": "REST",
|
|
48
|
+
"method": "GET",
|
|
49
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/network-element/hardware-component/shelf?{query}",
|
|
50
|
+
"requestSchema": "schema.json",
|
|
51
|
+
"responseSchema": "schema.json",
|
|
52
|
+
"timeout": 0,
|
|
53
|
+
"sendEmpty": false,
|
|
54
|
+
"sendGetBody": false,
|
|
55
|
+
"requestDatatype": "JSON",
|
|
56
|
+
"responseDatatype": "JSON",
|
|
57
|
+
"headers": {},
|
|
58
|
+
"responseObjects": [
|
|
59
|
+
{
|
|
60
|
+
"type": "default",
|
|
61
|
+
"key": "",
|
|
62
|
+
"mockFile": ""
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "getSpecificShelf",
|
|
68
|
+
"protocol": "REST",
|
|
69
|
+
"method": "GET",
|
|
70
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/hardware-component/{pathv2}?{query}",
|
|
71
|
+
"requestSchema": "schema.json",
|
|
72
|
+
"responseSchema": "schema.json",
|
|
73
|
+
"timeout": 0,
|
|
74
|
+
"sendEmpty": false,
|
|
75
|
+
"sendGetBody": false,
|
|
76
|
+
"requestDatatype": "JSON",
|
|
77
|
+
"responseDatatype": "JSON",
|
|
78
|
+
"headers": {},
|
|
79
|
+
"responseObjects": [
|
|
80
|
+
{
|
|
81
|
+
"type": "default",
|
|
82
|
+
"key": "",
|
|
83
|
+
"mockFile": ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "getCard",
|
|
89
|
+
"protocol": "REST",
|
|
90
|
+
"method": "GET",
|
|
91
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/network-element/hardware-component/card?{query}",
|
|
92
|
+
"requestSchema": "schema.json",
|
|
93
|
+
"responseSchema": "schema.json",
|
|
94
|
+
"timeout": 0,
|
|
95
|
+
"sendEmpty": false,
|
|
96
|
+
"sendGetBody": false,
|
|
97
|
+
"requestDatatype": "JSON",
|
|
98
|
+
"responseDatatype": "JSON",
|
|
99
|
+
"headers": {},
|
|
100
|
+
"responseObjects": [
|
|
101
|
+
{
|
|
102
|
+
"type": "default",
|
|
103
|
+
"key": "",
|
|
104
|
+
"mockFile": ""
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "getSpecificNECards",
|
|
110
|
+
"protocol": "REST",
|
|
111
|
+
"method": "GET",
|
|
112
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/hardware-component/{pathv2}?{query}",
|
|
113
|
+
"requestSchema": "schema.json",
|
|
114
|
+
"responseSchema": "schema.json",
|
|
115
|
+
"timeout": 0,
|
|
116
|
+
"sendEmpty": false,
|
|
117
|
+
"sendGetBody": false,
|
|
118
|
+
"requestDatatype": "JSON",
|
|
119
|
+
"responseDatatype": "JSON",
|
|
120
|
+
"headers": {},
|
|
121
|
+
"responseObjects": [
|
|
122
|
+
{
|
|
123
|
+
"type": "default",
|
|
124
|
+
"key": "",
|
|
125
|
+
"mockFile": ""
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "getPort",
|
|
131
|
+
"protocol": "REST",
|
|
132
|
+
"method": "GET",
|
|
133
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/network-element/hardware-component/port?{query}",
|
|
134
|
+
"requestSchema": "schema.json",
|
|
135
|
+
"responseSchema": "schema.json",
|
|
136
|
+
"timeout": 0,
|
|
137
|
+
"sendEmpty": false,
|
|
138
|
+
"sendGetBody": false,
|
|
139
|
+
"requestDatatype": "JSON",
|
|
140
|
+
"responseDatatype": "JSON",
|
|
141
|
+
"headers": {},
|
|
142
|
+
"responseObjects": [
|
|
143
|
+
{
|
|
144
|
+
"type": "default",
|
|
145
|
+
"key": "",
|
|
146
|
+
"mockFile": ""
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "getPortFromSpecificNE",
|
|
152
|
+
"protocol": "REST",
|
|
153
|
+
"method": "GET",
|
|
154
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/hardware-component/{pathv2}?{query}",
|
|
155
|
+
"requestSchema": "schema.json",
|
|
156
|
+
"responseSchema": "schema.json",
|
|
157
|
+
"timeout": 0,
|
|
158
|
+
"sendEmpty": false,
|
|
159
|
+
"sendGetBody": false,
|
|
160
|
+
"requestDatatype": "JSON",
|
|
161
|
+
"responseDatatype": "JSON",
|
|
162
|
+
"headers": {},
|
|
163
|
+
"responseObjects": [
|
|
164
|
+
{
|
|
165
|
+
"type": "default",
|
|
166
|
+
"key": "",
|
|
167
|
+
"mockFile": ""
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "getPortFromSpecificNETransceiverDetails",
|
|
173
|
+
"protocol": "REST",
|
|
174
|
+
"method": "GET",
|
|
175
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/hardware-component/{pathv2}/transceiver-details?{query}",
|
|
176
|
+
"requestSchema": "schema.json",
|
|
177
|
+
"responseSchema": "schema.json",
|
|
178
|
+
"timeout": 0,
|
|
179
|
+
"sendEmpty": false,
|
|
180
|
+
"sendGetBody": false,
|
|
181
|
+
"requestDatatype": "JSON",
|
|
182
|
+
"responseDatatype": "JSON",
|
|
183
|
+
"headers": {},
|
|
184
|
+
"responseObjects": [
|
|
185
|
+
{
|
|
186
|
+
"type": "default",
|
|
187
|
+
"key": "",
|
|
188
|
+
"mockFile": ""
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "getLags",
|
|
194
|
+
"protocol": "REST",
|
|
195
|
+
"method": "GET",
|
|
196
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:/network/network-element/lag?{query}",
|
|
197
|
+
"requestSchema": "schema.json",
|
|
198
|
+
"responseSchema": "schema.json",
|
|
199
|
+
"timeout": 0,
|
|
200
|
+
"sendEmpty": false,
|
|
201
|
+
"sendGetBody": false,
|
|
202
|
+
"requestDatatype": "JSON",
|
|
203
|
+
"responseDatatype": "JSON",
|
|
204
|
+
"headers": {},
|
|
205
|
+
"responseObjects": [
|
|
206
|
+
{
|
|
207
|
+
"type": "default",
|
|
208
|
+
"key": "",
|
|
209
|
+
"mockFile": ""
|
|
210
|
+
}
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "getSpecificNELag",
|
|
215
|
+
"protocol": "REST",
|
|
216
|
+
"method": "GET",
|
|
217
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/lag?{query}",
|
|
218
|
+
"requestSchema": "schema.json",
|
|
219
|
+
"responseSchema": "schema.json",
|
|
220
|
+
"timeout": 0,
|
|
221
|
+
"sendEmpty": false,
|
|
222
|
+
"sendGetBody": false,
|
|
223
|
+
"requestDatatype": "JSON",
|
|
224
|
+
"responseDatatype": "JSON",
|
|
225
|
+
"headers": {},
|
|
226
|
+
"responseObjects": [
|
|
227
|
+
{
|
|
228
|
+
"type": "default",
|
|
229
|
+
"key": "",
|
|
230
|
+
"mockFile": ""
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "getSpecificNELagWithFields",
|
|
236
|
+
"protocol": "REST",
|
|
237
|
+
"method": "GET",
|
|
238
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:network/{pathv1}/{pathv2}?{query}",
|
|
239
|
+
"requestSchema": "schema.json",
|
|
240
|
+
"responseSchema": "schema.json",
|
|
241
|
+
"timeout": 0,
|
|
242
|
+
"sendEmpty": false,
|
|
243
|
+
"sendGetBody": false,
|
|
244
|
+
"requestDatatype": "JSON",
|
|
245
|
+
"responseDatatype": "JSON",
|
|
246
|
+
"headers": {},
|
|
247
|
+
"responseObjects": [
|
|
248
|
+
{
|
|
249
|
+
"type": "default",
|
|
250
|
+
"key": "",
|
|
251
|
+
"mockFile": ""
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "getRadio",
|
|
257
|
+
"protocol": "REST",
|
|
258
|
+
"method": "GET",
|
|
259
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-equipment:/network/network-element/hardware-component/radio?{query}",
|
|
260
|
+
"requestSchema": "schema.json",
|
|
261
|
+
"responseSchema": "schema.json",
|
|
262
|
+
"timeout": 0,
|
|
263
|
+
"sendEmpty": false,
|
|
264
|
+
"sendGetBody": false,
|
|
265
|
+
"requestDatatype": "JSON",
|
|
266
|
+
"responseDatatype": "JSON",
|
|
267
|
+
"headers": {},
|
|
268
|
+
"responseObjects": [
|
|
269
|
+
{
|
|
270
|
+
"type": "default",
|
|
271
|
+
"key": "",
|
|
272
|
+
"mockFile": "mockdatafiles/getRadio-default.json"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "getNE",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getNE",
|
|
14
|
+
"getSpecificNE",
|
|
15
|
+
"getShelf",
|
|
16
|
+
"getSpecificShelf",
|
|
17
|
+
"getCard",
|
|
18
|
+
"getSpecificNECards",
|
|
19
|
+
"getPort",
|
|
20
|
+
"getPortFromSpecificNE",
|
|
21
|
+
"getPortFromSpecificNETransceiverDetails",
|
|
22
|
+
"getLags",
|
|
23
|
+
"getSpecificNELag",
|
|
24
|
+
"getSpecificNELagWithFields",
|
|
25
|
+
"getRadio"
|
|
26
|
+
],
|
|
27
|
+
"external_name": "ph_request_type"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"definitions": {}
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-nokia_nsp_network_management",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "This adapter integrates with system described as: NSP Network Infrastructure Management",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "nokia_nsp_network_management",
|
|
Binary file
|