@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,256 @@
1
+ [
2
+ {
3
+ "links": [
4
+ {
5
+ "href": "string",
6
+ "rel": "string",
7
+ "templated": true
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": true
23
+ },
24
+ {
25
+ "href": "string",
26
+ "rel": "string",
27
+ "templated": true
28
+ }
29
+ ],
30
+ "fdn": "string",
31
+ "sourceType": null,
32
+ "sourceSystem": "string",
33
+ "sources": [
34
+ "string",
35
+ "string",
36
+ "string",
37
+ "string",
38
+ "string"
39
+ ],
40
+ "name": "string",
41
+ "neName": "string",
42
+ "neId": "string",
43
+ "description": "string",
44
+ "positionId": 2,
45
+ "position": "string",
46
+ "adminState": null,
47
+ "operState": null,
48
+ "standbyState": null,
49
+ "availabilityStates": [
50
+ "unknown",
51
+ "notInstalled"
52
+ ],
53
+ "stateReasons": [
54
+ "string",
55
+ "string"
56
+ ],
57
+ "objectDetails": {},
58
+ "manufacturer": "string",
59
+ "serialNumber": "string",
60
+ "partNumber": "string",
61
+ "manufacturerAssemblyNumber": "string",
62
+ "manufactureDate": "string",
63
+ "manufacturingDeviations": "string",
64
+ "macAddress": "string",
65
+ "hwMacAddress": "string",
66
+ "provisionedType": "string",
67
+ "actualType": "string",
68
+ "holderState": "string"
69
+ },
70
+ {
71
+ "links": [
72
+ {
73
+ "href": "string",
74
+ "rel": "string",
75
+ "templated": true
76
+ },
77
+ {
78
+ "href": "string",
79
+ "rel": "string",
80
+ "templated": true
81
+ },
82
+ {
83
+ "href": "string",
84
+ "rel": "string",
85
+ "templated": false
86
+ },
87
+ {
88
+ "href": "string",
89
+ "rel": "string",
90
+ "templated": true
91
+ },
92
+ {
93
+ "href": "string",
94
+ "rel": "string",
95
+ "templated": true
96
+ },
97
+ {
98
+ "href": "string",
99
+ "rel": "string",
100
+ "templated": false
101
+ },
102
+ {
103
+ "href": "string",
104
+ "rel": "string",
105
+ "templated": false
106
+ },
107
+ {
108
+ "href": "string",
109
+ "rel": "string",
110
+ "templated": true
111
+ },
112
+ {
113
+ "href": "string",
114
+ "rel": "string",
115
+ "templated": true
116
+ }
117
+ ],
118
+ "fdn": "string",
119
+ "sourceType": null,
120
+ "sourceSystem": "string",
121
+ "sources": [
122
+ "string",
123
+ "string",
124
+ "string",
125
+ "string",
126
+ "string",
127
+ "string",
128
+ "string"
129
+ ],
130
+ "name": "string",
131
+ "neName": "string",
132
+ "neId": "string",
133
+ "description": "string",
134
+ "positionId": 9,
135
+ "position": "string",
136
+ "adminState": null,
137
+ "operState": null,
138
+ "standbyState": null,
139
+ "availabilityStates": [
140
+ "offLine",
141
+ "unknown"
142
+ ],
143
+ "stateReasons": [
144
+ "string",
145
+ "string",
146
+ "string",
147
+ "string",
148
+ "string",
149
+ "string",
150
+ "string"
151
+ ],
152
+ "objectDetails": {},
153
+ "manufacturer": "string",
154
+ "serialNumber": "string",
155
+ "partNumber": "string",
156
+ "manufacturerAssemblyNumber": "string",
157
+ "manufactureDate": "string",
158
+ "manufacturingDeviations": "string",
159
+ "macAddress": "string",
160
+ "hwMacAddress": "string",
161
+ "provisionedType": "string",
162
+ "actualType": "string",
163
+ "holderState": "string"
164
+ },
165
+ {
166
+ "links": [
167
+ {
168
+ "href": "string",
169
+ "rel": "string",
170
+ "templated": false
171
+ },
172
+ {
173
+ "href": "string",
174
+ "rel": "string",
175
+ "templated": true
176
+ },
177
+ {
178
+ "href": "string",
179
+ "rel": "string",
180
+ "templated": false
181
+ },
182
+ {
183
+ "href": "string",
184
+ "rel": "string",
185
+ "templated": false
186
+ },
187
+ {
188
+ "href": "string",
189
+ "rel": "string",
190
+ "templated": false
191
+ },
192
+ {
193
+ "href": "string",
194
+ "rel": "string",
195
+ "templated": true
196
+ },
197
+ {
198
+ "href": "string",
199
+ "rel": "string",
200
+ "templated": true
201
+ },
202
+ {
203
+ "href": "string",
204
+ "rel": "string",
205
+ "templated": false
206
+ }
207
+ ],
208
+ "fdn": "string",
209
+ "sourceType": null,
210
+ "sourceSystem": "string",
211
+ "sources": [
212
+ "string",
213
+ "string",
214
+ "string",
215
+ "string",
216
+ "string"
217
+ ],
218
+ "name": "string",
219
+ "neName": "string",
220
+ "neId": "string",
221
+ "description": "string",
222
+ "positionId": 10,
223
+ "position": "string",
224
+ "adminState": null,
225
+ "operState": null,
226
+ "standbyState": null,
227
+ "availabilityStates": [
228
+ "inTest",
229
+ "offLine",
230
+ "offDuty",
231
+ "degraded",
232
+ "failed",
233
+ "powerOff"
234
+ ],
235
+ "stateReasons": [
236
+ "string",
237
+ "string",
238
+ "string",
239
+ "string",
240
+ "string",
241
+ "string"
242
+ ],
243
+ "objectDetails": {},
244
+ "manufacturer": "string",
245
+ "serialNumber": "string",
246
+ "partNumber": "string",
247
+ "manufacturerAssemblyNumber": "string",
248
+ "manufactureDate": "string",
249
+ "manufacturingDeviations": "string",
250
+ "macAddress": "string",
251
+ "hwMacAddress": "string",
252
+ "provisionedType": "string",
253
+ "actualType": "string",
254
+ "holderState": "string"
255
+ }
256
+ ]
@@ -0,0 +1,20 @@
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": "getCardSlotsUsingGET",
12
+ "enum": [
13
+ "getCardSlotsUsingGET",
14
+ "getCardSlotUsingGET"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getCardsUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/v1/cards?{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/getCardsUsingGET-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getCardUsingGET",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/v1/cards/{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
+ }
@@ -0,0 +1,103 @@
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": true
28
+ },
29
+ {
30
+ "href": "string",
31
+ "rel": "string",
32
+ "templated": true
33
+ },
34
+ {
35
+ "href": "string",
36
+ "rel": "string",
37
+ "templated": false
38
+ },
39
+ {
40
+ "href": "string",
41
+ "rel": "string",
42
+ "templated": false
43
+ }
44
+ ],
45
+ "fdn": "string",
46
+ "sourceType": null,
47
+ "sourceSystem": "string",
48
+ "sources": [
49
+ "string"
50
+ ],
51
+ "name": "string",
52
+ "neName": "string",
53
+ "neId": "string",
54
+ "description": "string",
55
+ "positionId": 7,
56
+ "position": "string",
57
+ "adminState": null,
58
+ "operState": null,
59
+ "standbyState": null,
60
+ "availabilityStates": [
61
+ "notInstalled"
62
+ ],
63
+ "stateReasons": [
64
+ "string",
65
+ "string",
66
+ "string",
67
+ "string",
68
+ "string"
69
+ ],
70
+ "objectDetails": {},
71
+ "manufacturer": "string",
72
+ "serialNumber": "string",
73
+ "partNumber": "string",
74
+ "manufacturerAssemblyNumber": "string",
75
+ "manufactureDate": "string",
76
+ "manufacturingDeviations": "string",
77
+ "macAddress": "string",
78
+ "hwMacAddress": "string",
79
+ "cardDetails": {
80
+ "fdn": "fdn:model:equipment:CardDetails:2203",
81
+ "sourceType": null,
82
+ "sourceSystem": "fdn:realm:sam",
83
+ "sources": [
84
+ "fdn:realm:sam:network:38.120.169.111:shelf-1:cardSlot-2:card@cardDetails"
85
+ ],
86
+ "objectDetails": {},
87
+ "cardType": "500g CPM / Switch Fabric 3",
88
+ "equippedPorts": 40,
89
+ "capabilities": [
90
+ "string",
91
+ "string",
92
+ "string",
93
+ "string",
94
+ "string",
95
+ "string"
96
+ ],
97
+ "availableSlots": 2,
98
+ "installedSlots": 1,
99
+ "memorySize": 16392,
100
+ "lastBootUpReason": "Hard Reboot"
101
+ }
102
+ }
103
+ ]
@@ -0,0 +1,20 @@
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": "getCardsUsingGET",
12
+ "enum": [
13
+ "getCardsUsingGET",
14
+ "getCardUsingGET"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getLAGsUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/v1/lags?{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/getLAGsUsingGET-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getLAGUsingGET",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/v1/lags/{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
+ }