@itentialopensource/adapter-nokia_nsp_network_management 0.1.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/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +38 -0
- package/BROKER.md +211 -0
- package/CALLS.md +206 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +13 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +646 -0
- package/README.md +343 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +22 -0
- package/TAB1.md +14 -0
- package/TAB2.md +321 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +11110 -0
- package/adapterBase.js +1452 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +52 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +31 -0
- package/entities/AddressPool/action.json +65 -0
- package/entities/AddressPool/mockdatafiles/getIPv4AddressPool-default.json +47 -0
- package/entities/AddressPool/mockdatafiles/obtainValueFromPool-default.json +23 -0
- package/entities/AddressPool/schema.json +32 -0
- package/entities/AuditAndAlignment/action.json +165 -0
- package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationDeployment-default.json +6 -0
- package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateAllDeployments-default.json +7 -0
- package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateMisalignedDeployments-default.json +7 -0
- package/entities/AuditAndAlignment/mockdatafiles/auditDeployment-default.json +7 -0
- package/entities/AuditAndAlignment/mockdatafiles/auditNodeDeployments-default.json +6 -0
- package/entities/AuditAndAlignment/mockdatafiles/auditTemplate-default.json +7 -0
- package/entities/AuditAndAlignment/mockdatafiles/checkAuditStatusCount-default.json +15 -0
- package/entities/AuditAndAlignment/mockdatafiles/getAuditDetails-default.json +9 -0
- package/entities/AuditAndAlignment/schema.json +26 -0
- package/entities/BaselineOperationsRestconfAPI/action.json +207 -0
- package/entities/BaselineOperationsRestconfAPI/mockdatafiles/createBaselineDetector-default.json +35 -0
- package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getAllBaselines-default.json +44 -0
- package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaseline-default.json +24 -0
- package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaselineDetector-default.json +15 -0
- package/entities/BaselineOperationsRestconfAPI/mockdatafiles/patchBaselineDetector-default.json +13 -0
- package/entities/BaselineOperationsRestconfAPI/schema.json +39 -0
- package/entities/Brownfield/action.json +24 -0
- package/entities/Brownfield/mockdatafiles/discoverDeployments-default.json +7 -0
- package/entities/Brownfield/schema.json +19 -0
- package/entities/ConfigurationDeployments/action.json +207 -0
- package/entities/ConfigurationDeployments/mockdatafiles/createDeployment-default.json +7 -0
- package/entities/ConfigurationDeployments/mockdatafiles/createPortGroup-default.json +18 -0
- package/entities/ConfigurationDeployments/mockdatafiles/createPortGroupDirectory-default.json +16 -0
- package/entities/ConfigurationDeployments/mockdatafiles/deleteDeployments-default.json +7 -0
- package/entities/ConfigurationDeployments/mockdatafiles/getDeployments-default.json +322 -0
- package/entities/ConfigurationDeployments/mockdatafiles/getPortGroupFDN-default.json +18 -0
- package/entities/ConfigurationDeployments/mockdatafiles/getSpecificDeployment-default.json +43 -0
- package/entities/ConfigurationDeployments/mockdatafiles/replaceDeployment-default.json +7 -0
- package/entities/ConfigurationDeployments/mockdatafiles/updateDeploymentConfiguration-default.json +7 -0
- package/entities/ConfigurationDeployments/schema.json +28 -0
- package/entities/ConfigurationTemplates/action.json +85 -0
- package/entities/ConfigurationTemplates/mockdatafiles/createTemplate-default.json +4 -0
- package/entities/ConfigurationTemplates/mockdatafiles/getTemplates-default.json +195 -0
- package/entities/ConfigurationTemplates/schema.json +22 -0
- package/entities/DataTablesRetention/action.json +86 -0
- package/entities/DataTablesRetention/mockdatafiles/getBaselineAgeoutPolicySettings-default.json +22 -0
- package/entities/DataTablesRetention/mockdatafiles/getIndicatorAgeoutPolicySettings-default.json +16 -0
- package/entities/DataTablesRetention/schema.json +22 -0
- package/entities/IETFL2Model/action.json +67 -0
- package/entities/IETFL2Model/mockdatafiles/getL2TopologyAttributes-default.json +5 -0
- package/entities/IETFL2Model/mockdatafiles/getL2TopologyNodeTerminationPoints-default.json +69 -0
- package/entities/IETFL2Model/schema.json +21 -0
- package/entities/IETFL3Model/action.json +277 -0
- package/entities/IETFL3Model/mockdatafiles/getAllNodesInANetwork-default.json +207 -0
- package/entities/IETFL3Model/mockdatafiles/getL3TopologyAttribute-default.json +8 -0
- package/entities/IETFL3Model/mockdatafiles/getNetworkType-default.json +7 -0
- package/entities/IETFL3Model/mockdatafiles/getSpecificLinkInANetwork-default.json +67 -0
- package/entities/IETFL3Model/mockdatafiles/getSpecificNetwork-default.json +498 -0
- package/entities/IETFL3Model/mockdatafiles/getSpecificNodeInANetwork-default.json +56 -0
- package/entities/IETFL3Model/mockdatafiles/getSpecificTerminationPointsOfANode-default.json +17 -0
- package/entities/IETFL3Model/mockdatafiles/getSupportingLink-default.json +8 -0
- package/entities/IETFL3Model/mockdatafiles/getSupportingNetwork-default.json +7 -0
- package/entities/IETFL3Model/mockdatafiles/getSupportingTerminationPoint-default.json +9 -0
- package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyLinkAttributes-default.json +41 -0
- package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyNodeAttributes-default.json +16 -0
- package/entities/IETFL3Model/schema.json +42 -0
- package/entities/IETFLogicalInventoryRestconfAPI/action.json +235 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesConfig-default.json +14 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumbered-default.json +28 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumberedIntf-default.json +21 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesConfig-default.json +16 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv4Addresses-default.json +39 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv6Addresses-default.json +38 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesState-default.json +15 -0
- package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNodeVersionEntity-default.json +797 -0
- package/entities/IETFLogicalInventoryRestconfAPI/schema.json +51 -0
- package/entities/IETFSAPTopology/action.json +67 -0
- package/entities/IETFSAPTopology/mockdatafiles/getIETFNetworkFromSpecificNode-default.json +483 -0
- package/entities/IETFSAPTopology/mockdatafiles/getSAPNetwork-default.json +9 -0
- package/entities/IETFSAPTopology/mockdatafiles/getSAPsOnASpecificNodeOfSpecificServiceType-default.json +153 -0
- package/entities/IETFSAPTopology/schema.json +21 -0
- package/entities/IndicatorRules/action.json +106 -0
- package/entities/IndicatorRules/mockdatafiles/getAllIndicatorRules-default.json +818 -0
- package/entities/IndicatorRules/mockdatafiles/getSpecificIndicatorRule-default.json +119 -0
- package/entities/IndicatorRules/schema.json +23 -0
- package/entities/IndicatorTemplates/action.json +106 -0
- package/entities/IndicatorTemplates/mockdatafiles/avgCPUAllNodesAllActions-default.json +105 -0
- package/entities/IndicatorTemplates/mockdatafiles/getAllIndicatorTemplates-default.json +512 -0
- package/entities/IndicatorTemplates/mockdatafiles/getSpecificIndicatorTemplate-default.json +88 -0
- package/entities/IndicatorTemplates/mockdatafiles/uPDATEIndicatorTemplate-default.json +48 -0
- package/entities/IndicatorTemplates/schema.json +23 -0
- package/entities/Intent/action.json +105 -0
- package/entities/Intent/mockdatafiles/getIntent-default.json +161 -0
- package/entities/Intent/mockdatafiles/synchronizeIntent-default.json +6 -0
- package/entities/Intent/schema.json +23 -0
- package/entities/IntentTypeManagement/action.json +65 -0
- package/entities/IntentTypeManagement/mockdatafiles/getIntentTypes-default.json +482 -0
- package/entities/IntentTypeManagement/mockdatafiles/importIntentTypeFromIntentManager-default.json +6 -0
- package/entities/IntentTypeManagement/mockdatafiles/removeIntentType-default.json +7 -0
- package/entities/IntentTypeManagement/schema.json +21 -0
- package/entities/LogicalInventoryRestconfAPI/action.json +107 -0
- package/entities/LogicalInventoryRestconfAPI/mockdatafiles/nspInventoryFindWithFilter-default.json +528 -0
- package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicy-default.json +4189 -0
- package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNEAndVersionSpecific-default.json +1083 -0
- package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPollingPolicyNESpecific-default.json +1113 -0
- package/entities/LogicalInventoryRestconfAPI/schema.json +34 -0
- package/entities/ManageZTPListFromDeviceAdministrator/action.json +85 -0
- package/entities/ManageZTPListFromDeviceAdministrator/mockdatafiles/getZTPListFromDeviceAdministrator-default.json +114 -0
- package/entities/ManageZTPListFromDeviceAdministrator/schema.json +33 -0
- package/entities/RouterNECorrelationMappingService/action.json +147 -0
- package/entities/RouterNECorrelationMappingService/mockdatafiles/getCorrelationPolicy-default.json +38 -0
- package/entities/RouterNECorrelationMappingService/mockdatafiles/getRouterNeMapping-default.json +32 -0
- package/entities/RouterNECorrelationMappingService/mockdatafiles/getSpecificMappingPolicy-default.json +32 -0
- package/entities/RouterNECorrelationMappingService/schema.json +47 -0
- package/entities/TemplateMigration/action.json +44 -0
- package/entities/TemplateMigration/mockdatafiles/cloneTemplate-default.json +7 -0
- package/entities/TemplateMigration/mockdatafiles/migrateDeployments-default.json +7 -0
- package/entities/TemplateMigration/schema.json +20 -0
- package/entities/UploadMappingFiles/action.json +45 -0
- package/entities/UploadMappingFiles/mockdatafiles/getIETFMappingFiles-default.json +953 -0
- package/entities/UploadMappingFiles/schema.json +31 -0
- package/error.json +190 -0
- package/metadata.json +61 -0
- package/package.json +81 -0
- package/pronghorn.json +5141 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1666 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +657 -0
- package/report/update-postman.json-OpenApi3Json.json +112049 -0
- package/report/updateReport1718639512342.json +120 -0
- package/sampleProperties.json +268 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +142 -0
- package/test/integration/adapterTestIntegration.js +3836 -0
- package/test/unit/adapterBaseTestUnit.js +1024 -0
- package/test/unit/adapterTestUnit.js +5403 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +152 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +239 -0
- package/utils/tbUtils.js +489 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +193 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"result": "updated",
|
|
3
|
+
"replaced": {
|
|
4
|
+
"thresholds": [
|
|
5
|
+
{
|
|
6
|
+
"threshold-value-decimal": "60",
|
|
7
|
+
"direction": "increasing",
|
|
8
|
+
"actions": [
|
|
9
|
+
{
|
|
10
|
+
"name": "template_threshold_60_increasing_kafka_action",
|
|
11
|
+
"type": "kafka",
|
|
12
|
+
"kafka": {
|
|
13
|
+
"topic-name": "nsp-act-action-event",
|
|
14
|
+
"topic-content": "Temperature is a rising on 10.10.10.4"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "template_threshold_60_increasing_alarm_action",
|
|
19
|
+
"type": "alarm",
|
|
20
|
+
"alarm": {
|
|
21
|
+
"severity": "critical"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "template_threshold_60_increasing_email_action",
|
|
26
|
+
"type": "email",
|
|
27
|
+
"email": {
|
|
28
|
+
"email-address": "userid@user.com",
|
|
29
|
+
"email-subject": "Hmmmmm, It's getting hot 10.10.10.4",
|
|
30
|
+
"email-content": "Your temperature is rising 10.10.10.4."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"counters": [
|
|
37
|
+
{
|
|
38
|
+
"name": "temperature",
|
|
39
|
+
"function": "avg"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"telemetry-type": "telemetry:/base/hardware/temperature",
|
|
43
|
+
"name": "MaxTempNfmp10.10.10.4Template",
|
|
44
|
+
"units-name": "deg C",
|
|
45
|
+
"description": "Update Indicator template using PUT \"max\" temp on '10.10.10.4' template",
|
|
46
|
+
"formula": "max({temperature_avg})"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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": "avgCPUAllNodesAllActions",
|
|
12
|
+
"enum": [
|
|
13
|
+
"avgCPUAllNodesAllActions",
|
|
14
|
+
"getAllIndicatorTemplates",
|
|
15
|
+
"uPDATEIndicatorTemplate",
|
|
16
|
+
"deleteIndicatorTemplate",
|
|
17
|
+
"getSpecificIndicatorTemplate"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "createUsingIntent",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/data/ibn:ibn?{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": "synchronizeIntent",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "POST",
|
|
27
|
+
"entitypath": "{base_path}/{version}/restconf/data/ibn:ibn/{pathv1}/synchronize?{query}",
|
|
28
|
+
"requestSchema": "schema.json",
|
|
29
|
+
"responseSchema": "schema.json",
|
|
30
|
+
"timeout": 0,
|
|
31
|
+
"sendEmpty": false,
|
|
32
|
+
"requestDatatype": "JSON",
|
|
33
|
+
"responseDatatype": "JSON",
|
|
34
|
+
"headers": {},
|
|
35
|
+
"responseObjects": [
|
|
36
|
+
{
|
|
37
|
+
"type": "default",
|
|
38
|
+
"key": "",
|
|
39
|
+
"mockFile": "mockdatafiles/synchronizeIntent-default.json"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "getIntent",
|
|
45
|
+
"protocol": "REST",
|
|
46
|
+
"method": "GET",
|
|
47
|
+
"entitypath": "{base_path}/{version}/restconf/data/ibn:ibn/{pathv1}?{query}",
|
|
48
|
+
"requestSchema": "schema.json",
|
|
49
|
+
"responseSchema": "schema.json",
|
|
50
|
+
"timeout": 0,
|
|
51
|
+
"sendEmpty": false,
|
|
52
|
+
"sendGetBody": false,
|
|
53
|
+
"requestDatatype": "JSON",
|
|
54
|
+
"responseDatatype": "JSON",
|
|
55
|
+
"headers": {},
|
|
56
|
+
"responseObjects": [
|
|
57
|
+
{
|
|
58
|
+
"type": "default",
|
|
59
|
+
"key": "",
|
|
60
|
+
"mockFile": "mockdatafiles/getIntent-default.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "modifyIntent",
|
|
66
|
+
"protocol": "REST",
|
|
67
|
+
"method": "PUT",
|
|
68
|
+
"entitypath": "{base_path}/{version}/restconf/data/ibn:ibn/{pathv1}?{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
|
+
"name": "deleteIntent",
|
|
86
|
+
"protocol": "REST",
|
|
87
|
+
"method": "DELETE",
|
|
88
|
+
"entitypath": "{base_path}/{version}/restconf/data/ibn:ibn/{pathv1}?{query}",
|
|
89
|
+
"requestSchema": "schema.json",
|
|
90
|
+
"responseSchema": "schema.json",
|
|
91
|
+
"timeout": 0,
|
|
92
|
+
"sendEmpty": false,
|
|
93
|
+
"requestDatatype": "JSON",
|
|
94
|
+
"responseDatatype": "JSON",
|
|
95
|
+
"headers": {},
|
|
96
|
+
"responseObjects": [
|
|
97
|
+
{
|
|
98
|
+
"type": "default",
|
|
99
|
+
"key": "",
|
|
100
|
+
"mockFile": ""
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ibn:intent": {
|
|
3
|
+
"sync-timestamp": "2023-11-28T16:04:59+00:00",
|
|
4
|
+
"actual-intent-type-version": 1,
|
|
5
|
+
"intent-specific-data": {
|
|
6
|
+
"ztp-profile:ztp-profile": {
|
|
7
|
+
"dns-primary-address": "172.16.182.55",
|
|
8
|
+
"md-management-connection": "out-of-band",
|
|
9
|
+
"dns-domain": "nokia",
|
|
10
|
+
"node-type": "7250_IXR",
|
|
11
|
+
"mdm-discovery-rule-profile": "inband",
|
|
12
|
+
"ip-static-route": [
|
|
13
|
+
{
|
|
14
|
+
"ip-static-route-next-hop": "138.120.182.1",
|
|
15
|
+
"ip-static-route-mask": 24,
|
|
16
|
+
"ip-static-route-destination": "138.120.182.0"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"ietf-yang-library:yang-library": {
|
|
21
|
+
"schema": [
|
|
22
|
+
{
|
|
23
|
+
"module-set": [
|
|
24
|
+
"running"
|
|
25
|
+
],
|
|
26
|
+
"name": "running"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"module-set": [
|
|
30
|
+
{
|
|
31
|
+
"import-only-module": [
|
|
32
|
+
{
|
|
33
|
+
"name": "ietf-inet-types",
|
|
34
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
|
|
35
|
+
"revision": "2013-07-15"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "anv-types",
|
|
39
|
+
"namespace": "http://www.nokia.com/management-solutions/anv-types",
|
|
40
|
+
"revision": "2015-08-13"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "anv-yang-extensions",
|
|
44
|
+
"namespace": "http://www.nokia.com/management-solutions/anv-yang-extensions",
|
|
45
|
+
"revision": "2016-01-07"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "ibn-extensions",
|
|
49
|
+
"namespace": "http://www.nokia.com/management-solutions/ibn-extensions",
|
|
50
|
+
"revision": "2020-10-13"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "webfwk-ui-metadata",
|
|
54
|
+
"namespace": "http://www.nokia.com/management-solutions/webfwk/ui-metadata",
|
|
55
|
+
"revision": "2021-10-07"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "ietf-yang-types",
|
|
59
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
|
|
60
|
+
"revision": "2013-07-15"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "ietf-datastores",
|
|
64
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-datastores",
|
|
65
|
+
"revision": "2018-02-14"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "ietf-yang-revisions",
|
|
69
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-revisions",
|
|
70
|
+
"revision": "2021-06-30"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "ietf-yang-semver",
|
|
74
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-semver",
|
|
75
|
+
"revision": "2020-06-30"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"module": [
|
|
79
|
+
{
|
|
80
|
+
"name": "ietf-inet-types",
|
|
81
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-inet-types",
|
|
82
|
+
"revision": "2013-07-15"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "ietf-yang-library",
|
|
86
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-library",
|
|
87
|
+
"revision": "2019-01-04"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "anv-types",
|
|
91
|
+
"namespace": "http://www.nokia.com/management-solutions/anv-types",
|
|
92
|
+
"revision": "2015-08-13"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "anv-yang-extensions",
|
|
96
|
+
"namespace": "http://www.nokia.com/management-solutions/anv-yang-extensions",
|
|
97
|
+
"revision": "2016-01-07"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "ibn-extensions",
|
|
101
|
+
"namespace": "http://www.nokia.com/management-solutions/ibn-extensions",
|
|
102
|
+
"revision": "2020-10-13"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "webfwk-ui-metadata",
|
|
106
|
+
"namespace": "http://www.nokia.com/management-solutions/webfwk/ui-metadata",
|
|
107
|
+
"revision": "2021-10-07"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "ietf-yang-types",
|
|
111
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-types",
|
|
112
|
+
"revision": "2013-07-15"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "ztp-profile",
|
|
116
|
+
"namespace": "http://www.nokia.com/management-solutions/ztp-profile",
|
|
117
|
+
"revision": "2020-11-01"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "ietf-datastores",
|
|
121
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-datastores",
|
|
122
|
+
"revision": "2018-02-14"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "ietf-yang-revisions",
|
|
126
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-revisions",
|
|
127
|
+
"revision": "2021-06-30"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "ietf-yang-semver",
|
|
131
|
+
"namespace": "urn:ietf:params:xml:ns:yang:ietf-yang-semver",
|
|
132
|
+
"revision": "2020-06-30"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"name": "running"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"datastore": [
|
|
139
|
+
{
|
|
140
|
+
"schema": "running",
|
|
141
|
+
"name": "ietf-yang-library:running"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"content-id": "786176111eccc0aef54d5824e48fafe8e65df7742bbc06c11ef9248246a18985"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"supports-health": true,
|
|
148
|
+
"error": false,
|
|
149
|
+
"intent-type": "ztp-profile",
|
|
150
|
+
"target": "TestProfile2",
|
|
151
|
+
"required-network-state": "active",
|
|
152
|
+
"blocked": false,
|
|
153
|
+
"intent-type-label": [
|
|
154
|
+
"ztp",
|
|
155
|
+
"nsp"
|
|
156
|
+
],
|
|
157
|
+
"sync-to-ES-failed": false,
|
|
158
|
+
"aligned": true,
|
|
159
|
+
"intent-type-version": 1
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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": "createUsingIntent",
|
|
12
|
+
"enum": [
|
|
13
|
+
"createUsingIntent",
|
|
14
|
+
"synchronizeIntent",
|
|
15
|
+
"getIntent",
|
|
16
|
+
"modifyIntent",
|
|
17
|
+
"deleteIntent"
|
|
18
|
+
],
|
|
19
|
+
"external_name": "ph_request_type"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"definitions": {}
|
|
23
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "importIntentTypeFromIntentManager",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/restconf/operations/nsp-icm:import-intent-types?{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": "mockdatafiles/importIntentTypeFromIntentManager-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getIntentTypes",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/imported-intent-types?{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": "mockdatafiles/getIntentTypes-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "removeIntentType",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "POST",
|
|
48
|
+
"entitypath": "{base_path}/{version}/restconf/operations/nsp-icm:remove-intent-type?{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": "mockdatafiles/removeIntentType-default.json"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|