@itentialopensource/adapter-viptela 0.9.0 → 0.10.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/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +74 -29
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +221 -571
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +34443 -1655
- package/adapterBase.js +1006 -252
- package/entities/.generic/action.json +105 -0
- package/entities/.generic/schema.json +6 -1
- package/entities/AdministrationAuditLog/action.json +252 -0
- package/entities/AdministrationAuditLog/schema.json +30 -0
- package/entities/AdministrationUserAndGroup/action.json +533 -0
- package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroups-default.json +4 -0
- package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroupsAsKeyValue-default.json +5 -0
- package/entities/AdministrationUserAndGroup/mockdatafiles/findUsers-default.json +3 -0
- package/entities/AdministrationUserAndGroup/mockdatafiles/getColoGroups-default.json +6 -0
- package/entities/AdministrationUserAndGroup/mockdatafiles/getVpnGroups-default.json +5 -0
- package/entities/AdministrationUserAndGroup/schema.json +44 -0
- package/entities/CertificateManagementDevice/action.json +517 -0
- package/entities/CertificateManagementDevice/mockdatafiles/getRootCertChains-default.json +3 -0
- package/entities/CertificateManagementDevice/schema.json +43 -0
- package/entities/ClusterManagement/action.json +477 -0
- package/entities/ClusterManagement/mockdatafiles/getConfiguredIPList-default.json +5 -0
- package/entities/ClusterManagement/mockdatafiles/getConnectedDevices-default.json +3 -0
- package/entities/ClusterManagement/mockdatafiles/getConnectedDevicesPerTenant-default.json +3 -0
- package/entities/ClusterManagement/mockdatafiles/getTenantsList-default.json +4 -0
- package/entities/ClusterManagement/mockdatafiles/listVmanages-default.json +4 -0
- package/entities/ClusterManagement/schema.json +41 -0
- package/entities/ColocationCluster/action.json +229 -0
- package/entities/ColocationCluster/schema.json +29 -0
- package/entities/ColocationServiceChain/action.json +86 -0
- package/entities/ColocationServiceChain/mockdatafiles/getEdgeDevices-default.json +5 -0
- package/entities/ColocationServiceChain/mockdatafiles/getpnfDevices-default.json +5 -0
- package/entities/ColocationServiceChain/schema.json +22 -0
- package/entities/ColocationServiceGroup/action.json +148 -0
- package/entities/ColocationServiceGroup/mockdatafiles/getAvailableChains-default.json +6 -0
- package/entities/ColocationServiceGroup/schema.json +25 -0
- package/entities/ConfigurationDisasterRecovery/action.json +696 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/downloadReplicationData-default.json +5 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/getDisasterRecoveryStatus-default.json +6 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/getLocalDataCenterState-default.json +6 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/getReachabilityInfo-default.json +5 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDCMembersState-default.json +3 -0
- package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDataCenterState-default.json +6 -0
- package/entities/ConfigurationDisasterRecovery/schema.json +52 -0
- package/entities/ConfigurationFeatureList/action.json +46 -0
- package/entities/ConfigurationFeatureList/schema.json +20 -0
- package/entities/CreateABackupSnapshot/action.json +24 -0
- package/entities/CreateABackupSnapshot/schema.json +19 -0
- package/entities/DataCollectionAgent/action.json +470 -0
- package/entities/DataCollectionAgent/mockdatafiles/getTemplatePolicyDefinitionsDCA-default.json +5 -0
- package/entities/DataCollectionAgent/mockdatafiles/getVPNListsDCA-default.json +3 -0
- package/entities/DataCollectionAgent/mockdatafiles/getVedgeTemplateListDCA-default.json +6 -0
- package/entities/DataCollectionAgent/mockdatafiles/getVsmartTemplateListDCA-default.json +5 -0
- package/entities/DataCollectionAgent/mockdatafiles/listAllDevicesDCA-default.json +5 -0
- package/entities/DataCollectionAgent/schema.json +41 -0
- package/entities/DeviceActions/action.json +243 -0
- package/entities/DeviceActions/mockdatafiles/generateSecurityDevicesList-default.json +5 -0
- package/entities/DeviceActions/schema.json +13 -1
- package/entities/DeviceConfigHistory/action.json +294 -0
- package/entities/DeviceConfigHistory/schema.json +32 -0
- package/entities/MonitoringAlarmsDetails/action.json +684 -0
- package/entities/MonitoringAlarmsDetails/mockdatafiles/listDisabledAlarm-default.json +5 -0
- package/entities/MonitoringAlarmsDetails/schema.json +51 -0
- package/entities/MonitoringColocationCluster/action.json +360 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getClusterConfigByClusterId-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getClusterPortMappingByClusterId-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getPNFConfig-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getServiceGroupByClusterId-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getSystemStatusByDeviceId-default.json +6 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getVNFAlarmCount-default.json +6 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsCountDetail-default.json +4 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsDetail-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getVNFInterfaceDetail-default.json +3 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getpnfDetails-default.json +5 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/getvnfByDeviceId-default.json +4 -0
- package/entities/MonitoringColocationCluster/mockdatafiles/listNetworkFunctionMap-default.json +3 -0
- package/entities/MonitoringColocationCluster/schema.json +35 -0
- package/entities/MonitoringDeviceDetails/action.json +40 -0
- package/entities/MonitoringDeviceDetails/schema.json +3 -1
- package/entities/MonitoringDeviceStatisticsDetails/action.json +109 -0
- package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/generateDeviceStatisticsData-default.json +3 -0
- package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getActiveAlarms-default.json +5 -0
- package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatDataFieldsByStateDataType-default.json +6 -0
- package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatisticsType-default.json +4 -0
- package/entities/MonitoringDeviceStatisticsDetails/schema.json +23 -0
- package/entities/MonitoringEvents/action.json +378 -0
- package/entities/MonitoringEvents/mockdatafiles/getComponentsAsKeyValue-default.json +4 -0
- package/entities/MonitoringEvents/mockdatafiles/getEventTypesAsKeyValue-default.json +3 -0
- package/entities/MonitoringEvents/schema.json +36 -0
- package/entities/RealTimeMonitoringAAA/action.json +109 -0
- package/entities/RealTimeMonitoringAAA/mockdatafiles/getAllDeviceUsers-default.json +5 -0
- package/entities/RealTimeMonitoringAAA/mockdatafiles/getUsersFromDevice-default.json +6 -0
- package/entities/RealTimeMonitoringAAA/schema.json +23 -0
- package/entities/SSLProxyCertificateManagementDevice/action.json +494 -0
- package/entities/SSLProxyCertificateManagementDevice/mockdatafiles/getSslProxyList-default.json +4 -0
- package/entities/SSLProxyCertificateManagementDevice/schema.json +42 -0
- package/entities/ScheduledBackupRestore/action.json +189 -0
- package/entities/ScheduledBackupRestore/schema.json +27 -0
- package/entities/SystemCloudService/action.json +313 -0
- package/entities/SystemCloudService/schema.json +33 -0
- package/entities/SystemContainer/action.json +189 -0
- package/entities/SystemContainer/mockdatafiles/getCustomApp-default.json +3 -0
- package/entities/SystemContainer/schema.json +27 -0
- package/entities/TroubleshootingToolsDashboard/action.json +128 -0
- package/entities/TroubleshootingToolsDashboard/schema.json +24 -0
- package/entities/TroubleshootingToolsDeviceConnectivity/action.json +288 -0
- package/entities/TroubleshootingToolsDeviceConnectivity/schema.json +32 -0
- package/entities/TroubleshootingToolsDeviceSoftwarePackage/action.json +85 -0
- package/entities/TroubleshootingToolsDeviceSoftwarePackage/schema.json +22 -0
- package/entities/TroubleshootingToolsDeviceSoftwareUpdate/action.json +86 -0
- package/entities/TroubleshootingToolsDeviceSoftwareUpdate/schema.json +22 -0
- package/entities/TroubleshootingToolsDiagnostics/action.json +977 -0
- package/entities/TroubleshootingToolsDiagnostics/schema.json +65 -0
- package/entities/TroubleshootingToolsSoftwareActions/action.json +232 -0
- package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImages-default.json +6 -0
- package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImagesWithFilters-default.json +5 -0
- package/entities/TroubleshootingToolsSoftwareActions/schema.json +29 -0
- package/error.json +6 -0
- package/package.json +7 -5
- package/pronghorn.json +15511 -1652
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +421 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1651360586947.json +114 -0
- package/report/updateReport1652490573359.json +120 -0
- package/sampleProperties.json +83 -1
- package/test/integration/adapterTestBasicGet.js +1 -1
- package/test/integration/adapterTestIntegration.js +10668 -107
- package/test/unit/adapterBaseTestUnit.js +30 -25
- package/test/unit/adapterTestUnit.js +8086 -177
- package/utils/adapterInfo.js +206 -0
- package/utils/entitiesToDB.js +12 -57
- package/utils/pre-commit.sh +3 -0
- package/utils/tbScript.js +35 -20
- package/utils/tbUtils.js +49 -31
- package/utils/testRunner.js +16 -16
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "getFileContents",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/custom/file/{pathv1}?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"sendGetBody": false,
|
|
13
|
+
"requestDatatype": "JSON",
|
|
14
|
+
"responseDatatype": "JSON",
|
|
15
|
+
"headers": {},
|
|
16
|
+
"responseObjects": [
|
|
17
|
+
{
|
|
18
|
+
"type": "default",
|
|
19
|
+
"key": "",
|
|
20
|
+
"mockFile": ""
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "editConfigFile",
|
|
26
|
+
"protocol": "REST",
|
|
27
|
+
"method": "PUT",
|
|
28
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/custom/file/{pathv1}?{query}",
|
|
29
|
+
"requestSchema": "schema.json",
|
|
30
|
+
"responseSchema": "schema.json",
|
|
31
|
+
"timeout": 0,
|
|
32
|
+
"sendEmpty": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "uploadImageFile",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "POST",
|
|
48
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/custom/uploads/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": ""
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "createVnfPackage",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "POST",
|
|
68
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/custom/vnfPackage?{query}",
|
|
69
|
+
"requestSchema": "schema.json",
|
|
70
|
+
"responseSchema": "schema.json",
|
|
71
|
+
"timeout": 0,
|
|
72
|
+
"sendEmpty": false,
|
|
73
|
+
"requestDatatype": "JSON",
|
|
74
|
+
"responseDatatype": "JSON",
|
|
75
|
+
"headers": {},
|
|
76
|
+
"responseObjects": [
|
|
77
|
+
{
|
|
78
|
+
"type": "default",
|
|
79
|
+
"key": "",
|
|
80
|
+
"mockFile": ""
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"getFileContents",
|
|
14
|
+
"editConfigFile",
|
|
15
|
+
"uploadImageFile",
|
|
16
|
+
"createVnfPackage"
|
|
17
|
+
],
|
|
18
|
+
"external_name": "ph_request_type"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"definitions": {}
|
|
22
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "installPkg",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/device/action/software/package?{query}",
|
|
8
|
+
"requestSchema": "schema.json",
|
|
9
|
+
"responseSchema": "schema.json",
|
|
10
|
+
"timeout": 0,
|
|
11
|
+
"sendEmpty": false,
|
|
12
|
+
"requestDatatype": "JSON",
|
|
13
|
+
"responseDatatype": "JSON",
|
|
14
|
+
"headers": {},
|
|
15
|
+
"responseObjects": [
|
|
16
|
+
{
|
|
17
|
+
"type": "default",
|
|
18
|
+
"key": "",
|
|
19
|
+
"mockFile": ""
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getUploadImagesCount",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/imageCount?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"sendGetBody": false,
|
|
33
|
+
"requestDatatype": "JSON",
|
|
34
|
+
"responseDatatype": "JSON",
|
|
35
|
+
"headers": {},
|
|
36
|
+
"responseObjects": [
|
|
37
|
+
{
|
|
38
|
+
"type": "default",
|
|
39
|
+
"key": "",
|
|
40
|
+
"mockFile": ""
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "downloadPackageFile",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/{pathv1}?{query}",
|
|
49
|
+
"requestSchema": "schema.json",
|
|
50
|
+
"responseSchema": "schema.json",
|
|
51
|
+
"timeout": 0,
|
|
52
|
+
"sendEmpty": false,
|
|
53
|
+
"sendGetBody": false,
|
|
54
|
+
"requestDatatype": "JSON",
|
|
55
|
+
"responseDatatype": "JSON",
|
|
56
|
+
"headers": {},
|
|
57
|
+
"responseObjects": [
|
|
58
|
+
{
|
|
59
|
+
"type": "default",
|
|
60
|
+
"key": "",
|
|
61
|
+
"mockFile": ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "processSoftwareImage",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "POST",
|
|
69
|
+
"entitypath": "{base_path}/{version}/device/action/software/package/{pathv1}?{query}",
|
|
70
|
+
"requestSchema": "schema.json",
|
|
71
|
+
"responseSchema": "schema.json",
|
|
72
|
+
"timeout": 0,
|
|
73
|
+
"sendEmpty": false,
|
|
74
|
+
"requestDatatype": "JSON",
|
|
75
|
+
"responseDatatype": "JSON",
|
|
76
|
+
"headers": {},
|
|
77
|
+
"responseObjects": [
|
|
78
|
+
{
|
|
79
|
+
"type": "default",
|
|
80
|
+
"key": "",
|
|
81
|
+
"mockFile": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
+
"translate": false,
|
|
6
|
+
"dynamicfields": true,
|
|
7
|
+
"properties": {
|
|
8
|
+
"ph_request_type": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "type of request (internal to adapter)",
|
|
11
|
+
"default": "",
|
|
12
|
+
"enum": [
|
|
13
|
+
"installPkg",
|
|
14
|
+
"getUploadImagesCount",
|
|
15
|
+
"downloadPackageFile",
|
|
16
|
+
"processSoftwareImage"
|
|
17
|
+
],
|
|
18
|
+
"external_name": "ph_request_type"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"definitions": {}
|
|
22
|
+
}
|