@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,338 @@
1
+ [
2
+ {
3
+ "adminState": "string",
4
+ "availabilityStates": [
5
+ "string",
6
+ "string",
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string",
13
+ "string"
14
+ ],
15
+ "chassisType": "string",
16
+ "clliCode": "string",
17
+ "communicationState": "string",
18
+ "description": "string",
19
+ "fdn": "string",
20
+ "ipAddress": "string",
21
+ "latitude": 1,
22
+ "links": [
23
+ {
24
+ "href": "string",
25
+ "rel": "string",
26
+ "templated": true
27
+ },
28
+ {
29
+ "href": "string",
30
+ "rel": "string",
31
+ "templated": true
32
+ },
33
+ {
34
+ "href": "string",
35
+ "rel": "string",
36
+ "templated": true
37
+ },
38
+ {
39
+ "href": "string",
40
+ "rel": "string",
41
+ "templated": true
42
+ },
43
+ {
44
+ "href": "string",
45
+ "rel": "string",
46
+ "templated": false
47
+ },
48
+ {
49
+ "href": "string",
50
+ "rel": "string",
51
+ "templated": false
52
+ },
53
+ {
54
+ "href": "string",
55
+ "rel": "string",
56
+ "templated": true
57
+ },
58
+ {
59
+ "href": "string",
60
+ "rel": "string",
61
+ "templated": true
62
+ },
63
+ {
64
+ "href": "string",
65
+ "rel": "string",
66
+ "templated": true
67
+ },
68
+ {
69
+ "href": "string",
70
+ "rel": "string",
71
+ "templated": true
72
+ }
73
+ ],
74
+ "location": "string",
75
+ "longitude": 5,
76
+ "macAddress": "string",
77
+ "managedState": "string",
78
+ "name": "string",
79
+ "neId": "string",
80
+ "neName": "string",
81
+ "objectDetails": {},
82
+ "operState": "string",
83
+ "parentNeName": "string",
84
+ "product": "string",
85
+ "resyncState": "string",
86
+ "sourceSystem": "string",
87
+ "sourceType": "string",
88
+ "sources": [
89
+ "string",
90
+ "string",
91
+ "string",
92
+ "string",
93
+ "string",
94
+ "string"
95
+ ],
96
+ "standbyState": "string",
97
+ "systemAddress": "string",
98
+ "version": "string"
99
+ },
100
+ {
101
+ "adminState": "string",
102
+ "availabilityStates": [
103
+ "string",
104
+ "string",
105
+ "string",
106
+ "string",
107
+ "string",
108
+ "string",
109
+ "string",
110
+ "string"
111
+ ],
112
+ "chassisType": "string",
113
+ "clliCode": "string",
114
+ "communicationState": "string",
115
+ "description": "string",
116
+ "fdn": "string",
117
+ "ipAddress": "string",
118
+ "latitude": 10,
119
+ "links": [
120
+ {
121
+ "href": "string",
122
+ "rel": "string",
123
+ "templated": false
124
+ },
125
+ {
126
+ "href": "string",
127
+ "rel": "string",
128
+ "templated": false
129
+ },
130
+ {
131
+ "href": "string",
132
+ "rel": "string",
133
+ "templated": true
134
+ },
135
+ {
136
+ "href": "string",
137
+ "rel": "string",
138
+ "templated": true
139
+ }
140
+ ],
141
+ "location": "string",
142
+ "longitude": 9,
143
+ "macAddress": "string",
144
+ "managedState": "string",
145
+ "name": "string",
146
+ "neId": "string",
147
+ "neName": "string",
148
+ "objectDetails": {},
149
+ "operState": "string",
150
+ "parentNeName": "string",
151
+ "product": "string",
152
+ "resyncState": "string",
153
+ "sourceSystem": "string",
154
+ "sourceType": "string",
155
+ "sources": [
156
+ "string",
157
+ "string",
158
+ "string",
159
+ "string",
160
+ "string",
161
+ "string",
162
+ "string",
163
+ "string"
164
+ ],
165
+ "standbyState": "string",
166
+ "systemAddress": "string",
167
+ "version": "string"
168
+ },
169
+ {
170
+ "adminState": "string",
171
+ "availabilityStates": [
172
+ "string",
173
+ "string",
174
+ "string",
175
+ "string",
176
+ "string",
177
+ "string",
178
+ "string",
179
+ "string",
180
+ "string"
181
+ ],
182
+ "chassisType": "string",
183
+ "clliCode": "string",
184
+ "communicationState": "string",
185
+ "description": "string",
186
+ "fdn": "string",
187
+ "ipAddress": "string",
188
+ "latitude": 10,
189
+ "links": [
190
+ {
191
+ "href": "string",
192
+ "rel": "string",
193
+ "templated": false
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": false
214
+ },
215
+ {
216
+ "href": "string",
217
+ "rel": "string",
218
+ "templated": true
219
+ },
220
+ {
221
+ "href": "string",
222
+ "rel": "string",
223
+ "templated": false
224
+ }
225
+ ],
226
+ "location": "string",
227
+ "longitude": 7,
228
+ "macAddress": "string",
229
+ "managedState": "string",
230
+ "name": "string",
231
+ "neId": "string",
232
+ "neName": "string",
233
+ "objectDetails": {},
234
+ "operState": "string",
235
+ "parentNeName": "string",
236
+ "product": "string",
237
+ "resyncState": "string",
238
+ "sourceSystem": "string",
239
+ "sourceType": "string",
240
+ "sources": [
241
+ "string",
242
+ "string",
243
+ "string",
244
+ "string",
245
+ "string",
246
+ "string",
247
+ "string",
248
+ "string",
249
+ "string"
250
+ ],
251
+ "standbyState": "string",
252
+ "systemAddress": "string",
253
+ "version": "string"
254
+ },
255
+ {
256
+ "adminState": "string",
257
+ "availabilityStates": [
258
+ "string",
259
+ "string",
260
+ "string",
261
+ "string",
262
+ "string"
263
+ ],
264
+ "chassisType": "string",
265
+ "clliCode": "string",
266
+ "communicationState": "string",
267
+ "description": "string",
268
+ "fdn": "string",
269
+ "ipAddress": "string",
270
+ "latitude": 2,
271
+ "links": [
272
+ {
273
+ "href": "string",
274
+ "rel": "string",
275
+ "templated": true
276
+ },
277
+ {
278
+ "href": "string",
279
+ "rel": "string",
280
+ "templated": true
281
+ },
282
+ {
283
+ "href": "string",
284
+ "rel": "string",
285
+ "templated": true
286
+ },
287
+ {
288
+ "href": "string",
289
+ "rel": "string",
290
+ "templated": true
291
+ },
292
+ {
293
+ "href": "string",
294
+ "rel": "string",
295
+ "templated": true
296
+ },
297
+ {
298
+ "href": "string",
299
+ "rel": "string",
300
+ "templated": false
301
+ },
302
+ {
303
+ "href": "string",
304
+ "rel": "string",
305
+ "templated": true
306
+ }
307
+ ],
308
+ "location": "string",
309
+ "longitude": 2,
310
+ "macAddress": "string",
311
+ "managedState": "string",
312
+ "name": "string",
313
+ "neId": "string",
314
+ "neName": "string",
315
+ "objectDetails": {},
316
+ "operState": "string",
317
+ "parentNeName": "string",
318
+ "product": "string",
319
+ "resyncState": "string",
320
+ "sourceSystem": "string",
321
+ "sourceType": "string",
322
+ "sources": [
323
+ "string",
324
+ "string",
325
+ "string",
326
+ "string",
327
+ "string",
328
+ "string",
329
+ "string",
330
+ "string",
331
+ "string",
332
+ "string"
333
+ ],
334
+ "standbyState": "string",
335
+ "systemAddress": "string",
336
+ "version": "string"
337
+ }
338
+ ]
@@ -0,0 +1,86 @@
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
+ "href": "string",
26
+ "rel": "string",
27
+ "templated": false
28
+ },
29
+ {
30
+ "href": "string",
31
+ "rel": "string",
32
+ "templated": false
33
+ },
34
+ {
35
+ "href": "string",
36
+ "rel": "string",
37
+ "templated": false
38
+ }
39
+ ],
40
+ "fdn": "string",
41
+ "sourceType": null,
42
+ "sourceSystem": "string",
43
+ "sources": [
44
+ "string",
45
+ "string"
46
+ ],
47
+ "name": "string",
48
+ "neName": "string",
49
+ "neId": "string",
50
+ "description": "string",
51
+ "positionId": 4,
52
+ "position": "string",
53
+ "adminState": null,
54
+ "operState": null,
55
+ "standbyState": null,
56
+ "availabilityStates": [
57
+ "notInstalled",
58
+ "dependency",
59
+ "offDuty",
60
+ "offLine",
61
+ "dependency",
62
+ "dependency",
63
+ "inTest",
64
+ "offLine",
65
+ "offLine",
66
+ "offLine"
67
+ ],
68
+ "stateReasons": [
69
+ "string",
70
+ "string",
71
+ "string",
72
+ "string",
73
+ "string",
74
+ "string"
75
+ ],
76
+ "objectDetails": {},
77
+ "manufacturer": "string",
78
+ "serialNumber": "string",
79
+ "partNumber": "string",
80
+ "manufacturerAssemblyNumber": "string",
81
+ "manufactureDate": "string",
82
+ "manufacturingDeviations": "string",
83
+ "macAddress": "string",
84
+ "hwMacAddress": "string"
85
+ }
86
+ ]
@@ -0,0 +1,166 @@
1
+ [
2
+ {
3
+ "links": [
4
+ {
5
+ "href": "string",
6
+ "rel": "string",
7
+ "templated": true
8
+ },
9
+ {
10
+ "href": "string",
11
+ "rel": "string",
12
+ "templated": false
13
+ },
14
+ {
15
+ "href": "string",
16
+ "rel": "string",
17
+ "templated": true
18
+ },
19
+ {
20
+ "href": "string",
21
+ "rel": "string",
22
+ "templated": false
23
+ },
24
+ {
25
+ "href": "string",
26
+ "rel": "string",
27
+ "templated": true
28
+ },
29
+ {
30
+ "href": "string",
31
+ "rel": "string",
32
+ "templated": true
33
+ }
34
+ ],
35
+ "fdn": "string",
36
+ "sourceType": null,
37
+ "sourceSystem": "string",
38
+ "sources": [
39
+ "string",
40
+ "string",
41
+ "string",
42
+ "string",
43
+ "string",
44
+ "string",
45
+ "string"
46
+ ],
47
+ "name": "string",
48
+ "neName": "string",
49
+ "neId": "string",
50
+ "description": "string",
51
+ "ipAddress": "string",
52
+ "type": "string",
53
+ "product": "string",
54
+ "version": "string",
55
+ "resyncState": null,
56
+ "managedState": null,
57
+ "longitude": 7,
58
+ "latitude": 6,
59
+ "location": "string",
60
+ "topologyGroup": "string",
61
+ "adminState": null,
62
+ "operState": null,
63
+ "standbyState": null,
64
+ "availabilityStates": [
65
+ "unknown",
66
+ "notInstalled",
67
+ "degraded",
68
+ "notInstalled",
69
+ "powerOff"
70
+ ],
71
+ "objectDetails": {},
72
+ "networkType": null,
73
+ "communicationState": null,
74
+ "communicationStateDetails": {},
75
+ "macAddress": "string",
76
+ "clliCode": "string"
77
+ },
78
+ {
79
+ "links": [
80
+ {
81
+ "href": "string",
82
+ "rel": "string",
83
+ "templated": true
84
+ },
85
+ {
86
+ "href": "string",
87
+ "rel": "string",
88
+ "templated": true
89
+ },
90
+ {
91
+ "href": "string",
92
+ "rel": "string",
93
+ "templated": false
94
+ },
95
+ {
96
+ "href": "string",
97
+ "rel": "string",
98
+ "templated": false
99
+ },
100
+ {
101
+ "href": "string",
102
+ "rel": "string",
103
+ "templated": false
104
+ },
105
+ {
106
+ "href": "string",
107
+ "rel": "string",
108
+ "templated": false
109
+ },
110
+ {
111
+ "href": "string",
112
+ "rel": "string",
113
+ "templated": false
114
+ },
115
+ {
116
+ "href": "string",
117
+ "rel": "string",
118
+ "templated": false
119
+ }
120
+ ],
121
+ "fdn": "string",
122
+ "sourceType": null,
123
+ "sourceSystem": "string",
124
+ "sources": [
125
+ "string",
126
+ "string",
127
+ "string",
128
+ "string"
129
+ ],
130
+ "name": "string",
131
+ "neName": "string",
132
+ "neId": "string",
133
+ "description": "string",
134
+ "ipAddress": "string",
135
+ "type": "string",
136
+ "product": "string",
137
+ "version": "string",
138
+ "resyncState": null,
139
+ "managedState": null,
140
+ "longitude": 1,
141
+ "latitude": 4,
142
+ "location": "string",
143
+ "topologyGroup": "string",
144
+ "adminState": null,
145
+ "operState": null,
146
+ "standbyState": null,
147
+ "availabilityStates": [
148
+ "dependency",
149
+ "offDuty",
150
+ "powerOff",
151
+ "offLine",
152
+ "logFull",
153
+ "logFull",
154
+ "dependency",
155
+ "offLine",
156
+ "logFull",
157
+ "notInstalled"
158
+ ],
159
+ "objectDetails": {},
160
+ "networkType": null,
161
+ "communicationState": null,
162
+ "communicationStateDetails": {},
163
+ "macAddress": "string",
164
+ "clliCode": "string"
165
+ }
166
+ ]