@itentialopensource/adapter-viptela 0.13.0 → 0.14.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## 0.14.1 [02-21-2024]
3
+
4
+ * changes for broker calls
5
+
6
+ See merge request itentialopensource/adapters/sd-wan/adapter-viptela!36
7
+
8
+ ---
9
+
10
+ ## 0.14.0 [12-14-2023]
11
+
12
+ * More migration changes
13
+
14
+ See merge request itentialopensource/adapters/sd-wan/adapter-viptela!35
15
+
16
+ ---
17
+
2
18
  ## 0.13.0 [11-06-2023]
3
19
 
4
20
  * More migration changes
package/metadata.json CHANGED
@@ -34,15 +34,33 @@
34
34
  "isDeprecated": false
35
35
  },
36
36
  "brokerSince": "0.11.0",
37
+ "authMethods": [
38
+ {
39
+ "type": "Complex",
40
+ "subtypes": [
41
+ "Basic Auth",
42
+ "Cookie",
43
+ "OAuth"
44
+ ],
45
+ "primary": true
46
+ }
47
+ ],
37
48
  "documentation": {
38
49
  "storeLink": "",
39
50
  "npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-viptela",
40
51
  "repoLink": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-viptela",
41
52
  "docLink": "https://docs.itential.com/opensource/docs/cisco-viptela",
42
53
  "demoLinks": [
43
- "https://www.itential.com/industries/communications-service-providers/sdwan-network-automation/",
44
- "https://www.itential.com/solutions/sdwan-automation-orchestration/"
54
+ {
55
+ "title": "Itential SD-WAN Network Automation Solution",
56
+ "link": "https://www.itential.com/industries/communications-service-providers/sdwan-network-automation/"
57
+ },
58
+ {
59
+ "title": "Multi-Vendor SD-WAN",
60
+ "link": "https://www.itential.com/solutions/sdwan-automation-orchestration/"
61
+ }
45
62
  ],
63
+ "trainingLinks": [],
46
64
  "faqLink": "https://docs.itential.com/opensource/docs/troubleshooting-an-adapter",
47
65
  "contributeLink": "https://gitlab.com/itentialopensource/adapters/contributing-guide",
48
66
  "issueLink": "https://itential.atlassian.net/servicedesk/customer/portals",
@@ -50,7 +68,10 @@
50
68
  "vendorLink": "https://www.cisco.com/",
51
69
  "productLink": "https://www.cisco.com/c/en/us/services/acquisitions/viptela.html",
52
70
  "apiLinks": [
53
- "https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-12"
71
+ {
72
+ "title": "Cisco SD-WAN vManage API",
73
+ "link": "https://developer.cisco.com/docs/sdwan/#!sd-wan-vmanage-v20-12"
74
+ }
54
75
  ]
55
76
  },
56
77
  "assets": [],
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-viptela",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "This adapter integrates with system Viptela",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Viptela",
7
7
  "wizardVersion": "2.44.7",
8
- "engineVersion": "1.67.10",
8
+ "engineVersion": "1.67.14",
9
9
  "adapterType": "http",
10
10
  "scripts": {
11
11
  "artifactize": "npm i && node utils/packModificationScript.js",
@@ -44,7 +44,7 @@
44
44
  ],
45
45
  "license": "Apache-2.0",
46
46
  "engines": {
47
- "node": ">= 8.0.0",
47
+ "node": ">= 14.0.0",
48
48
  "npm": ">= 6.0.0"
49
49
  },
