@itentialopensource/adapter-nokia_nsp_network 0.1.1

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.
Files changed (100) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +170 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +3443 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/CardSlots/action.json +46 -0
  33. package/entities/CardSlots/mockdatafiles/getCardSlotsUsingGET-default.json +256 -0
  34. package/entities/CardSlots/schema.json +20 -0
  35. package/entities/Cards/action.json +46 -0
  36. package/entities/Cards/mockdatafiles/getCardsUsingGET-default.json +103 -0
  37. package/entities/Cards/schema.json +20 -0
  38. package/entities/Lags/action.json +46 -0
  39. package/entities/Lags/mockdatafiles/getLAGsUsingGET-default.json +1054 -0
  40. package/entities/Lags/schema.json +20 -0
  41. package/entities/NetworkElements/action.json +298 -0
  42. package/entities/NetworkElements/mockdatafiles/getCardPortsUsingGET-default.json +235 -0
  43. package/entities/NetworkElements/mockdatafiles/getLagMembersUsingGET-default.json +60 -0
  44. package/entities/NetworkElements/mockdatafiles/getNELAGsUsingGET-default.json +1226 -0
  45. package/entities/NetworkElements/mockdatafiles/getNERadioEquipmentsUsingGET-default.json +338 -0
  46. package/entities/NetworkElements/mockdatafiles/getNEShelvesUsingGET-default.json +86 -0
  47. package/entities/NetworkElements/mockdatafiles/getNEsUsingGET-default.json +166 -0
  48. package/entities/NetworkElements/mockdatafiles/getRadioEquipmentCardPortsUsingGET-default.json +410 -0
  49. package/entities/NetworkElements/mockdatafiles/getRadioEquipmentLagMembersUsingGET-default.json +19 -0
  50. package/entities/NetworkElements/mockdatafiles/getRadioEquipmentLagsUsingGET-default.json +312 -0
  51. package/entities/NetworkElements/mockdatafiles/getRadioEquipmentShelfCardsUsingGET-default.json +106 -0
  52. package/entities/NetworkElements/mockdatafiles/getRadioEquipmentShelvesUsingGET-default.json +66 -0
  53. package/entities/NetworkElements/mockdatafiles/getShelfCardsUsingGET-default.json +218 -0
  54. package/entities/NetworkElements/mockdatafiles/getShelfPortsUsingGET-default.json +342 -0
  55. package/entities/NetworkElements/schema.json +32 -0
  56. package/entities/PhysicalLinks/action.json +86 -0
  57. package/entities/PhysicalLinks/mockdatafiles/getPhysicalLinksUsingGET-default.json +283 -0
  58. package/entities/PhysicalLinks/schema.json +22 -0
  59. package/entities/Ports/action.json +46 -0
  60. package/entities/Ports/mockdatafiles/getPortsUsingGET-default.json +440 -0
  61. package/entities/Ports/schema.json +20 -0
  62. package/entities/RadioEquipment/action.json +46 -0
  63. package/entities/RadioEquipment/mockdatafiles/getRadioEquipmentsUsingGET-default.json +86 -0
  64. package/entities/RadioEquipment/schema.json +20 -0
  65. package/entities/Shelves/action.json +46 -0
  66. package/entities/Shelves/mockdatafiles/getShelvesUsingGET-default.json +90 -0
  67. package/entities/Shelves/schema.json +20 -0
  68. package/error.json +190 -0
  69. package/package.json +86 -0
  70. package/pronghorn.json +8731 -0
  71. package/propertiesDecorators.json +14 -0
  72. package/propertiesSchema.json +1248 -0
  73. package/refs?service=git-upload-pack +0 -0
  74. package/report/creationReport.json +365 -0
  75. package/report/networkSupervision-22.9-v1.json-Swagger20.json +5789 -0
  76. package/sampleProperties.json +195 -0
  77. package/test/integration/adapterTestBasicGet.js +83 -0
  78. package/test/integration/adapterTestConnectivity.js +93 -0
  79. package/test/integration/adapterTestIntegration.js +1143 -0
  80. package/test/unit/adapterBaseTestUnit.js +949 -0
  81. package/test/unit/adapterTestUnit.js +2283 -0
  82. package/utils/adapterInfo.js +206 -0
  83. package/utils/addAuth.js +94 -0
  84. package/utils/artifactize.js +146 -0
  85. package/utils/basicGet.js +50 -0
  86. package/utils/checkMigrate.js +63 -0
  87. package/utils/entitiesToDB.js +178 -0
  88. package/utils/findPath.js +74 -0
  89. package/utils/methodDocumentor.js +225 -0
  90. package/utils/modify.js +154 -0
  91. package/utils/packModificationScript.js +35 -0
  92. package/utils/patches2bundledDeps.js +90 -0
  93. package/utils/pre-commit.sh +32 -0
  94. package/utils/removeHooks.js +20 -0
  95. package/utils/setup.js +33 -0
  96. package/utils/tbScript.js +246 -0
  97. package/utils/tbUtils.js +490 -0
  98. package/utils/testRunner.js +298 -0
  99. package/utils/troubleshootingAdapter.js +195 -0
  100. package/workflows/README.md +3 -0
