@itentialopensource/adapter-nokia_nsp_device_configurator 0.1.3

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 (87) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +316 -0
  7. package/CHANGELOG.md +24 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +3209 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +52 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/BasicRESTCONFFlow/action.json +130 -0
  28. package/entities/BasicRESTCONFFlow/mockdatafiles/getagivennetworkdevice-default.json +71 -0
  29. package/entities/BasicRESTCONFFlow/mockdatafiles/getallthenetworkdevices-default.json +140 -0
  30. package/entities/BasicRESTCONFFlow/mockdatafiles/gettheRESTCONFRoot-default.json +8 -0
  31. package/entities/BasicRESTCONFFlow/mockdatafiles/getthedatastore-default.json +6 -0
  32. package/entities/BasicRESTCONFFlow/mockdatafiles/gettheschemamounts-default.json +56 -0
  33. package/entities/BasicRESTCONFFlow/mockdatafiles/gettheyangLibrary-default.json +36 -0
  34. package/entities/BasicRESTCONFFlow/schema.json +24 -0
  35. package/entities/CreateConfigureAndDelete/action.json +64 -0
  36. package/entities/CreateConfigureAndDelete/schema.json +21 -0
  37. package/entities/GetBearerToken/action.json +24 -0
  38. package/entities/GetBearerToken/mockdatafiles/getAuthBearerToken-default.json +6 -0
  39. package/entities/GetBearerToken/schema.json +19 -0
  40. package/entities/PatchForLeafTypeEmpty/action.json +44 -0
  41. package/entities/PatchForLeafTypeEmpty/schema.json +31 -0
  42. package/entities/PlainPatch/action.json +86 -0
  43. package/entities/PlainPatch/mockdatafiles/getthelistofinterfaces-default.json +53 -0
  44. package/entities/PlainPatch/schema.json +33 -0
  45. package/entities/QOSPolicyGetCreateEdit/action.json +86 -0
  46. package/entities/QOSPolicyGetCreateEdit/mockdatafiles/getQOSSAPEgressPolicy-default.json +141 -0
  47. package/entities/QOSPolicyGetCreateEdit/mockdatafiles/getQoS-default.json +295 -0
  48. package/entities/QOSPolicyGetCreateEdit/schema.json +33 -0
  49. package/entities/Search/action.json +67 -0
  50. package/entities/Search/mockdatafiles/fieldquerytoretrieveasinglechildnodeunderthetargetresource-default.json +22 -0
  51. package/entities/Search/mockdatafiles/fieldquerytoselectmultiplefieldsunderthetargetresource-default.json +16 -0
  52. package/entities/Search/mockdatafiles/fieldquerywithsubSelectorsofanodeunderthetargetresource-default.json +17 -0
  53. package/entities/Search/schema.json +21 -0
  54. package/error.json +190 -0
  55. package/package.json +86 -0
  56. package/pronghorn.json +6190 -0
  57. package/propertiesDecorators.json +14 -0
  58. package/propertiesSchema.json +1248 -0
  59. package/refs?service=git-upload-pack +0 -0
  60. package/report/22.11Modeled-DeviceConfiguratorRestCONFAPIs.postman_collection.json-OpenApi3Json.json +10547 -0
  61. package/report/adapterInfo.json +10 -0
  62. package/report/creationReport.json +354 -0
  63. package/sampleProperties.json +195 -0
  64. package/test/integration/adapterTestBasicGet.js +83 -0
  65. package/test/integration/adapterTestConnectivity.js +93 -0
  66. package/test/integration/adapterTestIntegration.js +1026 -0
  67. package/test/unit/adapterBaseTestUnit.js +949 -0
  68. package/test/unit/adapterTestUnit.js +2233 -0
  69. package/utils/adapterInfo.js +206 -0
  70. package/utils/addAuth.js +94 -0
  71. package/utils/artifactize.js +146 -0
  72. package/utils/basicGet.js +50 -0
  73. package/utils/checkMigrate.js +63 -0
  74. package/utils/entitiesToDB.js +178 -0
  75. package/utils/findPath.js +74 -0
  76. package/utils/methodDocumentor.js +225 -0
  77. package/utils/modify.js +154 -0
  78. package/utils/packModificationScript.js +35 -0
  79. package/utils/patches2bundledDeps.js +90 -0
  80. package/utils/pre-commit.sh +32 -0
  81. package/utils/removeHooks.js +20 -0
  82. package/utils/setup.js +33 -0
  83. package/utils/tbScript.js +246 -0
  84. package/utils/tbUtils.js +490 -0
  85. package/utils/testRunner.js +298 -0
  86. package/utils/troubleshootingAdapter.js +195 -0
  87. package/workflows/README.md +3 -0
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getQoS",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/qos?{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/getQoS-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createQOSPolicy",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/qos?{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": "getQOSSAPEgressPolicy",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/qos/sap-egress?{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": "mockdatafiles/getQOSSAPEgressPolicy-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "editQOSPolicy",
67
+ "protocol": "REST",
68
+ "method": "PUT",
69
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:configure/qos/sap-egress?{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
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "nokia-conf:sap-egress": [
3
+ {
4
+ "sap-egress-policy-name": "Engress5",
5
+ "description": "Egress QoS 5",
6
+ "policy-id": 5,
7
+ "fc": [
8
+ {
9
+ "fc-name": "be",
10
+ "queue": 1
11
+ },
12
+ {
13
+ "fc-name": "l2",
14
+ "queue": 2
15
+ },
16
+ {
17
+ "fc-name": "af",
18
+ "queue": 3
19
+ },
20
+ {
21
+ "fc-name": "l1",
22
+ "queue": 4
23
+ },
24
+ {
25
+ "fc-name": "h2",
26
+ "queue": 5
27
+ },
28
+ {
29
+ "fc-name": "ef",
30
+ "queue": 6
31
+ },
32
+ {
33
+ "fc-name": "h1",
34
+ "queue": 7
35
+ },
36
+ {
37
+ "fc-name": "nc",
38
+ "queue": 8
39
+ }
40
+ ],
41
+ "queue": [
42
+ {
43
+ "queue-id": 1,
44
+ "rate": {
45
+ "pir": "1000",
46
+ "cir": "100"
47
+ },
48
+ "adaptation-rule": {
49
+ "pir": "max",
50
+ "cir": "min"
51
+ },
52
+ "queue-type": "auto-expedited"
53
+ },
54
+ {
55
+ "queue-id": 2,
56
+ "rate": {
57
+ "pir": "1000",
58
+ "cir": "100"
59
+ },
60
+ "adaptation-rule": {
61
+ "pir": "max",
62
+ "cir": "min"
63
+ },
64
+ "queue-type": "expedited"
65
+ },
66
+ {
67
+ "queue-id": 3,
68
+ "rate": {
69
+ "pir": "1000",
70
+ "cir": "100"
71
+ },
72
+ "adaptation-rule": {
73
+ "pir": "max",
74
+ "cir": "min"
75
+ },
76
+ "queue-type": "expedited"
77
+ },
78
+ {
79
+ "queue-id": 4,
80
+ "rate": {
81
+ "pir": "1000",
82
+ "cir": "100"
83
+ },
84
+ "adaptation-rule": {
85
+ "pir": "max",
86
+ "cir": "min"
87
+ },
88
+ "queue-type": "expedited"
89
+ },
90
+ {
91
+ "queue-id": 5,
92
+ "rate": {
93
+ "pir": "1000",
94
+ "cir": "100"
95
+ },
96
+ "adaptation-rule": {
97
+ "pir": "max",
98
+ "cir": "min"
99
+ },
100
+ "queue-type": "expedited"
101
+ },
102
+ {
103
+ "queue-id": 6,
104
+ "rate": {
105
+ "pir": "1000",
106
+ "cir": "100"
107
+ },
108
+ "adaptation-rule": {
109
+ "pir": "max",
110
+ "cir": "min"
111
+ },
112
+ "queue-type": "expedited"
113
+ },
114
+ {
115
+ "queue-id": 7,
116
+ "rate": {
117
+ "pir": "1000",
118
+ "cir": "100"
119
+ },
120
+ "adaptation-rule": {
121
+ "pir": "max",
122
+ "cir": "min"
123
+ },
124
+ "queue-type": "expedited"
125
+ },
126
+ {
127
+ "queue-id": 8,
128
+ "rate": {
129
+ "pir": "1000",
130
+ "cir": "100"
131
+ },
132
+ "adaptation-rule": {
133
+ "pir": "max",
134
+ "cir": "min"
135
+ },
136
+ "queue-type": "expedited"
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ }
@@ -0,0 +1,295 @@
1
+ {
2
+ "nokia-conf:qos": {
3
+ "sap-egress": [
4
+ {
5
+ "sap-egress-policy-name": "Engress5",
6
+ "description": "Egress QoS 5",
7
+ "policy-id": 5,
8
+ "fc": [
9
+ {
10
+ "fc-name": "be",
11
+ "queue": 1
12
+ },
13
+ {
14
+ "fc-name": "l2",
15
+ "queue": 2
16
+ },
17
+ {
18
+ "fc-name": "af",
19
+ "queue": 3
20
+ },
21
+ {
22
+ "fc-name": "l1",
23
+ "queue": 4
24
+ },
25
+ {
26
+ "fc-name": "h2",
27
+ "queue": 5
28
+ },
29
+ {
30
+ "fc-name": "ef",
31
+ "queue": 6
32
+ },
33
+ {
34
+ "fc-name": "h1",
35
+ "queue": 7
36
+ },
37
+ {
38
+ "fc-name": "nc",
39
+ "queue": 8
40
+ }
41
+ ],
42
+ "queue": [
43
+ {
44
+ "queue-id": 1,
45
+ "rate": {
46
+ "pir": "1000",
47
+ "cir": "100"
48
+ },
49
+ "adaptation-rule": {
50
+ "pir": "max",
51
+ "cir": "min"
52
+ },
53
+ "queue-type": "auto-expedited"
54
+ },
55
+ {
56
+ "queue-id": 2,
57
+ "rate": {
58
+ "pir": "1000",
59
+ "cir": "100"
60
+ },
61
+ "adaptation-rule": {
62
+ "pir": "max",
63
+ "cir": "min"
64
+ },
65
+ "queue-type": "expedited"
66
+ },
67
+ {
68
+ "queue-id": 3,
69
+ "rate": {
70
+ "pir": "1000",
71
+ "cir": "100"
72
+ },
73
+ "adaptation-rule": {
74
+ "pir": "max",
75
+ "cir": "min"
76
+ },
77
+ "queue-type": "expedited"
78
+ },
79
+ {
80
+ "queue-id": 4,
81
+ "rate": {
82
+ "pir": "1000",
83
+ "cir": "100"
84
+ },
85
+ "adaptation-rule": {
86
+ "pir": "max",
87
+ "cir": "min"
88
+ },
89
+ "queue-type": "expedited"
90
+ },
91
+ {
92
+ "queue-id": 5,
93
+ "rate": {
94
+ "pir": "1000",
95
+ "cir": "100"
96
+ },
97
+ "adaptation-rule": {
98
+ "pir": "max",
99
+ "cir": "min"
100
+ },
101
+ "queue-type": "expedited"
102
+ },
103
+ {
104
+ "queue-id": 6,
105
+ "rate": {
106
+ "pir": "1000",
107
+ "cir": "100"
108
+ },
109
+ "adaptation-rule": {
110
+ "pir": "max",
111
+ "cir": "min"
112
+ },
113
+ "queue-type": "expedited"
114
+ },
115
+ {
116
+ "queue-id": 7,
117
+ "rate": {
118
+ "pir": "1000",
119
+ "cir": "100"
120
+ },
121
+ "adaptation-rule": {
122
+ "pir": "max",
123
+ "cir": "min"
124
+ },
125
+ "queue-type": "expedited"
126
+ },
127
+ {
128
+ "queue-id": 8,
129
+ "rate": {
130
+ "pir": "1000",
131
+ "cir": "100"
132
+ },
133
+ "adaptation-rule": {
134
+ "pir": "max",
135
+ "cir": "min"
136
+ },
137
+ "queue-type": "expedited"
138
+ }
139
+ ]
140
+ }
141
+ ],
142
+ "sap-ingress": [
143
+ {
144
+ "ip-criteria": {
145
+ "entry": [
146
+ {
147
+ "entry-id": 10,
148
+ "match": {
149
+ "protocol": "tcp"
150
+ },
151
+ "action": {
152
+ "fc": "af"
153
+ }
154
+ }
155
+ ]
156
+ },
157
+ "description": "Ingress QoS 1",
158
+ "sap-ingress-policy-name": "Ingress3",
159
+ "policy-id": 3,
160
+ "fc": [
161
+ {
162
+ "fc-name": "af",
163
+ "queue": 3
164
+ },
165
+ {
166
+ "fc-name": "be",
167
+ "queue": 3
168
+ },
169
+ {
170
+ "fc-name": "ef",
171
+ "queue": 3
172
+ },
173
+ {
174
+ "fc-name": "h1",
175
+ "queue": 3
176
+ },
177
+ {
178
+ "fc-name": "h2",
179
+ "queue": 5
180
+ },
181
+ {
182
+ "fc-name": "l1",
183
+ "queue": 4
184
+ },
185
+ {
186
+ "fc-name": "l2",
187
+ "queue": 2
188
+ },
189
+ {
190
+ "fc-name": "nc",
191
+ "queue": 3
192
+ }
193
+ ],
194
+ "queue": [
195
+ {
196
+ "queue-id": 1,
197
+ "rate": {
198
+ "pir": "1000",
199
+ "cir": "100"
200
+ },
201
+ "adaptation-rule": {
202
+ "pir": "max",
203
+ "cir": "min"
204
+ },
205
+ "queue-type": "auto-expedited"
206
+ },
207
+ {
208
+ "queue-id": 2,
209
+ "rate": {
210
+ "pir": "1000",
211
+ "cir": "100"
212
+ },
213
+ "adaptation-rule": {
214
+ "pir": "max",
215
+ "cir": "min"
216
+ },
217
+ "queue-type": "expedited"
218
+ },
219
+ {
220
+ "queue-id": 3,
221
+ "rate": {
222
+ "pir": "1000",
223
+ "cir": "100"
224
+ },
225
+ "adaptation-rule": {
226
+ "pir": "max",
227
+ "cir": "min"
228
+ },
229
+ "queue-type": "expedited"
230
+ },
231
+ {
232
+ "queue-id": 4,
233
+ "rate": {
234
+ "pir": "1000",
235
+ "cir": "100"
236
+ },
237
+ "adaptation-rule": {
238
+ "pir": "max",
239
+ "cir": "min"
240
+ },
241
+ "queue-type": "expedited"
242
+ },
243
+ {
244
+ "queue-id": 5,
245
+ "rate": {
246
+ "pir": "1000",
247
+ "cir": "100"
248
+ },
249
+ "adaptation-rule": {
250
+ "pir": "max",
251
+ "cir": "min"
252
+ },
253
+ "queue-type": "expedited"
254
+ },
255
+ {
256
+ "queue-id": 6,
257
+ "rate": {
258
+ "pir": "1000",
259
+ "cir": "100"
260
+ },
261
+ "adaptation-rule": {
262
+ "pir": "max",
263
+ "cir": "min"
264
+ },
265
+ "queue-type": "expedited"
266
+ },
267
+ {
268
+ "queue-id": 7,
269
+ "rate": {
270
+ "pir": "1000",
271
+ "cir": "100"
272
+ },
273
+ "adaptation-rule": {
274
+ "pir": "max",
275
+ "cir": "min"
276
+ },
277
+ "queue-type": "expedited"
278
+ },
279
+ {
280
+ "queue-id": 8,
281
+ "rate": {
282
+ "pir": "1000",
283
+ "cir": "100"
284
+ },
285
+ "adaptation-rule": {
286
+ "pir": "max",
287
+ "cir": "min"
288
+ },
289
+ "queue-type": "expedited"
290
+ }
291
+ ]
292
+ }
293
+ ]
294
+ }
295
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getQoS",
12
+ "enum": [
13
+ "getQoS",
14
+ "createQOSPolicy",
15
+ "getQOSSAPEgressPolicy",
16
+ "editQOSPolicy"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "networkDevice": {
21
+ "type": "string",
22
+ "description": "",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "network-device"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "fieldquerytoselectmultiplefieldsunderthetargetresource",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:/configure/port?{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/fieldquerytoselectmultiplefieldsunderthetargetresource-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "fieldquerywithsubSelectorsofanodeunderthetargetresource",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/restconf/data/network-device-mgr:network-devices/{pathv1}/root/nokia-conf:/configure/{pathv2}?{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": "mockdatafiles/fieldquerywithsubSelectorsofanodeunderthetargetresource-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "fieldquerytoretrieveasinglechildnodeunderthetargetresource",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/restconf/meta/api/v1/model/schema/{pathv1}/{pathv2}/nokia-conf:/configure/filter?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": "mockdatafiles/fieldquerytoretrieveasinglechildnodeunderthetargetresource-default.json"
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "nokia-conf:port": [
3
+ {
4
+ "ethernet": {
5
+ "lldp": {
6
+ "dest-mac": [
7
+ {
8
+ "mac-type": "nearest-bridge",
9
+ "tx-tlvs": {
10
+ "sys-cap": true,
11
+ "port-desc": true,
12
+ "sys-desc": true,
13
+ "sys-name": true
14
+ }
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ "port-id": "1/1/1"
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "nokia-conf:port": [
3
+ {
4
+ "port-id": "1/1/1",
5
+ "admin-state": "enable"
6
+ },
7
+ {
8
+ "port-id": "1/1/9",
9
+ "admin-state": "enable"
10
+ },
11
+ {
12
+ "port-id": "1/1/10",
13
+ "admin-state": "enable"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "nokia-conf:card": [
3
+ {
4
+ "slot-number": "1",
5
+ "mda": [
6
+ {
7
+ "mda-slot": 1,
8
+ "mda-type": "m60-10/100eth-tx"
9
+ },
10
+ {
11
+ "mda-slot": 2,
12
+ "mda-type": "m10-1gb+1-10gb"
13
+ }
14
+ ]
15
+ }
16
+ ]
17
+ }