@itentialopensource/adapter-dna_center 0.11.1 → 0.11.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.
- package/CHANGELOG.md +16 -0
- package/TAB2.md +3 -3
- package/metadata.json +8 -5
- package/package.json +6 -6
- 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 +10 -10
- package/test/unit/adapterTestUnit.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.11.3 [08-25-2024]
|
|
3
|
+
|
|
4
|
+
* update dependencies and metadata
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/adapter-dna_center!28
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 0.11.2 [08-15-2024]
|
|
11
|
+
|
|
12
|
+
* Changes made at 2024.08.14_19:53PM
|
|
13
|
+
|
|
14
|
+
See merge request itentialopensource/adapters/adapter-dna_center!27
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
2
18
|
## 0.11.1 [08-07-2024]
|
|
3
19
|
|
|
4
20
|
* Changes made at 2024.08.06_22:00PM
|
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",
|
|
@@ -74,7 +76,9 @@
|
|
|
74
76
|
"link": "https://developer.cisco.com/docs/dna-center/#!api-quick-start/cisco-dna-center-platform-api-overview",
|
|
75
77
|
"public": true
|
|
76
78
|
}
|
|
77
|
-
]
|
|
79
|
+
],
|
|
80
|
+
"workshopLinks": [],
|
|
81
|
+
"workshopHomePage": "https://www.itential.com/get-started/"
|
|
78
82
|
},
|
|
79
83
|
"assets": [],
|
|
80
84
|
"relatedItems": {
|
|
@@ -84,6 +88,5 @@
|
|
|
84
88
|
"workflowProjects": [],
|
|
85
89
|
"transformationProjects": [],
|
|
86
90
|
"exampleProjects": []
|
|
87
|
-
}
|
|
88
|
-
"supportLevel": "community"
|
|
91
|
+
}
|
|
89
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.3",
|
|
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,22 +54,22 @@
|
|
|
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
|
-
"axios": "^1.7.
|
|
60
|
+
"axios": "^1.7.4",
|
|
61
61
|
"commander": "^11.0.0",
|
|
62
62
|
"dns-lookup-promise": "^1.0.4",
|
|
63
63
|
"fs-extra": "^11.2.0",
|
|
64
64
|
"json-query": "^2.2.2",
|
|
65
|
-
"mocha": "^10.7.
|
|
65
|
+
"mocha": "^10.7.3",
|
|
66
66
|
"mocha-param": "^2.0.1",
|
|
67
67
|
"mongodb": "^4.16.0",
|
|
68
68
|
"ping": "^0.4.4",
|
|
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.2",
|
|
3
3
|
"configLines": 28949,
|
|
4
4
|
"scriptLines": 1783,
|
|
5
5
|
"codeLines": 44128,
|
|
6
|
-
"testLines":
|
|
7
|
-
"testCases":
|
|
8
|
-
"totalCodeLines":
|
|
6
|
+
"testLines": 39637,
|
|
7
|
+
"testCases": 1703,
|
|
8
|
+
"totalCodeLines": 85548,
|
|
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,
|
|
@@ -17228,7 +17228,7 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17228
17228
|
protocol: 'RADIUS_TACACS',
|
|
17229
17229
|
retries: 'string',
|
|
17230
17230
|
role: 'string',
|
|
17231
|
-
sharedSecret:
|
|
17231
|
+
sharedSecret: samProps.authentication.password,
|
|
17232
17232
|
timeoutSeconds: 'string',
|
|
17233
17233
|
encryptionScheme: 'KEYWRAP',
|
|
17234
17234
|
messageKey: 'string',
|
|
@@ -17395,7 +17395,7 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17395
17395
|
protocol: 'RADIUS',
|
|
17396
17396
|
retries: 'string',
|
|
17397
17397
|
role: 'string',
|
|
17398
|
-
sharedSecret:
|
|
17398
|
+
sharedSecret: samProps.authentication.password,
|
|
17399
17399
|
timeoutSeconds: 'string',
|
|
17400
17400
|
encryptionScheme: 'KEYWRAP',
|
|
17401
17401
|
messageKey: 'string',
|
|
@@ -17846,14 +17846,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17846
17846
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
17847
17847
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
17848
17848
|
protocol: 'string',
|
|
17849
|
-
sharedSecret:
|
|
17849
|
+
sharedSecret: samProps.authentication.password
|
|
17850
17850
|
},
|
|
17851
17851
|
clientAndEndpoint_aaa: {
|
|
17852
17852
|
servers: 'string',
|
|
17853
17853
|
ipAddress: 'Mandatory for ISE servers.',
|
|
17854
17854
|
network: 'string',
|
|
17855
17855
|
protocol: 'string',
|
|
17856
|
-
sharedSecret:
|
|
17856
|
+
sharedSecret: samProps.authentication.password
|
|
17857
17857
|
}
|
|
17858
17858
|
}
|
|
17859
17859
|
};
|
|
@@ -17921,14 +17921,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
17921
17921
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
17922
17922
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
17923
17923
|
protocol: 'string',
|
|
17924
|
-
sharedSecret:
|
|
17924
|
+
sharedSecret: samProps.authentication.password
|
|
17925
17925
|
},
|
|
17926
17926
|
clientAndEndpoint_aaa: {
|
|
17927
17927
|
servers: 'string',
|
|
17928
17928
|
ipAddress: 'Mandatory for ISE servers.',
|
|
17929
17929
|
network: 'string',
|
|
17930
17930
|
protocol: 'string',
|
|
17931
|
-
sharedSecret:
|
|
17931
|
+
sharedSecret: samProps.authentication.password
|
|
17932
17932
|
}
|
|
17933
17933
|
}
|
|
17934
17934
|
};
|
|
@@ -18637,14 +18637,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
18637
18637
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
18638
18638
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
18639
18639
|
protocol: 'string',
|
|
18640
|
-
sharedSecret:
|
|
18640
|
+
sharedSecret: samProps.authentication.password
|
|
18641
18641
|
},
|
|
18642
18642
|
clientAndEndpoint_aaa: {
|
|
18643
18643
|
servers: 'string',
|
|
18644
18644
|
ipAddress: 'Mandatory for ISE servers.',
|
|
18645
18645
|
network: 'string',
|
|
18646
18646
|
protocol: 'string',
|
|
18647
|
-
sharedSecret:
|
|
18647
|
+
sharedSecret: samProps.authentication.password
|
|
18648
18648
|
}
|
|
18649
18649
|
}
|
|
18650
18650
|
};
|
|
@@ -18712,14 +18712,14 @@ describe('[integration] Dna_center Adapter Test', () => {
|
|
|
18712
18712
|
ipAddress: 'Mandatory for ISE servers and for AAA consider this as additional IP.',
|
|
18713
18713
|
network: 'For AAA server consider it as primary IP and For ISE consider as Network',
|
|
18714
18714
|
protocol: 'string',
|
|
18715
|
-
sharedSecret:
|
|
18715
|
+
sharedSecret: samProps.authentication.password
|
|
18716
18716
|
},
|
|
18717
18717
|
clientAndEndpoint_aaa: {
|
|
18718
18718
|
servers: 'string',
|
|
18719
18719
|
ipAddress: 'Mandatory for ISE servers.',
|
|
18720
18720
|
network: 'string',
|
|
18721
18721
|
protocol: 'string',
|
|
18722
|
-
sharedSecret:
|
|
18722
|
+
sharedSecret: samProps.authentication.password
|
|
18723
18723
|
}
|
|
18724
18724
|
}
|
|
18725
18725
|
};
|
|
@@ -315,15 +315,15 @@ describe('[unit] Dna_center Adapter Test', () => {
|
|
|
315
315
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
316
316
|
assert.notEqual('', packageDotJson.dependencies);
|
|
317
317
|
assert.equal('^8.17.1', packageDotJson.dependencies.ajv);
|
|
318
|
-
assert.equal('^1.7.
|
|
318
|
+
assert.equal('^1.7.4', packageDotJson.dependencies.axios);
|
|
319
319
|
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
320
320
|
assert.equal('^11.2.0', packageDotJson.dependencies['fs-extra']);
|
|
321
|
-
assert.equal('^10.7.
|
|
321
|
+
assert.equal('^10.7.3', packageDotJson.dependencies.mocha);
|
|
322
322
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
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', () => {
|