@itentialopensource/adapter-viptela 0.14.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 +8 -0
- package/metadata.json +24 -3
- package/package.json +5 -5
- package/propertiesSchema.json +5 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +2 -2
- package/sampleProperties.json +28 -22
- package/test/unit/adapterTestUnit.js +2 -2
package/CHANGELOG.md
CHANGED
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
|
-
|
|
44
|
-
|
|
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
|
-
|
|
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.14.
|
|
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.
|
|
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": ">=
|
|
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.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.3.8",
|
|
58
58
|
"acorn": "^8.10.0",
|
|
59
59
|
"ajv": "^8.12.0",
|
|
60
|
-
"axios": "^1.
|
|
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",
|
package/propertiesSchema.json
CHANGED
|
@@ -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
|
package/report/adapterInfo.json
CHANGED
package/sampleProperties.json
CHANGED
|
@@ -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": "
|
|
192
|
+
"deviceId": "{id}"
|
|
190
193
|
},
|
|
191
194
|
"body": {},
|
|
192
195
|
"headers": {
|
|
193
|
-
"Accept": "
|
|
196
|
+
"Accept": "*/*"
|
|
194
197
|
},
|
|
198
|
+
"handleFailure": "ignore",
|
|
195
199
|
"requestFields": {
|
|
196
|
-
"
|
|
200
|
+
"id": "{id}"
|
|
197
201
|
},
|
|
198
|
-
"
|
|
202
|
+
"responseDatakey": "",
|
|
199
203
|
"responseFields": {}
|
|
200
204
|
}
|
|
201
205
|
],
|
|
202
206
|
"getCount": [
|
|
203
207
|
{
|
|
204
|
-
"path": "/device
|
|
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
|
-
"
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
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.
|
|
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', () => {
|