@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,342 @@
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
+ "fdn": "string",
16
+ "sourceType": null,
17
+ "sourceSystem": "string",
18
+ "sources": [
19
+ "string",
20
+ "string"
21
+ ],
22
+ "name": "string",
23
+ "neName": "string",
24
+ "neId": "string",
25
+ "description": "string",
26
+ "positionId": 8,
27
+ "position": "string",
28
+ "adminState": null,
29
+ "operState": null,
30
+ "standbyState": null,
31
+ "availabilityStates": [
32
+ "inTest",
33
+ "inTest",
34
+ "powerOff",
35
+ "degraded",
36
+ "logFull",
37
+ "powerOff",
38
+ "failed",
39
+ "powerOff",
40
+ "offLine",
41
+ "inTest"
42
+ ],
43
+ "stateReasons": [
44
+ "string",
45
+ "string",
46
+ "string",
47
+ "string",
48
+ "string",
49
+ "string",
50
+ "string",
51
+ "string",
52
+ "string",
53
+ "string"
54
+ ],
55
+ "objectDetails": {},
56
+ "manufacturer": "string",
57
+ "serialNumber": "string",
58
+ "partNumber": "string",
59
+ "manufacturerAssemblyNumber": "string",
60
+ "manufactureDate": "string",
61
+ "manufacturingDeviations": "string",
62
+ "macAddress": "string",
63
+ "hwMacAddress": "string",
64
+ "portDetails": {
65
+ "fdn": "fdn:model:equipment:PortDetails:2209",
66
+ "sourceType": null,
67
+ "sourceSystem": "fdn:realm:sam",
68
+ "sources": [
69
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
70
+ ],
71
+ "objectDetails": {},
72
+ "portIndex": 67141632,
73
+ "portType": null,
74
+ "rate": "ethernet100",
75
+ "actualRateUnits": null,
76
+ "actualRate": 100000,
77
+ "portMode": null,
78
+ "encapType": null,
79
+ "mtuValue": 1578
80
+ },
81
+ "lagDetails": {
82
+ "encapType": "string",
83
+ "fdn": "string",
84
+ "lagId": "string",
85
+ "objectDetails": {},
86
+ "portFdn": "string",
87
+ "portName": "string",
88
+ "priority": 9,
89
+ "sourceSystem": "string",
90
+ "sourceType": "string",
91
+ "sources": [
92
+ "string",
93
+ "string",
94
+ "string",
95
+ "string"
96
+ ],
97
+ "standbyState": "string"
98
+ }
99
+ },
100
+ {
101
+ "links": [
102
+ {
103
+ "href": "string",
104
+ "rel": "string",
105
+ "templated": true
106
+ },
107
+ {
108
+ "href": "string",
109
+ "rel": "string",
110
+ "templated": false
111
+ },
112
+ {
113
+ "href": "string",
114
+ "rel": "string",
115
+ "templated": true
116
+ },
117
+ {
118
+ "href": "string",
119
+ "rel": "string",
120
+ "templated": false
121
+ },
122
+ {
123
+ "href": "string",
124
+ "rel": "string",
125
+ "templated": false
126
+ },
127
+ {
128
+ "href": "string",
129
+ "rel": "string",
130
+ "templated": false
131
+ },
132
+ {
133
+ "href": "string",
134
+ "rel": "string",
135
+ "templated": false
136
+ },
137
+ {
138
+ "href": "string",
139
+ "rel": "string",
140
+ "templated": false
141
+ },
142
+ {
143
+ "href": "string",
144
+ "rel": "string",
145
+ "templated": true
146
+ },
147
+ {
148
+ "href": "string",
149
+ "rel": "string",
150
+ "templated": true
151
+ }
152
+ ],
153
+ "fdn": "string",
154
+ "sourceType": null,
155
+ "sourceSystem": "string",
156
+ "sources": [
157
+ "string",
158
+ "string"
159
+ ],
160
+ "name": "string",
161
+ "neName": "string",
162
+ "neId": "string",
163
+ "description": "string",
164
+ "positionId": 1,
165
+ "position": "string",
166
+ "adminState": null,
167
+ "operState": null,
168
+ "standbyState": null,
169
+ "availabilityStates": [
170
+ "powerOff"
171
+ ],
172
+ "stateReasons": [
173
+ "string",
174
+ "string",
175
+ "string",
176
+ "string",
177
+ "string",
178
+ "string",
179
+ "string",
180
+ "string"
181
+ ],
182
+ "objectDetails": {},
183
+ "manufacturer": "string",
184
+ "serialNumber": "string",
185
+ "partNumber": "string",
186
+ "manufacturerAssemblyNumber": "string",
187
+ "manufactureDate": "string",
188
+ "manufacturingDeviations": "string",
189
+ "macAddress": "string",
190
+ "hwMacAddress": "string",
191
+ "portDetails": {
192
+ "fdn": "fdn:model:equipment:PortDetails:2209",
193
+ "sourceType": null,
194
+ "sourceSystem": "fdn:realm:sam",
195
+ "sources": [
196
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
197
+ ],
198
+ "objectDetails": {},
199
+ "portIndex": 67141632,
200
+ "portType": null,
201
+ "rate": "ethernet100",
202
+ "actualRateUnits": null,
203
+ "actualRate": 100000,
204
+ "portMode": null,
205
+ "encapType": null,
206
+ "mtuValue": 1578
207
+ },
208
+ "lagDetails": {
209
+ "encapType": "string",
210
+ "fdn": "string",
211
+ "lagId": "string",
212
+ "objectDetails": {},
213
+ "portFdn": "string",
214
+ "portName": "string",
215
+ "priority": 9,
216
+ "sourceSystem": "string",
217
+ "sourceType": "string",
218
+ "sources": [
219
+ "string",
220
+ "string",
221
+ "string",
222
+ "string",
223
+ "string"
224
+ ],
225
+ "standbyState": "string"
226
+ }
227
+ },
228
+ {
229
+ "links": [
230
+ {
231
+ "href": "string",
232
+ "rel": "string",
233
+ "templated": false
234
+ },
235
+ {
236
+ "href": "string",
237
+ "rel": "string",
238
+ "templated": true
239
+ },
240
+ {
241
+ "href": "string",
242
+ "rel": "string",
243
+ "templated": true
244
+ },
245
+ {
246
+ "href": "string",
247
+ "rel": "string",
248
+ "templated": false
249
+ }
250
+ ],
251
+ "fdn": "string",
252
+ "sourceType": null,
253
+ "sourceSystem": "string",
254
+ "sources": [
255
+ "string",
256
+ "string",
257
+ "string",
258
+ "string",
259
+ "string",
260
+ "string",
261
+ "string",
262
+ "string",
263
+ "string",
264
+ "string"
265
+ ],
266
+ "name": "string",
267
+ "neName": "string",
268
+ "neId": "string",
269
+ "description": "string",
270
+ "positionId": 5,
271
+ "position": "string",
272
+ "adminState": null,
273
+ "operState": null,
274
+ "standbyState": null,
275
+ "availabilityStates": [
276
+ "powerOff",
277
+ "offDuty",
278
+ "dependency",
279
+ "unknown",
280
+ "logFull",
281
+ "offDuty",
282
+ "offLine",
283
+ "inTest"
284
+ ],
285
+ "stateReasons": [
286
+ "string",
287
+ "string",
288
+ "string",
289
+ "string",
290
+ "string",
291
+ "string"
292
+ ],
293
+ "objectDetails": {},
294
+ "manufacturer": "string",
295
+ "serialNumber": "string",
296
+ "partNumber": "string",
297
+ "manufacturerAssemblyNumber": "string",
298
+ "manufactureDate": "string",
299
+ "manufacturingDeviations": "string",
300
+ "macAddress": "string",
301
+ "hwMacAddress": "string",
302
+ "portDetails": {
303
+ "fdn": "fdn:model:equipment:PortDetails:2209",
304
+ "sourceType": null,
305
+ "sourceSystem": "fdn:realm:sam",
306
+ "sources": [
307
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card:port-1@portDetails"
308
+ ],
309
+ "objectDetails": {},
310
+ "portIndex": 67141632,
311
+ "portType": null,
312
+ "rate": "ethernet100",
313
+ "actualRateUnits": null,
314
+ "actualRate": 100000,
315
+ "portMode": null,
316
+ "encapType": null,
317
+ "mtuValue": 1578
318
+ },
319
+ "lagDetails": {
320
+ "encapType": "string",
321
+ "fdn": "string",
322
+ "lagId": "string",
323
+ "objectDetails": {},
324
+ "portFdn": "string",
325
+ "portName": "string",
326
+ "priority": 8,
327
+ "sourceSystem": "string",
328
+ "sourceType": "string",
329
+ "sources": [
330
+ "string",
331
+ "string",
332
+ "string",
333
+ "string",
334
+ "string",
335
+ "string",
336
+ "string",
337
+ "string"
338
+ ],
339
+ "standbyState": "string"
340
+ }
341
+ }
342
+ ]
@@ -0,0 +1,32 @@
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": "getNEsUsingGET",
12
+ "enum": [
13
+ "getNEsUsingGET",
14
+ "getNEUsingGET",
15
+ "getNELAGsUsingGET",
16
+ "getLagMembersUsingGET",
17
+ "getNERadioEquipmentsUsingGET",
18
+ "getRadioEquipmentLagsUsingGET",
19
+ "getRadioEquipmentLagMembersUsingGET",
20
+ "getRadioEquipmentShelvesUsingGET",
21
+ "getRadioEquipmentShelfCardsUsingGET",
22
+ "getRadioEquipmentCardPortsUsingGET",
23
+ "getNEShelvesUsingGET",
24
+ "getShelfCardsUsingGET",
25
+ "getCardPortsUsingGET",
26
+ "getShelfPortsUsingGET"
27
+ ],
28
+ "external_name": "ph_request_type"
29
+ }
30
+ },
31
+ "definitions": {}
32
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getPhysicalLinksUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/v1/physicalLinks?{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": "mockdatafiles/getPhysicalLinksUsingGET-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createPhysicalLinkUsingPOST",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/v1/physicalLinks?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getPhysicalLinkUsingGET",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/v1/physicalLinks/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deletePhysicalLinkUsingDELETE",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/v1/physicalLinks/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ }
85
+ ]
86
+ }