@@ -0,0 +1,410 @@
1
+ [
2
+ {
3
+ "links": [
4
+ {
5
+ "href": "string",
6
+ "rel": "string",
7
+ "templated": false
8
+ },
9
+ {
10
+ "href": "string",
11
+ "rel": "string",
12
+ "templated": false
13
+ },
14
+ {
15
+ "href": "string",
16
+ "rel": "string",
17
+ "templated": false
18
+ },
19
+ {
20
+ "href": "string",
21
+ "rel": "string",
22
+ "templated": true
23
+ }
24
+ ],
25
+ "fdn": "string",
26
+ "sourceType": null,
27
+ "sourceSystem": "string",
28
+ "sources": [
29
+ "string",
30
+ "string",
31
+ "string"
32
+ ],
33
+ "name": "string",
34
+ "neName": "string",
35
+ "neId": "string",
36
+ "description": "string",
37
+ "positionId": 10,
38
+ "position": "string",
39
+ "adminState": null,
40
+ "operState": null,
41
+ "standbyState": null,
42
+ "availabilityStates": [
43
+ "inTest",
44
+ "dependency",
45
+ "offLine",
46
+ "offDuty",
47
+ "dependency",
48
+ "degraded",
49
+ "failed"
50
+ ],
51
+ "stateReasons": [
52
+ "string"
53
+ ],
54
+ "objectDetails": {},
55
+ "manufacturer": "string",
56
+ "serialNumber": "string",
57
+ "partNumber": "string",
58
+ "manufacturerAssemblyNumber": "string",
59
+ "manufactureDate": "string",
60
+ "manufacturingDeviations": "string",
61
+ "macAddress": "string",
62
+ "hwMacAddress": "string",
63
+ "portDetails": {
64
+ "fdn": "fdn:model:equipment:PortDetails:2209",
65
+ "sourceType": null,
66
+ "sourceSystem": "fdn:realm:sam",
67
+ "sources": [
68
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
69
+ ],
70
+ "objectDetails": {},
71
+ "portIndex": 67141632,
72
+ "portType": null,
73
+ "rate": "ethernet100",
74
+ "actualRateUnits": null,
75
+ "actualRate": 100000,
76
+ "portMode": null,
77
+ "encapType": null,
78
+ "mtuValue": 1578
79
+ },
80
+ "lagDetails": {
81
+ "encapType": "string",
82
+ "fdn": "string",
83
+ "lagId": "string",
84
+ "objectDetails": {},
85
+ "portFdn": "string",
86
+ "portName": "string",
87
+ "priority": 8,
88
+ "sourceSystem": "string",
89
+ "sourceType": "string",
90
+ "sources": [
91
+ "string",
92
+ "string",
93
+ "string",
94
+ "string"
95
+ ],
96
+ "standbyState": "string"
97
+ }
98
+ },
99
+ {
100
+ "links": [
101
+ {
102
+ "href": "string",
103
+ "rel": "string",
104
+ "templated": true
105
+ }
106
+ ],
107
+ "fdn": "string",
108
+ "sourceType": null,
109
+ "sourceSystem": "string",
110
+ "sources": [
111
+ "string",
112
+ "string",
113
+ "string",
114
+ "string"
115
+ ],
116
+ "name": "string",
117
+ "neName": "string",
118
+ "neId": "string",
119
+ "description": "string",
120
+ "positionId": 4,
121
+ "position": "string",
122
+ "adminState": null,
123
+ "operState": null,
124
+ "standbyState": null,
125
+ "availabilityStates": [
126
+ "offDuty",
127
+ "unknown",
128
+ "offLine"
129
+ ],
130
+ "stateReasons": [
131
+ "string",
132
+ "string"
133
+ ],
134
+ "objectDetails": {},
135
+ "manufacturer": "string",
136
+ "serialNumber": "string",
137
+ "partNumber": "string",
138
+ "manufacturerAssemblyNumber": "string",
139
+ "manufactureDate": "string",
140
+ "manufacturingDeviations": "string",
141
+ "macAddress": "string",
142
+ "hwMacAddress": "string",
143
+ "portDetails": {
144
+ "fdn": "fdn:model:equipment:PortDetails:2209",
145
+ "sourceType": null,
146
+ "sourceSystem": "fdn:realm:sam",
147
+ "sources": [
148
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
149
+ ],
150
+ "objectDetails": {},
151
+ "portIndex": 67141632,
152
+ "portType": null,
153
+ "rate": "ethernet100",
154
+ "actualRateUnits": null,
155
+ "actualRate": 100000,
156
+ "portMode": null,
157
+ "encapType": null,
158
+ "mtuValue": 1578
159
+ },
160
+ "lagDetails": {
161
+ "encapType": "string",
162
+ "fdn": "string",
163
+ "lagId": "string",
164
+ "objectDetails": {},
165
+ "portFdn": "string",
166
+ "portName": "string",
167
+ "priority": 6,
168
+ "sourceSystem": "string",
169
+ "sourceType": "string",
170
+ "sources": [
171
+ "string",
172
+ "string",
173
+ "string",
174
+ "string",
175
+ "string",
176
+ "string",
177
+ "string",
178
+ "string"
179
+ ],
180
+ "standbyState": "string"
181
+ }
182
+ },
183
+ {
184
+ "links": [
185
+ {
186
+ "href": "string",
187
+ "rel": "string",
188
+ "templated": true
189
+ },
190
+ {
191
+ "href": "string",
192
+ "rel": "string",
193
+ "templated": true
194
+ },
195
+ {
196
+ "href": "string",
197
+ "rel": "string",
198
+ "templated": true
199
+ },
200
+ {
201
+ "href": "string",
202
+ "rel": "string",
203
+ "templated": true
204
+ },
205
+ {
206
+ "href": "string",
207
+ "rel": "string",
208
+ "templated": false
209
+ },
210
+ {
211
+ "href": "string",
212
+ "rel": "string",
213
+ "templated": true
214
+ },
215
+ {
216
+ "href": "string",
217
+ "rel": "string",
218
+ "templated": false
219
+ },
220
+ {
221
+ "href": "string",
222
+ "rel": "string",
223
+ "templated": true
224
+ },
225
+ {
226
+ "href": "string",
227
+ "rel": "string",
228
+ "templated": true
229
+ }
230
+ ],
231
+ "fdn": "string",
232
+ "sourceType": null,
233
+ "sourceSystem": "string",
234
+ "sources": [
235
+ "string",
236
+ "string",
237
+ "string",
238
+ "string",
239
+ "string",
240
+ "string",
241
+ "string"
242
+ ],
243
+ "name": "string",
244
+ "neName": "string",
245
+ "neId": "string",
246
+ "description": "string",
247
+ "positionId": 6,
248
+ "position": "string",
249
+ "adminState": null,
250
+ "operState": null,
251
+ "standbyState": null,
252
+ "availabilityStates": [
253
+ "offDuty"
254
+ ],
255
+ "stateReasons": [
256
+ "string",
257
+ "string",
258
+ "string",
259
+ "string",
260
+ "string",
261
+ "string"
262
+ ],
263
+ "objectDetails": {},
264
+ "manufacturer": "string",
265
+ "serialNumber": "string",
266
+ "partNumber": "string",
267
+ "manufacturerAssemblyNumber": "string",
268
+ "manufactureDate": "string",
269
+ "manufacturingDeviations": "string",
270
+ "macAddress": "string",
271
+ "hwMacAddress": "string",
272
+ "portDetails": {
273
+ "fdn": "fdn:model:equipment:PortDetails:2209",
274
+ "sourceType": null,
275
+ "sourceSystem": "fdn:realm:sam",
276
+ "sources": [
277
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
278
+ ],
279
+ "objectDetails": {},
280
+ "portIndex": 67141632,
281
+ "portType": null,
282
+ "rate": "ethernet100",
283
+ "actualRateUnits": null,
284
+ "actualRate": 100000,
285
+ "portMode": null,
286
+ "encapType": null,
287
+ "mtuValue": 1578
288
+ },
289
+ "lagDetails": {
290
+ "encapType": "string",
291
+ "fdn": "string",
292
+ "lagId": "string",
293
+ "objectDetails": {},
294
+ "portFdn": "string",
295
+ "portName": "string",
296
+ "priority": 4,
297
+ "sourceSystem": "string",
298
+ "sourceType": "string",
299
+ "sources": [
300
+ "string",
301
+ "string",
302
+ "string",
303
+ "string",
304
+ "string",
305
+ "string",
306
+ "string",
307
+ "string",
308
+ "string",
309
+ "string"
310
+ ],
311
+ "standbyState": "string"
312
+ }
313
+ },
314
+ {
315
+ "links": [
316
+ {
317
+ "href": "string",
318
+ "rel": "string",
319
+ "templated": true
320
+ },
321
+ {
322
+ "href": "string",
323
+ "rel": "string",
324
+ "templated": true
325
+ }
326
+ ],
327
+ "fdn": "string",
328
+ "sourceType": null,
329
+ "sourceSystem": "string",
330
+ "sources": [
331
+ "string",
332
+ "string",
333
+ "string",
334
+ "string",
335
+ "string",
336
+ "string",
337
+ "string"
338
+ ],
339
+ "name": "string",
340
+ "neName": "string",
341
+ "neId": "string",
342
+ "description": "string",
343
+ "positionId": 2,
344
+ "position": "string",
345
+ "adminState": null,
346
+ "operState": null,
347
+ "standbyState": null,
348
+ "availabilityStates": [
349
+ "unknown",
350
+ "dependency",
351
+ "offLine",
352
+ "dependency",
353
+ "inTest",
354
+ "failed",
355
+ "inTest",
356
+ "degraded",
357
+ "unknown"
358
+ ],
359
+ "stateReasons": [
360
+ "string",
361
+ "string",
362
+ "string",
363
+ "string",
364
+ "string",
365
+ "string",
366
+ "string"
367
+ ],
368
+ "objectDetails": {},
369
+ "manufacturer": "string",
370
+ "serialNumber": "string",
371
+ "partNumber": "string",
372
+ "manufacturerAssemblyNumber": "string",
373
+ "manufactureDate": "string",
374
+ "manufacturingDeviations": "string",
375
+ "macAddress": "string",
376
+ "hwMacAddress": "string",
377
+ "portDetails": {
378
+ "fdn": "fdn:model:equipment:PortDetails:2209",
379
+ "sourceType": null,
380
+ "sourceSystem": "fdn:realm:sam",
381
+ "sources": [
382
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
383
+ ],
384
+ "objectDetails": {},
385
+ "portIndex": 67141632,
386
+ "portType": null,
387
+ "rate": "ethernet100",
388
+ "actualRateUnits": null,
389
+ "actualRate": 100000,
390
+ "portMode": null,
391
+ "encapType": null,
392
+ "mtuValue": 1578
393
+ },
394
+ "lagDetails": {
395
+ "encapType": "string",
396
+ "fdn": "string",
397
+ "lagId": "string",
398
+ "objectDetails": {},
399
+ "portFdn": "string",
400
+ "portName": "string",
401
+ "priority": 1,
402
+ "sourceSystem": "string",
403
+ "sourceType": "string",
404
+ "sources": [
405
+ "string"
406
+ ],
407
+ "standbyState": "string"
408
+ }
409
+ }
410
+ ]
@@ -0,0 +1,19 @@
1
+ [
2
+ {
3
+ "encapType": "string",
4
+ "fdn": "string",
5
+ "lagId": "string",
6
+ "objectDetails": {},
7
+ "portFdn": "string",
8
+ "portName": "string",
9
+ "priority": 1,
10
+ "sourceSystem": "string",
11
+ "sourceType": "string",
12
+ "sources": [
13
+ "string",
14
+ "string",
15
+ "string"
16
+ ],
17
+ "standbyState": "string"
18
+ }
19
+ ]