50
50
  "repository": {
@@ -54,10 +54,10 @@
54
54
  "author": "Itential",
55
55
  "homepage": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-viptela#readme",
56
56
  "dependencies": {
57
- "@itentialopensource/adapter-utils": "^5.3.0",
57
+ "@itentialopensource/adapter-utils": "^5.3.8",
58
58
  "acorn": "^8.10.0",
59
59
  "ajv": "^8.12.0",
60
- "axios": "^1.4.0",
60
+ "axios": "^1.6.7",
61
61
  "commander": "^11.0.0",
62
62
  "dns-lookup-promise": "^1.0.4",
63
63
  "fs-extra": "^11.1.1",
@@ -945,6 +945,11 @@
945
945
  "devicebroker": {
946
946
  "type": "object",
947
947
  "properties": {
948
+ "enabled": {
949
+ "type": "boolean",
950
+ "description": "Whether or not the device broker calls have been mapped",
951
+ "default": false
952
+ },
948
953
  "getDevice": {
949
954
  "type": "array",
950
955
  "description": "Broker call(s) to getDevice",
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.12.3",
3
- "configLines": 21553,
2
+ "version": "0.14.0",
3
+ "configLines": 21558,
4
4
  "scriptLines": 1783,
5
5
  "codeLines": 45621,
6
6
  "testLines": 28255,
@@ -122,6 +122,7 @@
122
122
  }
123
123
  },
124
124
  "devicebroker": {
125
+ "enabled": true,
125
126
  "getDevice": [
126
127
  {
127
128
  "path": "/device",
@@ -130,13 +131,14 @@
130
131
  "body": {},
131
132
  "headers": {},
132
133
  "handleFailure": "ignore",
134
+ "requestFields": {},
133
135
  "responseDatakey": "data",
134
136
  "responseFields": {
135
- "name": "host-name",
136
- "ostype": "device-type",
137
+ "name": "{host-name}",
138
+ "ostype": "{device-type}",
137
139
  "ostypePrefix": "viptela-",
138
- "port": "platform",
139
- "ipaddress": "system-ip"
140
+ "port": "{platform}",
141
+ "ipaddress": "{system-ip}"
140
142
  }
141
143
  }
142
144
  ],
@@ -154,14 +156,15 @@
154
156
  "body": {},
155
157
  "headers": {},
156
158
  "handleFailure": "ignore",
159
+ "requestFields": {},
157
160
  "responseDatakey": "data",
158
161
  "responseFields": {
159
- "name": "host-name",
160
- "ostype": "device-type",
162
+ "name": "{host-name}",
163
+ "ostype": "{device-type}",
161
164
  "ostypePrefix": "viptela-",
162
- "port": "platform",
163
- "ipaddress": "system-ip",
164
- "id": "deviceId"
165
+ "port": "{platform}",
166
+ "ipaddress": "{system-ip}",
167
+ "id": "{deviceId}"
165
168
  }
166
169
  }
167
170
  ],
@@ -172,11 +175,11 @@
172
175
  "query": {},
173
176
  "body": {},
174
177
  "headers": {},
178
+ "handleFailure": "ignore",
175
179
  "requestFields": {},
176
180
  "responseDatakey": "data",
177
- "handleFailure": "ignore",
178
181
  "responseFields": {
179
- "status": "reachability",
182
+ "status": "{reachability}",
180
183
  "statusValue": "reachable"
181
184
  }
182
185
  }
@@ -186,29 +189,30 @@
186
189
  "path": "/device/config",
187
190
  "method": "GET",
188
191
  "query": {
189
- "deviceId": "ipaddress"
192
+ "deviceId": "{id}"
190
193
  },
191
194
  "body": {},
192
195
  "headers": {
193
- "Accept": "/"
196
+ "Accept": "*/*"
194
197
  },
198
+ "handleFailure": "ignore",
195
199
  "requestFields": {
196
- "ipaddress": "ipaddress"
200
+ "id": "{id}"
197
201
  },
198
- "handleFailure": "ignore",
202
+ "responseDatakey": "",
199
203
  "responseFields": {}
200
204
  }
201
205
  ],
202
206
  "getCount": [
203
207
  {
204
- "path": "/device/counters",
208
+ "path": "/device",
205
209
  "method": "GET",
206
210
  "query": {},
207
211
  "body": {},
208
212
  "headers": {},
213
+ "handleFailure": "ignore",
209
214
  "requestFields": {},
210
215
  "responseDatakey": "data",
211
- "handleFailure": "ignore",
212
216
  "responseFields": {}
213
217
  }
214
218
  ]
@@ -237,13 +241,15 @@
237
241
  "body": {},
238
242
  "headers": {},
239
243
  "handleFailure": "ignore",
244
+ "requestFields": {},
240
245
  "responseDatakey": "data",
241
246
  "responseFields": {
242
- "host-name": "host-name",
243
- "device-type": "device-type",
244
- "platform": "platform",
245
- "system-ip": "system-ip",
246
- "deviceId": "deviceId"
247
+ "name": "{host-name}",
248
+ "ostype": "{device-type}",
249
+ "ostypePrefix": "viptela-",
250
+ "port": "{platform}",
251
+ "ipaddress": "{system-ip}",
252
+ "id": "{deviceId}"
247
253
  }
248
254
  }
249
255
  ],
@@ -316,7 +316,7 @@ describe('[unit] Viptela 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.4.0', packageDotJson.dependencies.axios);
319
+ assert.equal('^1.6.7', 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);
@@ -563,7 +563,7 @@ describe('[unit] Viptela Adapter Test', () => {
563
563
  log.error(`Adapter Exception: ${error}`);
564
564
  done(error);
565
565
  }
566
- });
566
+ }).timeout(attemptTimeout);
567
567
  });
568
568
 
569
569
  describe('propertiesSchema.json', () => {