@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.
Files changed (179) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +38 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +206 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +22 -0
  16. package/TAB1.md +14 -0
  17. package/TAB2.md +321 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +11110 -0
  20. package/adapterBase.js +1452 -0
  21. package/entities/.generic/action.json +214 -0
  22. package/entities/.generic/schema.json +28 -0
  23. package/entities/.system/action.json +52 -0
  24. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  25. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  26. package/entities/.system/schema.json +19 -0
  27. package/entities/.system/schemaTokenReq.json +53 -0
  28. package/entities/.system/schemaTokenResp.json +31 -0
  29. package/entities/AddressPool/action.json +65 -0
  30. package/entities/AddressPool/mockdatafiles/getIPv4AddressPool-default.json +47 -0
  31. package/entities/AddressPool/mockdatafiles/obtainValueFromPool-default.json +23 -0
  32. package/entities/AddressPool/schema.json +32 -0
  33. package/entities/AuditAndAlignment/action.json +165 -0
  34. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationDeployment-default.json +6 -0
  35. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateAllDeployments-default.json +7 -0
  36. package/entities/AuditAndAlignment/mockdatafiles/alignConfigurationTemplateMisalignedDeployments-default.json +7 -0
  37. package/entities/AuditAndAlignment/mockdatafiles/auditDeployment-default.json +7 -0
  38. package/entities/AuditAndAlignment/mockdatafiles/auditNodeDeployments-default.json +6 -0
  39. package/entities/AuditAndAlignment/mockdatafiles/auditTemplate-default.json +7 -0
  40. package/entities/AuditAndAlignment/mockdatafiles/checkAuditStatusCount-default.json +15 -0
  41. package/entities/AuditAndAlignment/mockdatafiles/getAuditDetails-default.json +9 -0
  42. package/entities/AuditAndAlignment/schema.json +26 -0
  43. package/entities/BaselineOperationsRestconfAPI/action.json +207 -0
  44. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/createBaselineDetector-default.json +35 -0
  45. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getAllBaselines-default.json +44 -0
  46. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaseline-default.json +24 -0
  47. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/getBaselineDetector-default.json +15 -0
  48. package/entities/BaselineOperationsRestconfAPI/mockdatafiles/patchBaselineDetector-default.json +13 -0
  49. package/entities/BaselineOperationsRestconfAPI/schema.json +39 -0
  50. package/entities/Brownfield/action.json +24 -0
  51. package/entities/Brownfield/mockdatafiles/discoverDeployments-default.json +7 -0
  52. package/entities/Brownfield/schema.json +19 -0
  53. package/entities/ConfigurationDeployments/action.json +207 -0
  54. package/entities/ConfigurationDeployments/mockdatafiles/createDeployment-default.json +7 -0
  55. package/entities/ConfigurationDeployments/mockdatafiles/createPortGroup-default.json +18 -0
  56. package/entities/ConfigurationDeployments/mockdatafiles/createPortGroupDirectory-default.json +16 -0
  57. package/entities/ConfigurationDeployments/mockdatafiles/deleteDeployments-default.json +7 -0
  58. package/entities/ConfigurationDeployments/mockdatafiles/getDeployments-default.json +322 -0
  59. package/entities/ConfigurationDeployments/mockdatafiles/getPortGroupFDN-default.json +18 -0
  60. package/entities/ConfigurationDeployments/mockdatafiles/getSpecificDeployment-default.json +43 -0
  61. package/entities/ConfigurationDeployments/mockdatafiles/replaceDeployment-default.json +7 -0
  62. package/entities/ConfigurationDeployments/mockdatafiles/updateDeploymentConfiguration-default.json +7 -0
  63. package/entities/ConfigurationDeployments/schema.json +28 -0
  64. package/entities/ConfigurationTemplates/action.json +85 -0
  65. package/entities/ConfigurationTemplates/mockdatafiles/createTemplate-default.json +4 -0
  66. package/entities/ConfigurationTemplates/mockdatafiles/getTemplates-default.json +195 -0
  67. package/entities/ConfigurationTemplates/schema.json +22 -0
  68. package/entities/DataTablesRetention/action.json +86 -0
  69. package/entities/DataTablesRetention/mockdatafiles/getBaselineAgeoutPolicySettings-default.json +22 -0
  70. package/entities/DataTablesRetention/mockdatafiles/getIndicatorAgeoutPolicySettings-default.json +16 -0
  71. package/entities/DataTablesRetention/schema.json +22 -0
  72. package/entities/IETFL2Model/action.json +67 -0
  73. package/entities/IETFL2Model/mockdatafiles/getL2TopologyAttributes-default.json +5 -0
  74. package/entities/IETFL2Model/mockdatafiles/getL2TopologyNodeTerminationPoints-default.json +69 -0
  75. package/entities/IETFL2Model/schema.json +21 -0
  76. package/entities/IETFL3Model/action.json +277 -0
  77. package/entities/IETFL3Model/mockdatafiles/getAllNodesInANetwork-default.json +207 -0
  78. package/entities/IETFL3Model/mockdatafiles/getL3TopologyAttribute-default.json +8 -0
  79. package/entities/IETFL3Model/mockdatafiles/getNetworkType-default.json +7 -0
  80. package/entities/IETFL3Model/mockdatafiles/getSpecificLinkInANetwork-default.json +67 -0
  81. package/entities/IETFL3Model/mockdatafiles/getSpecificNetwork-default.json +498 -0
  82. package/entities/IETFL3Model/mockdatafiles/getSpecificNodeInANetwork-default.json +56 -0
  83. package/entities/IETFL3Model/mockdatafiles/getSpecificTerminationPointsOfANode-default.json +17 -0
  84. package/entities/IETFL3Model/mockdatafiles/getSupportingLink-default.json +8 -0
  85. package/entities/IETFL3Model/mockdatafiles/getSupportingNetwork-default.json +7 -0
  86. package/entities/IETFL3Model/mockdatafiles/getSupportingTerminationPoint-default.json +9 -0
  87. package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyLinkAttributes-default.json +41 -0
  88. package/entities/IETFL3Model/mockdatafiles/l3GETSRTopologyNodeAttributes-default.json +16 -0
  89. package/entities/IETFL3Model/schema.json +42 -0
  90. package/entities/IETFLogicalInventoryRestconfAPI/action.json +235 -0
  91. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesConfig-default.json +14 -0
  92. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumbered-default.json +28 -0
  93. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkInterfacesUnnumberedIntf-default.json +21 -0
  94. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesConfig-default.json +16 -0
  95. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv4Addresses-default.json +39 -0
  96. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesIPv6Addresses-default.json +38 -0
  97. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveNetworkSubInterfacesState-default.json +15 -0
  98. package/entities/IETFLogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNodeVersionEntity-default.json +797 -0
  99. package/entities/IETFLogicalInventoryRestconfAPI/schema.json +51 -0
  100. package/entities/IETFSAPTopology/action.json +67 -0
  101. package/entities/IETFSAPTopology/mockdatafiles/getIETFNetworkFromSpecificNode-default.json +483 -0
  102. package/entities/IETFSAPTopology/mockdatafiles/getSAPNetwork-default.json +9 -0
  103. package/entities/IETFSAPTopology/mockdatafiles/getSAPsOnASpecificNodeOfSpecificServiceType-default.json +153 -0
  104. package/entities/IETFSAPTopology/schema.json +21 -0
  105. package/entities/IndicatorRules/action.json +106 -0
  106. package/entities/IndicatorRules/mockdatafiles/getAllIndicatorRules-default.json +818 -0
  107. package/entities/IndicatorRules/mockdatafiles/getSpecificIndicatorRule-default.json +119 -0
  108. package/entities/IndicatorRules/schema.json +23 -0
  109. package/entities/IndicatorTemplates/action.json +106 -0
  110. package/entities/IndicatorTemplates/mockdatafiles/avgCPUAllNodesAllActions-default.json +105 -0
  111. package/entities/IndicatorTemplates/mockdatafiles/getAllIndicatorTemplates-default.json +512 -0
  112. package/entities/IndicatorTemplates/mockdatafiles/getSpecificIndicatorTemplate-default.json +88 -0
  113. package/entities/IndicatorTemplates/mockdatafiles/uPDATEIndicatorTemplate-default.json +48 -0
  114. package/entities/IndicatorTemplates/schema.json +23 -0
  115. package/entities/Intent/action.json +105 -0
  116. package/entities/Intent/mockdatafiles/getIntent-default.json +161 -0
  117. package/entities/Intent/mockdatafiles/synchronizeIntent-default.json +6 -0
  118. package/entities/Intent/schema.json +23 -0
  119. package/entities/IntentTypeManagement/action.json +65 -0
  120. package/entities/IntentTypeManagement/mockdatafiles/getIntentTypes-default.json +482 -0
  121. package/entities/IntentTypeManagement/mockdatafiles/importIntentTypeFromIntentManager-default.json +6 -0
  122. package/entities/IntentTypeManagement/mockdatafiles/removeIntentType-default.json +7 -0
  123. package/entities/IntentTypeManagement/schema.json +21 -0
  124. package/entities/LogicalInventoryRestconfAPI/action.json +107 -0
  125. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/nspInventoryFindWithFilter-default.json +528 -0
  126. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicy-default.json +4189 -0
  127. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPolicyNEAndVersionSpecific-default.json +1083 -0
  128. package/entities/LogicalInventoryRestconfAPI/mockdatafiles/retrieveResyncPollingPolicyNESpecific-default.json +1113 -0
  129. package/entities/LogicalInventoryRestconfAPI/schema.json +34 -0
  130. package/entities/ManageZTPListFromDeviceAdministrator/action.json +85 -0
  131. package/entities/ManageZTPListFromDeviceAdministrator/mockdatafiles/getZTPListFromDeviceAdministrator-default.json +114 -0
  132. package/entities/ManageZTPListFromDeviceAdministrator/schema.json +33 -0
  133. package/entities/RouterNECorrelationMappingService/action.json +147 -0
  134. package/entities/RouterNECorrelationMappingService/mockdatafiles/getCorrelationPolicy-default.json +38 -0
  135. package/entities/RouterNECorrelationMappingService/mockdatafiles/getRouterNeMapping-default.json +32 -0
  136. package/entities/RouterNECorrelationMappingService/mockdatafiles/getSpecificMappingPolicy-default.json +32 -0
  137. package/entities/RouterNECorrelationMappingService/schema.json +47 -0
  138. package/entities/TemplateMigration/action.json +44 -0
  139. package/entities/TemplateMigration/mockdatafiles/cloneTemplate-default.json +7 -0
  140. package/entities/TemplateMigration/mockdatafiles/migrateDeployments-default.json +7 -0
  141. package/entities/TemplateMigration/schema.json +20 -0
  142. package/entities/UploadMappingFiles/action.json +45 -0
  143. package/entities/UploadMappingFiles/mockdatafiles/getIETFMappingFiles-default.json +953 -0
  144. package/entities/UploadMappingFiles/schema.json +31 -0
  145. package/error.json +190 -0
  146. package/metadata.json +61 -0
  147. package/package.json +81 -0
  148. package/pronghorn.json +5141 -0
  149. package/propertiesDecorators.json +14 -0
  150. package/propertiesSchema.json +1666 -0
  151. package/refs?service=git-upload-pack +0 -0
  152. package/report/creationReport.json +657 -0
  153. package/report/update-postman.json-OpenApi3Json.json +112049 -0
  154. package/report/updateReport1718639512342.json +120 -0
  155. package/sampleProperties.json +268 -0
  156. package/test/integration/adapterTestBasicGet.js +83 -0
  157. package/test/integration/adapterTestConnectivity.js +142 -0
  158. package/test/integration/adapterTestIntegration.js +3836 -0
  159. package/test/unit/adapterBaseTestUnit.js +1024 -0
  160. package/test/unit/adapterTestUnit.js +5403 -0
  161. package/utils/adapterInfo.js +206 -0
  162. package/utils/addAuth.js +94 -0
  163. package/utils/artifactize.js +146 -0
  164. package/utils/basicGet.js +50 -0
  165. package/utils/checkMigrate.js +63 -0
  166. package/utils/entitiesToDB.js +179 -0
  167. package/utils/findPath.js +74 -0
  168. package/utils/methodDocumentor.js +273 -0
  169. package/utils/modify.js +152 -0
  170. package/utils/packModificationScript.js +35 -0
  171. package/utils/patches2bundledDeps.js +90 -0
  172. package/utils/pre-commit.sh +32 -0
  173. package/utils/removeHooks.js +20 -0
  174. package/utils/setup.js +33 -0
  175. package/utils/taskMover.js +309 -0
  176. package/utils/tbScript.js +239 -0
  177. package/utils/tbUtils.js +489 -0
  178. package/utils/testRunner.js +298 -0
  179. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,165 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "auditDeployment",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/deployments/{pathv1}/audit?{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/auditDeployment-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getAuditDetails",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/deployments/{pathv1}/audit-details?{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/getAuditDetails-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "alignConfigurationDeployment",
46
+ "protocol": "REST",
47
+ "method": "POST",
48
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/deployments/{pathv1}/align-config?{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/alignConfigurationDeployment-default.json"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "auditTemplate",
66
+ "protocol": "REST",
67
+ "method": "POST",
68
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/templates/{pathv1}/audit?{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": "mockdatafiles/auditTemplate-default.json"
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "checkAuditStatusCount",
86
+ "protocol": "REST",
87
+ "method": "POST",
88
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/templates/{pathv1}/deployment-count-by-status?{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": "mockdatafiles/checkAuditStatusCount-default.json"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "name": "alignConfigurationTemplateAllDeployments",
106
+ "protocol": "REST",
107
+ "method": "POST",
108
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/templates/{pathv1}/align-config?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "requestDatatype": "JSON",
114
+ "responseDatatype": "JSON",
115
+ "headers": {},
116
+ "responseObjects": [
117
+ {
118
+ "type": "default",
119
+ "key": "",
120
+ "mockFile": "mockdatafiles/alignConfigurationTemplateAllDeployments-default.json"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "alignConfigurationTemplateMisalignedDeployments",
126
+ "protocol": "REST",
127
+ "method": "POST",
128
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-icm:icm/templates/{pathv1}/align-misaligned-config?{query}",
129
+ "requestSchema": "schema.json",
130
+ "responseSchema": "schema.json",
131
+ "timeout": 0,
132
+ "sendEmpty": false,
133
+ "requestDatatype": "JSON",
134
+ "responseDatatype": "JSON",
135
+ "headers": {},
136
+ "responseObjects": [
137
+ {
138
+ "type": "default",
139
+ "key": "",
140
+ "mockFile": "mockdatafiles/alignConfigurationTemplateMisalignedDeployments-default.json"
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "name": "auditNodeDeployments",
146
+ "protocol": "REST",
147
+ "method": "POST",
148
+ "entitypath": "{base_path}/{version}/restconf/operations/nsp-icm:ne-audit-align?{query}",
149
+ "requestSchema": "schema.json",
150
+ "responseSchema": "schema.json",
151
+ "timeout": 0,
152
+ "sendEmpty": false,
153
+ "requestDatatype": "JSON",
154
+ "responseDatatype": "JSON",
155
+ "headers": {},
156
+ "responseObjects": [
157
+ {
158
+ "type": "default",
159
+ "key": "",
160
+ "mockFile": "mockdatafiles/auditNodeDeployments-default.json"
161
+ }
162
+ ]
163
+ }
164
+ ]
165
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "message": "Alignment Started."
4
+ },
5
+ "statusCode": "OK"
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "status-code": 200,
4
+ "message": "Template Alignment Started."
5
+ },
6
+ "statusCode": "OK"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "status-code": 200,
4
+ "message": "Template Alignment Started on Mis-Aligned Deployments."
5
+ },
6
+ "statusCode": "OK"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "status-code": 200,
4
+ "message": "Deployment Audit Started."
5
+ },
6
+ "statusCode": "OK"
7
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "message": "Started audit operation on Deployments present on the list of NEs"
4
+ },
5
+ "statusCode": "OK"
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "status-code": 200,
4
+ "message": "Template Audit Started."
5
+ },
6
+ "statusCode": "OK"
7
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "nsp-icm:output": {
3
+ "auditing-count": 0,
4
+ "misaligned-count": 1,
5
+ "associate-failed-count": 0,
6
+ "aligned-count": 4,
7
+ "migrating-count": 0,
8
+ "total-count": 15,
9
+ "aligning-count": 0,
10
+ "deployment-failed-count": 0,
11
+ "saved-count": 10,
12
+ "not-started-count": 0
13
+ },
14
+ "statusCode": "OK"
15
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "nsp-icm:audit-details": {
3
+ "@": {
4
+ "nsp-model:schema-nodeid": "/nsp-network:network/node/node-root/nsp-icm:icm/deployments/deployment/audit-details",
5
+ "nsp-model:identifier": "/nsp-network:network/node[node-id='72.20.20.2']/node-root/nsp-icm:icm/deployments/deployment[template-name='Gold Port'][target='/nsp-equipment:network/network-element[ne-id='72.20.20.2']/hardware-component/port[component-id='shelf=1/cardSlot=1/card=1/mdaSlot=2/mda=2/port=1/2/3']'][target-identifier-value='1/2/3']/audit-details",
6
+ "nsp-model:network-id": "72.20.20.2"
7
+ }
8
+ }
9
+ }
@@ -0,0 +1,26 @@
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": "auditDeployment",
12
+ "enum": [
13
+ "auditDeployment",
14
+ "getAuditDetails",
15
+ "alignConfigurationDeployment",
16
+ "auditTemplate",
17
+ "checkAuditStatusCount",
18
+ "alignConfigurationTemplateAllDeployments",
19
+ "alignConfigurationTemplateMisalignedDeployments",
20
+ "auditNodeDeployments"
21
+ ],
22
+ "external_name": "ph_request_type"
23
+ }
24
+ },
25
+ "definitions": {}
26
+ }
@@ -0,0 +1,207 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createSubscription",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/restconf/data/md-subscription:/subscriptions/subscription?{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": "createBaseline",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines?{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": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "getBaseline",
45
+ "protocol": "REST",
46
+ "method": "GET",
47
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{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/getBaseline-default.json"
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "createBaselineDetector",
66
+ "protocol": "REST",
67
+ "method": "PATCH",
68
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{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": "mockdatafiles/createBaselineDetector-default.json"
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "name": "deleteBaseline",
86
+ "protocol": "REST",
87
+ "method": "DELETE",
88
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{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
+ "name": "getBaselineDetector",
106
+ "protocol": "REST",
107
+ "method": "GET",
108
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{pathv1}/{pathv2}?{query}",
109
+ "requestSchema": "schema.json",
110
+ "responseSchema": "schema.json",
111
+ "timeout": 0,
112
+ "sendEmpty": false,
113
+ "sendGetBody": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": "mockdatafiles/getBaselineDetector-default.json"
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "patchBaselineDetector",
127
+ "protocol": "REST",
128
+ "method": "PATCH",
129
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{pathv1}/{pathv2}?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": "mockdatafiles/patchBaselineDetector-default.json"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "deleteBaselineDetector",
147
+ "protocol": "REST",
148
+ "method": "DELETE",
149
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:baselines/{pathv1}/{pathv2}?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": ""
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "deleteSubscription",
167
+ "protocol": "REST",
168
+ "method": "DELETE",
169
+ "entitypath": "{base_path}/{version}/restconf/data/md-subscription:/subscriptions/{pathv1}?{query}",
170
+ "requestSchema": "schema.json",
171
+ "responseSchema": "schema.json",
172
+ "timeout": 0,
173
+ "sendEmpty": false,
174
+ "requestDatatype": "JSON",
175
+ "responseDatatype": "JSON",
176
+ "headers": {},
177
+ "responseObjects": [
178
+ {
179
+ "type": "default",
180
+ "key": "",
181
+ "mockFile": ""
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "name": "getAllBaselines",
187
+ "protocol": "REST",
188
+ "method": "GET",
189
+ "entitypath": "{base_path}/{version}/restconf/data/nsp-rt-analytics:/baselines/baseline?{query}",
190
+ "requestSchema": "schema.json",
191
+ "responseSchema": "schema.json",
192
+ "timeout": 0,
193
+ "sendEmpty": false,
194
+ "sendGetBody": false,
195
+ "requestDatatype": "JSON",
196
+ "responseDatatype": "JSON",
197
+ "headers": {},
198
+ "responseObjects": [
199
+ {
200
+ "type": "default",
201
+ "key": "",
202
+ "mockFile": "mockdatafiles/getAllBaselines-default.json"
203
+ }
204
+ ]
205
+ }
206
+ ]
207
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "updated": {
3
+ "@": {
4
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline",
5
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']"
6
+ },
7
+ "period": "pt5m",
8
+ "resource": "/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']",
9
+ "description": "restconf_baseline_nodeB",
10
+ "counter": "received-octets",
11
+ "admin-state": "up",
12
+ "type": "counter",
13
+ "baseline-detector": [
14
+ {
15
+ "@": {
16
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline/baseline-detector",
17
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']/baseline-detector[algorithm='relative-diff-mean']"
18
+ },
19
+ "evaluate-when": "end-of-window",
20
+ "comparison": "greater-than",
21
+ "evaluate-what": "value_",
22
+ "threshold": 0.1,
23
+ "algorithm": "relative-diff-mean"
24
+ }
25
+ ],
26
+ "window-duration": "pt1m",
27
+ "update-status": "active",
28
+ "use-bit-rate": false,
29
+ "name": "2.2.2.2, 1/1/1",
30
+ "units-name": "octets",
31
+ "subscriptionid": "test-sub-baseline-mdm",
32
+ "collection-interval": 60,
33
+ "counter-group": "telemetry:/base/interfaces/interface"
34
+ }
35
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "nsp-rt-analytics:baseline": [
3
+ {
4
+ "@": {
5
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline",
6
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='gauge'][resource='/network-device-mgr:network-devices/network-device[name='1.1.1.1']/root/nokia-nsp-source:fdn[id='fdn:realm:sam:network:1.1.1.1:shelf-1:systemStatsHolder']'][counter-group='telemetry:/base/system-info/system'][counter='cpu-usage'][period='pt5m'][window-duration='pt1m']"
7
+ },
8
+ "period": "pt5m",
9
+ "resource": "/network-device-mgr:network-devices/network-device[name='1.1.1.1']/root/nokia-nsp-source:fdn[id='fdn:realm:sam:network:1.1.1.1:shelf-1:systemStatsHolder']",
10
+ "description": "restconf_baseline_nodeA",
11
+ "counter": "cpu-usage",
12
+ "admin-state": "up",
13
+ "type": "gauge",
14
+ "window-duration": "pt1m",
15
+ "update-status": "active",
16
+ "use-bit-rate": false,
17
+ "name": "1.1.1.1, system",
18
+ "units-name": "",
19
+ "subscriptionid": "test-sub-baseline-nfmp",
20
+ "collection-interval": 60,
21
+ "counter-group": "telemetry:/base/system-info/system"
22
+ },
23
+ {
24
+ "@": {
25
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline",
26
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']"
27
+ },
28
+ "period": "pt5m",
29
+ "resource": "/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']",
30
+ "description": "restconf_baseline_nodeB",
31
+ "counter": "received-octets",
32
+ "admin-state": "up",
33
+ "type": "counter",
34
+ "window-duration": "pt1m",
35
+ "update-status": "active",
36
+ "use-bit-rate": false,
37
+ "name": "2.2.2.2, 1/1/1",
38
+ "units-name": "octets",
39
+ "subscriptionid": "test-sub-baseline-mdm",
40
+ "collection-interval": 60,
41
+ "counter-group": "telemetry:/base/interfaces/interface"
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "nsp-rt-analytics:baseline": [
3
+ {
4
+ "@": {
5
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline",
6
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']"
7
+ },
8
+ "period": "pt5m",
9
+ "resource": "/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']",
10
+ "description": "restconf_baseline_nodeB",
11
+ "counter": "received-octets",
12
+ "admin-state": "up",
13
+ "type": "counter",
14
+ "window-duration": "pt1m",
15
+ "update-status": "active",
16
+ "use-bit-rate": false,
17
+ "name": "2.2.2.2, 1/1/1",
18
+ "units-name": "octets",
19
+ "subscriptionid": "test-sub-baseline-mdm",
20
+ "collection-interval": 60,
21
+ "counter-group": "telemetry:/base/interfaces/interface"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "nsp-rt-analytics:baseline-detector": [
3
+ {
4
+ "@": {
5
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline/baseline-detector",
6
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']/baseline-detector[algorithm='relative-diff-mean']"
7
+ },
8
+ "evaluate-when": "end-of-window",
9
+ "comparison": "greater-than",
10
+ "evaluate-what": "value_",
11
+ "threshold": 0.1,
12
+ "algorithm": "relative-diff-mean"
13
+ }
14
+ ]
15
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "updated": {
3
+ "@": {
4
+ "nsp-model:schema-nodeid": "/nsp-rt-analytics:baselines/baseline/baseline-detector",
5
+ "nsp-model:identifier": "/nsp-rt-analytics:baselines/baseline[type='counter'][resource='/network-device-mgr:network-devices/network-device[name='2.2.2.2']/root/nokia-state:state/port[port-id='1/1/1']'][counter-group='telemetry:/base/interfaces/interface'][counter='received-octets'][period='pt5m'][window-duration='pt1m']/baseline-detector[algorithm='relative-diff-mean']"
6
+ },
7
+ "evaluate-when": "end-of-window",
8
+ "comparison": "less-than",
9
+ "evaluate-what": "value_",
10
+ "threshold": 0.1,
11
+ "algorithm": "relative-diff-mean"
12
+ }
13
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createSubscription",
12
+ "enum": [
13
+ "createSubscription",
14
+ "createBaseline",
15
+ "getBaseline",
16
+ "createBaselineDetector",
17
+ "deleteBaseline",
18
+ "getBaselineDetector",
19
+ "patchBaselineDetector",
20
+ "deleteBaselineDetector",
21
+ "deleteSubscription",
22
+ "getAllBaselines"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ },
26
+ "baselineDetector": {
27
+ "type": "string",
28
+ "description": "",
29
+ "parse": false,
30
+ "encode": false,
31
+ "encrypt": {
32
+ "type": "AES",
33
+ "key": ""
34
+ },
35
+ "external_name": "baseline-detector"
36
+ }
37
+ },
38
+ "definitions": {}
39
+ }