@itentialopensource/adapter-dna_center 0.11.2 → 0.11.4
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/TAB2.md +3 -3
- package/metadata.json +5 -5
- package/package.json +4 -4
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +4 -4
- package/sampleProperties.json +6 -6
- package/test/integration/adapterTestConnectivity.js +0 -24
- package/test/integration/adapterTestIntegration.js +21 -17
- package/test/unit/adapterTestUnit.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.11.4 [08-25-2024]
|
|
3
|
+
|
|
4
|
+
* fix vulnerabilities
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-dna_center!29
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.11.3 [08-25-2024]
|
|
11
|
+
|
|
12
|
+
* update dependencies and metadata
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-dna_center!28
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.11.2 [08-15-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.14_19:53PM
|
package/TAB2.md
CHANGED
|
@@ -64,9 +64,9 @@ Sample Properties can be used to help you configure the adapter in the Itential
|
|
|
64
64
|
"protocol": "https",
|
|
65
65
|
"authentication": {
|
|
66
66
|
"auth_method": "request_token",
|
|
67
|
-
"username": "
|
|
68
|
-
"password": "
|
|
69
|
-
"token": "",
|
|
67
|
+
"username": "username",
|
|
68
|
+
"password": "password",
|
|
69
|
+
"token": "token",
|
|
70
70
|
"token_timeout": 180000,
|
|
71
71
|
"token_cache": "local",
|
|
72
72
|
"invalid_token_error": 401,
|
package/metadata.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapter-dna_center",
|
|
3
3
|
"webName": "Adapter for Integration to Cisco DNA Center",
|
|
4
|
+
"supportLevel": "community",
|
|
4
5
|
"vendor": "Cisco Systems",
|
|
5
6
|
"product": "DNA Center",
|
|
7
|
+
"techAlliance": false,
|
|
6
8
|
"osVersion": [],
|
|
7
9
|
"apiVersions": [],
|
|
8
10
|
"iapVersions": [
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
"Determine configuration drift",
|
|
30
32
|
"Golden Configuration",
|
|
31
33
|
"Port/VLAN Configuration",
|
|
32
|
-
"EVPN &
|
|
34
|
+
"EVPN & VXLAN",
|
|
33
35
|
"Port Turn-up",
|
|
34
36
|
"Assign Network & IP",
|
|
35
37
|
"Cloud Managed Networks",
|
|
@@ -49,7 +51,7 @@
|
|
|
49
51
|
"storeLink": "",
|
|
50
52
|
"npmLink": "https://www.npmjs.com/package/@itentialopensource/adapter-dna_center",
|
|
51
53
|
"repoLink": "https://gitlab.com/itentialopensource/adapters/adapter-dna_center",
|
|
52
|
-
"docLink": "https://
|
|
54
|
+
"docLink": "https://gitlab.com/itentialopensource/adapters/adapter-dna_center/-/blob/master/README.md?ref_type=heads",
|
|
53
55
|
"demoLinks": [
|
|
54
56
|
{
|
|
55
57
|
"title": "Itential Expands Multi-Domain Automation Capabilities with Latest integrations Across Cisco Powered SD-WAN, Cloud, and Data Center Networks",
|
|
@@ -86,7 +88,5 @@
|
|
|
86
88
|
"workflowProjects": [],
|
|
87
89
|
"transformationProjects": [],
|
|
88
90
|
"exampleProjects": []
|
|
89
|
-
}
|
|
90
|
-
"supportLevel": "community",
|
|
91
|
-
"techAlliance": false
|
|
91
|
+
}
|
|
92
92
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-dna_center",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "This adapter integrates with system Dna_center",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"systemName": "Cisco DNA Center",
|
|
7
7
|
"wizardVersion": "2.44.7",
|
|
8
|
-
"engineVersion": "1.
|
|
8
|
+
"engineVersion": "1.68.2",
|
|
9
9
|
"adapterType": "http",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"artifactize": "npm i && node utils/packModificationScript.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"author": "Itential",
|
|
55
55
|
"homepage": "https://gitlab.com/itentialopensource/adapters/adapter-dna_center#readme",
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@itentialopensource/adapter-utils": "^5.
|
|
57
|
+
"@itentialopensource/adapter-utils": "^5.7.0",
|
|
58
58
|
"acorn": "^8.12.1",
|
|
59
59
|
"ajv": "^8.17.1",
|
|
60
60
|
"axios": "^1.7.4",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"prompts": "^2.4.2",
|
|
70
70
|
"readline-sync": "^1.4.10",
|
|
71
71
|
"semver": "^7.6.3",
|
|
72
|
-
"winston": "^3.
|
|
72
|
+
"winston": "^3.14.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"chai": "^4.3.7",
|
|
Binary file
|
package/report/adapterInfo.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.11.3",
|
|
3
3
|
"configLines": 28949,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 44128,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 39641,
|
|
7
|
+
"testCases": 1703,
|
|
8
|
+
"totalCodeLines": 85552,
|
|
9
9
|
"wfTasks": 530
|
|
10
10
|
}
|
package/sampleProperties.json
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"protocol": "https",
|
|
16
16
|
"authentication": {
|
|
17
17
|
"auth_method": "request_token",
|
|
18
|
-
"username": "
|
|
19
|
-
"password": "
|
|
20
|
-
"token": "",
|
|
18
|
+
"username": "username",
|
|
19
|
+
"password": "password",
|
|
20
|
+
"token": "token",
|
|
21
21
|
"token_timeout": 180000,
|
|
22
22
|
"token_cache": "local",
|
|
23
23
|
"invalid_token_error": 401,
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"ostypePrefix": "meraki-",
|
|
134
134
|
"port": "{port}",
|
|
135
135
|
"ipaddress": "{ip_addr}",
|
|
136
|
-
"serial"
|
|
136
|
+
"serial": "{serial}"
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
],
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"ostypePrefix": "meraki-",
|
|
160
160
|
"port": "{port}",
|
|
161
161
|
"ipaddress": "{ip_addr}",
|
|
162
|
-
"serial"
|
|
162
|
+
"serial": "{serial}",
|
|
163
163
|
"id": "{myid}"
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"ostypePrefix": "meraki-",
|
|
244
244
|
"port": "{port}",
|
|
245
245
|
"ipaddress": "{ip_addr}",
|
|
246
|
-
"serial"
|
|
246
|
+
"serial": "{serial}",
|
|
247
247
|
"id": "{myid}"
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/* eslint no-unused-vars: warn */
|
|
5
5
|
|
|
6
6
|
const assert = require('assert');
|
|
7
|
-
const http = require('http');
|
|
8
7
|
const https = require('https');
|
|
9
8
|
const mocha = require('mocha');
|
|
10
9
|
const ping = require('ping');
|
|
@@ -53,29 +52,6 @@ describe('[integration] Adapter Test', () => {
|
|
|
53
52
|
});
|
|
54
53
|
});
|
|
55
54
|
|
|
56
|
-
it('Support HTTP on port 80', (done) => {
|
|
57
|
-
const requestOptions = {
|
|
58
|
-
host,
|
|
59
|
-
port: 80,
|
|
60
|
-
method: 'HEAD'
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
const req = http.request(requestOptions, (res) => {
|
|
64
|
-
try {
|
|
65
|
-
assert.ok(res.statusCode >= 200 && res.statusCode < 400);
|
|
66
|
-
done();
|
|
67
|
-
} catch (error) {
|
|
68
|
-
done(error);
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
req.on('error', (err) => {
|
|
73
|
-
done(err);
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
req.end();
|
|
77
|
-
});
|
|
78
|
-
|
|
79
55
|
it('Support HTTPS on port 443', (done) => {
|
|
80
56
|
const requestOptions = {
|
|
81
57
|
host,
|
|
@@ -36,13 +36,17 @@ const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
|
|
|
36
36
|
// these variables can be changed to run in integrated mode so easier to set them here
|
|
37
37
|
// always check these in with bogus data!!!
|
|
38
38
|
samProps.stub = true;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
samProps.
|
|
42
|
-
samProps.
|
|
43
|
-
samProps.
|
|
44
|
-
samProps.
|
|
45
|
-
samProps.
|
|
39
|
+
|
|
40
|
+
// uncomment if connecting
|
|
41
|
+
// samProps.host = 'replace.hostorip.here';
|
|
42
|
+
// samProps.authentication.username = 'username';
|
|
43
|
+
// samProps.authentication.password = 'password';
|
|
44
|
+
// samProps.authentication.token = 'password';
|
|
45
|
+
// samProps.protocol = 'http';
|
|
46
|
+
// samProps.port = 80;
|
|
47
|
+
// samProps.ssl.enabled = false;
|
|
48
|
+
// samProps.ssl.accept_invalid_cert = false;
|
|
49
|
+
|
|
46
50
|
if (samProps.request.attempt_timeout < 30000) {
|
|
47
51
|
samProps.request.attempt_timeout = 30000;
|
|
48
52
|
}
|
|
@@ -17228,7 +17232,7 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17228
17232
|
protocol: 'RADIUS_TACACS',
|
|
17229
17233
|
retries: 'string',
|
|
17230
17234
|
role: 'string',
|
|
17231
|
-
sharedSecret:
|
|
17235
|
+
sharedSecret: samProps.authentication.password,
|
|
17232
17236
|
timeoutSeconds: 'string',
|
|
17233
17237
|
encryptionScheme: 'KEYWRAP',
|
|
17234
17238
|
messageKey: 'string',
|
|
@@ -17395,7 +17399,7 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17395
17399
|
protocol: 'RADIUS',
|
|
17396
17400
|
retries: 'string',
|
|
17397
17401
|
role: 'string',
|
|
17398
|
-
sharedSecret:
|
|
17402
|
+
sharedSecret: samProps.authentication.password,
|
|
17399
17403
|
timeoutSeconds: 'string',
|
|
17400
17404
|
encryptionScheme: 'KEYWRAP',
|
|
17401
17405
|
messageKey: 'string',
|
|
@@ -17846,14 +17850,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17846
17850
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
17847
17851
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
17848
17852
|
protocol: 'string',
|
|
17849
|
-
sharedSecret:
|
|
17853
|
+
sharedSecret: samProps.authentication.password
|
|
17850
17854
|
},
|
|
17851
17855
|
clientAndEndpoint_aaa: {
|
|
17852
17856
|
servers: 'string',
|
|
17853
17857
|
ipAddress: 'Mandatory for ISE servers.',
|
|
17854
17858
|
network: 'string',
|
|
17855
17859
|
protocol: 'string',
|
|
17856
|
-
sharedSecret:
|
|
17860
|
+
sharedSecret: samProps.authentication.password
|
|
17857
17861
|
}
|
|
17858
17862
|
}
|
|
17859
17863
|
};
|
|
@@ -17921,14 +17925,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17921
17925
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
17922
17926
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
17923
17927
|
protocol: 'string',
|
|
17924
|
-
sharedSecret:
|
|
17928
|
+
sharedSecret: samProps.authentication.password
|
|
17925
17929
|
},
|
|
17926
17930
|
clientAndEndpoint_aaa: {
|
|
17927
17931
|
servers: 'string',
|
|
17928
17932
|
ipAddress: 'Mandatory for ISE servers.',
|
|
17929
17933
|
network: 'string',
|
|
17930
17934
|
protocol: 'string',
|
|
17931
|
-
sharedSecret:
|
|
17935
|
+
sharedSecret: samProps.authentication.password
|
|
17932
17936
|
}
|
|
17933
17937
|
}
|
|
17934
17938
|
};
|
|
@@ -18637,14 +18641,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
18637
18641
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
18638
18642
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
18639
18643
|
protocol: 'string',
|
|
18640
|
-
sharedSecret:
|
|
18644
|
+
sharedSecret: samProps.authentication.password
|
|
18641
18645
|
},
|
|
18642
18646
|
clientAndEndpoint_aaa: {
|
|
18643
18647
|
servers: 'string',
|
|
18644
18648
|
ipAddress: 'Mandatory for ISE servers.',
|
|
18645
18649
|
network: 'string',
|
|
18646
18650
|
protocol: 'string',
|
|
18647
|
-
sharedSecret:
|
|
18651
|
+
sharedSecret: samProps.authentication.password
|
|
18648
18652
|
}
|
|
18649
18653
|
}
|
|
18650
18654
|
};
|
|
@@ -18712,14 +18716,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
18712
18716
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
18713
18717
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
18714
18718
|
protocol: 'string',
|
|
18715
|
-
sharedSecret:
|
|
18719
|
+
sharedSecret: samProps.authentication.password
|
|
18716
18720
|
},
|
|
18717
18721
|
clientAndEndpoint_aaa: {
|
|
18718
18722
|
servers: 'string',
|
|
18719
18723
|
ipAddress: 'Mandatory for ISE servers.',
|
|
18720
18724
|
network: 'string',
|
|
18721
18725
|
protocol: 'string',
|
|
18722
|
-
sharedSecret:
|
|
18726
|
+
sharedSecret: samProps.authentication.password
|
|
18723
18727
|
}
|
|
18724
18728
|
}
|
|
18725
18729
|
};
|
|
@@ -323,7 +323,7 @@ describe('[unit] Dna_center Adapter Test', () => {
|
|
|
323
323
|
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
|
324
324
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
|
325
325
|
assert.equal('^7.6.3', packageDotJson.dependencies.semver);
|
|
326
|
-
assert.equal('^3.
|
|
326
|
+
assert.equal('^3.14.2', packageDotJson.dependencies.winston);
|
|
327
327
|
done();
|
|
328
328
|
} catch (error) {
|
|
329
329
|
log.error(`Test Failure: ${error}`);
|
|
@@ -561,7 +561,7 @@ describe('[unit] Dna_center Adapter Test', () => {
|
|
|
561
561
|
log.error(`Adapter Exception: ${error}`);
|
|
562
562
|
done(error);
|
|
563
563
|
}
|
|
564
|
-
});
|
|
564
|
+
}).timeout(attemptTimeout);
|
|
565
565
|
});
|
|
566
566
|
|
|
567
567
|
describe('propertiesSchema.json', () => {
|