@itentialopensource/adapter-meraki 1.4.0 → 1.4.2
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.
- package/CHANGELOG.md +16 -0
- package/metadata.json +1 -0
- package/package.json +2 -2
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +1 -1
- package/sampleProperties.json +32 -39
- package/test/unit/adapterTestUnit.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 1.4.2 [12-24-2023]
|
|
3
|
+
|
|
4
|
+
* update metadata
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/sd-wan/adapter-meraki!36
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 1.4.1 [12-20-2023]
|
|
11
|
+
|
|
12
|
+
* add keys to broker config, update axios
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/sd-wan/adapter-meraki!35
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 1.4.0 [12-14-2023]
|
|
3
19
|
|
|
4
20
|
* More migration changes
|
package/metadata.json
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"https://www.itential.com/automations/sd-wan-branch-management/",
|
|
50
50
|
"https://www.itential.com/solutions/sdwan-automation-orchestration/"
|
|
51
51
|
],
|
|
52
|
+
"trainingLinks": [],
|
|
52
53
|
"faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
|
|
53
54
|
"contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
|
|
54
55
|
"issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-meraki",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "This adapter integrates with system described as: merakiDashboardApi.",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Meraki",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@itentialopensource/adapter-utils": "^5.3.0",
|
|
58
58
|
"acorn": "^8.10.0",
|
|
59
59
|
"ajv": "^8.12.0",
|
|
60
|
-
"axios": "^1.
|
|
60
|
+
"axios": "^1.6.2",
|
|
61
61
|
"commander": "^11.0.0",
|
|
62
62
|
"dns-lookup-promise": "^1.0.4",
|
|
63
63
|
"fs-extra": "^11.1.1",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
package/sampleProperties.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"save_metric": false,
|
|
14
14
|
"stub": true,
|
|
15
15
|
"protocol": "https",
|
|
16
|
+
"orgID": "1076949",
|
|
16
17
|
"authentication": {
|
|
17
18
|
"auth_method": "static_token",
|
|
18
19
|
"username": "username",
|
|
@@ -21,8 +22,8 @@
|
|
|
21
22
|
"token_timeout": 1800000,
|
|
22
23
|
"token_cache": "local",
|
|
23
24
|
"invalid_token_error": 401,
|
|
24
|
-
"auth_field": "header.headers.
|
|
25
|
-
"auth_field_format": "{token}",
|
|
25
|
+
"auth_field": "header.headers.Authorization",
|
|
26
|
+
"auth_field_format": "Bearer {token}",
|
|
26
27
|
"auth_logging": false,
|
|
27
28
|
"client_id": "",
|
|
28
29
|
"client_secret": "",
|
|
@@ -116,27 +117,24 @@
|
|
|
116
117
|
"devicebroker": {
|
|
117
118
|
"getDevice": [
|
|
118
119
|
{
|
|
119
|
-
"path": "/organizations/{orgID}/devices",
|
|
120
|
+
"path": "/organizations/{orgID}/networks/{networkId}/devices/{serial}",
|
|
120
121
|
"method": "GET",
|
|
121
|
-
"query": {
|
|
122
|
-
"networkID": "networkID",
|
|
123
|
-
"serial": "serial"
|
|
124
|
-
},
|
|
122
|
+
"query": {},
|
|
125
123
|
"body": {},
|
|
126
124
|
"headers": {},
|
|
127
125
|
"handleFailure": "ignore",
|
|
128
126
|
"requestFields": {
|
|
129
|
-
"networkID": "port",
|
|
130
|
-
"serial": "
|
|
131
|
-
"orgID": "orgID"
|
|
127
|
+
"networkID": "{port}",
|
|
128
|
+
"serial": "{serial}"
|
|
132
129
|
},
|
|
133
130
|
"responseDatakey": "",
|
|
134
131
|
"responseFields": {
|
|
135
|
-
"name": "serial",
|
|
136
|
-
"ostype": "model",
|
|
132
|
+
"name": "{name}{||}{serial}",
|
|
133
|
+
"ostype": "{model}",
|
|
137
134
|
"ostypePrefix": "meraki-",
|
|
138
|
-
"port": "networkId",
|
|
139
|
-
"ipaddress": "mac"
|
|
135
|
+
"port": "{networkId}",
|
|
136
|
+
"ipaddress": "{mac}",
|
|
137
|
+
"serial" : "{serial}"
|
|
140
138
|
}
|
|
141
139
|
}
|
|
142
140
|
],
|
|
@@ -154,17 +152,16 @@
|
|
|
154
152
|
"body": {},
|
|
155
153
|
"headers": {},
|
|
156
154
|
"handleFailure": "ignore",
|
|
157
|
-
"requestFields": {
|
|
158
|
-
"orgID": "1076949"
|
|
159
|
-
},
|
|
155
|
+
"requestFields": {},
|
|
160
156
|
"responseDatakey": "",
|
|
161
157
|
"responseFields": {
|
|
162
|
-
"name": "serial",
|
|
163
|
-
"ostype": "model",
|
|
158
|
+
"name": "{name}{||}{serial}",
|
|
159
|
+
"ostype": "{model}",
|
|
164
160
|
"ostypePrefix": "meraki-",
|
|
165
|
-
"port": "networkId",
|
|
166
|
-
"ipaddress": "mac",
|
|
167
|
-
"
|
|
161
|
+
"port": "{networkId}",
|
|
162
|
+
"ipaddress": "{mac}",
|
|
163
|
+
"serial" : "{serial}",
|
|
164
|
+
"orgID": "{orgID}"
|
|
168
165
|
}
|
|
169
166
|
}
|
|
170
167
|
],
|
|
@@ -177,9 +174,8 @@
|
|
|
177
174
|
"headers": {},
|
|
178
175
|
"handleFailure": "ignore",
|
|
179
176
|
"requestFields": {
|
|
180
|
-
"networkID": "port",
|
|
181
|
-
"serial": "
|
|
182
|
-
"orgID": "orgID"
|
|
177
|
+
"networkID": "{port}",
|
|
178
|
+
"serial": "{serial}"
|
|
183
179
|
},
|
|
184
180
|
"responseDatakey": "",
|
|
185
181
|
"responseFields": {
|
|
@@ -197,9 +193,8 @@
|
|
|
197
193
|
"headers": {},
|
|
198
194
|
"handleFailure": "ignore",
|
|
199
195
|
"requestFields": {
|
|
200
|
-
"networkID": "port",
|
|
201
|
-
"serial": "
|
|
202
|
-
"orgID": "orgID"
|
|
196
|
+
"networkID": "{port}",
|
|
197
|
+
"serial": "{serial}"
|
|
203
198
|
},
|
|
204
199
|
"responseDatakey": "",
|
|
205
200
|
"responseFields": {}
|
|
@@ -213,9 +208,7 @@
|
|
|
213
208
|
"body": {},
|
|
214
209
|
"headers": {},
|
|
215
210
|
"handleFailure": "ignore",
|
|
216
|
-
"requestFields": {
|
|
217
|
-
"orgID": "1076949"
|
|
218
|
-
},
|
|
211
|
+
"requestFields": {},
|
|
219
212
|
"responseDatakey": "",
|
|
220
213
|
"responseFields": {}
|
|
221
214
|
}
|
|
@@ -245,16 +238,16 @@
|
|
|
245
238
|
"body": {},
|
|
246
239
|
"headers": {},
|
|
247
240
|
"handleFailure": "ignore",
|
|
248
|
-
"requestFields": {
|
|
249
|
-
"orgID": "1076949"
|
|
250
|
-
},
|
|
241
|
+
"requestFields": {},
|
|
251
242
|
"responseDatakey": "",
|
|
252
243
|
"responseFields": {
|
|
253
|
-
"
|
|
254
|
-
"
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
244
|
+
"name": "{name}{||}{serial}",
|
|
245
|
+
"ostype": "{model}",
|
|
246
|
+
"ostypePrefix": "meraki-",
|
|
247
|
+
"port": "{networkId}",
|
|
248
|
+
"ipaddress": "{mac}",
|
|
249
|
+
"serial" : "{serial}",
|
|
250
|
+
"orgID": "{orgID}"
|
|
258
251
|
}
|
|
259
252
|
}
|
|
260
253
|
],
|
|
@@ -316,7 +316,7 @@ describe('[unit] Meraki Adapter Test', () => {
|
|
|
316
316
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
317
317
|
assert.notEqual('', packageDotJson.dependencies);
|
|
318
318
|
assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
|
|
319
|
-
assert.equal('^1.
|
|
319
|
+
assert.equal('^1.6.2', packageDotJson.dependencies.axios);
|
|
320
320
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
321
321
|
assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
|
|
322
322
|
assert.equal('^10.2.0', packageDotJson.dependencies.mocha);
|