@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,283 @@
1
+ [
2
+ {
3
+ "links": [
4
+ {
5
+ "href": "string",
6
+ "rel": "string",
7
+ "templated": false
8
+ },
9
+ {
10
+ "href": "string",
11
+ "rel": "string",
12
+ "templated": true
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": false
28
+ },
29
+ {
30
+ "href": "string",
31
+ "rel": "string",
32
+ "templated": false
33
+ }
34
+ ],
35
+ "sourceType": "string",
36
+ "fdn": "string",
37
+ "sourceSystem": "string",
38
+ "sources": [
39
+ "string",
40
+ "string",
41
+ "string",
42
+ "string",
43
+ "string",
44
+ "string",
45
+ "string",
46
+ "string"
47
+ ],
48
+ "name": "string",
49
+ "id": "string",
50
+ "type": "cable",
51
+ "rate": "string",
52
+ "actualRate": 8,
53
+ "actualRateUnits": null,
54
+ "description": "string",
55
+ "protection": null,
56
+ "protectionKind": null,
57
+ "latency": 3,
58
+ "latencyUnits": null,
59
+ "restoration": null,
60
+ "direction": null,
61
+ "adminState": null,
62
+ "operState": null,
63
+ "standbyState": null,
64
+ "availabilityStates": [
65
+ "notInstalled",
66
+ "powerOff",
67
+ "degraded",
68
+ "failed"
69
+ ],
70
+ "objectDetails": {},
71
+ "endpoints": [
72
+ {
73
+ "name": "Port 1/1/1",
74
+ "type": null,
75
+ "port": "fdn:model:equipment:Equipment:2189",
76
+ "lag": "null",
77
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
78
+ "parentNeId": "38.120.169.111",
79
+ "subnetName": "null",
80
+ "objectDetails": {},
81
+ "parentNeName": "string"
82
+ },
83
+ {
84
+ "name": "Port 1/1/1",
85
+ "type": null,
86
+ "port": "fdn:model:equipment:Equipment:2189",
87
+ "lag": "null",
88
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
89
+ "parentNeId": "38.120.169.111",
90
+ "subnetName": "null",
91
+ "objectDetails": {},
92
+ "parentNeName": "string"
93
+ },
94
+ {
95
+ "name": "Port 1/1/1",
96
+ "type": null,
97
+ "port": "fdn:model:equipment:Equipment:2189",
98
+ "lag": "null",
99
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
100
+ "parentNeId": "38.120.169.111",
101
+ "subnetName": "null",
102
+ "objectDetails": {},
103
+ "parentNeName": "string"
104
+ },
105
+ {
106
+ "name": "Port 1/1/1",
107
+ "type": null,
108
+ "port": "fdn:model:equipment:Equipment:2189",
109
+ "lag": "null",
110
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
111
+ "parentNeId": "38.120.169.111",
112
+ "subnetName": "null",
113
+ "objectDetails": {},
114
+ "parentNeName": "string"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "links": [
120
+ {
121
+ "href": "string",
122
+ "rel": "string",
123
+ "templated": true
124
+ },
125
+ {
126
+ "href": "string",
127
+ "rel": "string",
128
+ "templated": false
129
+ }
130
+ ],
131
+ "sourceType": "string",
132
+ "fdn": "string",
133
+ "sourceSystem": "string",
134
+ "sources": [
135
+ "string",
136
+ "string",
137
+ "string",
138
+ "string",
139
+ "string",
140
+ "string"
141
+ ],
142
+ "name": "string",
143
+ "id": "string",
144
+ "type": "cable",
145
+ "rate": "string",
146
+ "actualRate": 3,
147
+ "actualRateUnits": null,
148
+ "description": "string",
149
+ "protection": null,
150
+ "protectionKind": null,
151
+ "latency": 10,
152
+ "latencyUnits": null,
153
+ "restoration": null,
154
+ "direction": null,
155
+ "adminState": null,
156
+ "operState": null,
157
+ "standbyState": null,
158
+ "availabilityStates": [
159
+ "logFull",
160
+ "dependency",
161
+ "dependency",
162
+ "unknown",
163
+ "failed",
164
+ "offDuty",
165
+ "powerOff",
166
+ "inTest",
167
+ "degraded"
168
+ ],
169
+ "objectDetails": {},
170
+ "endpoints": [
171
+ {
172
+ "name": "Port 1/1/1",
173
+ "type": null,
174
+ "port": "fdn:model:equipment:Equipment:2189",
175
+ "lag": "null",
176
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
177
+ "parentNeId": "38.120.169.111",
178
+ "subnetName": "null",
179
+ "objectDetails": {},
180
+ "parentNeName": "string"
181
+ },
182
+ {
183
+ "name": "Port 1/1/1",
184
+ "type": null,
185
+ "port": "fdn:model:equipment:Equipment:2189",
186
+ "lag": "null",
187
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
188
+ "parentNeId": "38.120.169.111",
189
+ "subnetName": "null",
190
+ "objectDetails": {},
191
+ "parentNeName": "string"
192
+ },
193
+ {
194
+ "name": "Port 1/1/1",
195
+ "type": null,
196
+ "port": "fdn:model:equipment:Equipment:2189",
197
+ "lag": "null",
198
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
199
+ "parentNeId": "38.120.169.111",
200
+ "subnetName": "null",
201
+ "objectDetails": {},
202
+ "parentNeName": "string"
203
+ },
204
+ {
205
+ "name": "Port 1/1/1",
206
+ "type": null,
207
+ "port": "fdn:model:equipment:Equipment:2189",
208
+ "lag": "null",
209
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
210
+ "parentNeId": "38.120.169.111",
211
+ "subnetName": "null",
212
+ "objectDetails": {},
213
+ "parentNeName": "string"
214
+ },
215
+ {
216
+ "name": "Port 1/1/1",
217
+ "type": null,
218
+ "port": "fdn:model:equipment:Equipment:2189",
219
+ "lag": "null",
220
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
221
+ "parentNeId": "38.120.169.111",
222
+ "subnetName": "null",
223
+ "objectDetails": {},
224
+ "parentNeName": "string"
225
+ },
226
+ {
227
+ "name": "Port 1/1/1",
228
+ "type": null,
229
+ "port": "fdn:model:equipment:Equipment:2189",
230
+ "lag": "null",
231
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
232
+ "parentNeId": "38.120.169.111",
233
+ "subnetName": "null",
234
+ "objectDetails": {},
235
+ "parentNeName": "string"
236
+ },
237
+ {
238
+ "name": "Port 1/1/1",
239
+ "type": null,
240
+ "port": "fdn:model:equipment:Equipment:2189",
241
+ "lag": "null",
242
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
243
+ "parentNeId": "38.120.169.111",
244
+ "subnetName": "null",
245
+ "objectDetails": {},
246
+ "parentNeName": "string"
247
+ },
248
+ {
249
+ "name": "Port 1/1/1",
250
+ "type": null,
251
+ "port": "fdn:model:equipment:Equipment:2189",
252
+ "lag": "null",
253
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
254
+ "parentNeId": "38.120.169.111",
255
+ "subnetName": "null",
256
+ "objectDetails": {},
257
+ "parentNeName": "string"
258
+ },
259
+ {
260
+ "name": "Port 1/1/1",
261
+ "type": null,
262
+ "port": "fdn:model:equipment:Equipment:2189",
263
+ "lag": "null",
264
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
265
+ "parentNeId": "38.120.169.111",
266
+ "subnetName": "null",
267
+ "objectDetails": {},
268
+ "parentNeName": "string"
269
+ },
270
+ {
271
+ "name": "Port 1/1/1",
272
+ "type": null,
273
+ "port": "fdn:model:equipment:Equipment:2189",
274
+ "lag": "null",
275
+ "parentNe": "fdn:model:equipment:NetworkElement:2102",
276
+ "parentNeId": "38.120.169.111",
277
+ "subnetName": "null",
278
+ "objectDetails": {},
279
+ "parentNeName": "string"
280
+ }
281
+ ]
282
+ }
283
+ ]
@@ -0,0 +1,22 @@
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": "getPhysicalLinksUsingGET",
12
+ "enum": [
13
+ "getPhysicalLinksUsingGET",
14
+ "createPhysicalLinkUsingPOST",
15
+ "getPhysicalLinkUsingGET",
16
+ "deletePhysicalLinkUsingDELETE"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getPortsUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/v1/ports?{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/getPortsUsingGET-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getPortUsingGET",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/v1/ports/{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
+ }