@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,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getL2TopologyLinks",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/ietf-network-topology:link?{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": "getL2TopologyAttributes",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/ietf-l2-topology:l2-topology-attributes?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getL2TopologyAttributes-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getL2TopologyNodeTerminationPoints",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/ietf-network-topology:termination-point?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": "mockdatafiles/getL2TopologyNodeTerminationPoints-default.json"
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "ietf-l2-topology:l2-topology-attributes": {
3
+ "name": "L2Topology"
4
+ }
5
+ }
@@ -0,0 +1,69 @@
1
+ {
2
+ "ietf-network-topology:termination-point": [
3
+ {
4
+ "tp-id": "1/1/3",
5
+ "ietf-l2-topology:l2-termination-point-attributes": {
6
+ "interface-name": "1/1/3",
7
+ "mac-address": "c2:12:01:01:00:03",
8
+ "encapsulation-type": "ietf-l2-topology:ethernet",
9
+ "lag": false,
10
+ "unnumbered-id": [
11
+ 11
12
+ ],
13
+ "member-link-tp": [],
14
+ "nsp-ietf-network-topology:nsp-attributes": []
15
+ },
16
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {}
17
+ },
18
+ {
19
+ "tp-id": "1/1/6",
20
+ "ietf-l2-topology:l2-termination-point-attributes": {
21
+ "interface-name": "1/1/6",
22
+ "mac-address": "c2:12:01:01:00:06",
23
+ "encapsulation-type": "ietf-l2-topology:ethernet",
24
+ "lag": false,
25
+ "unnumbered-id": [
26
+ 11
27
+ ],
28
+ "member-link-tp": [],
29
+ "nsp-ietf-network-topology:nsp-attributes": []
30
+ },
31
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {}
32
+ },
33
+ {
34
+ "tp-id": "LAG-1",
35
+ "ietf-l2-topology:l2-termination-point-attributes": {
36
+ "interface-name": "LAG-1",
37
+ "mac-address": "c0:ab:ff:00:01:41",
38
+ "encapsulation-type": "ietf-l2-topology:ethernet",
39
+ "lag": true,
40
+ "unnumbered-id": [
41
+ 1342177281
42
+ ],
43
+ "member-link-tp": [
44
+ "/ietf-network:networks/network[network-id='L2Topology']/node[node-id='92.168.96.50']/ietf-network-topology:termination-point[tp-id='1/1/6']",
45
+ "/ietf-network:networks/network[network-id='L2Topology']/node[node-id='92.168.96.50']/ietf-network-topology:termination-point[tp-id='1/1/2']"
46
+ ],
47
+ "nsp-ietf-network-topology:nsp-attributes": [
48
+ "92.168.96.32:LAG-1--92.168.96.50:LAG-1"
49
+ ]
50
+ },
51
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {}
52
+ },
53
+ {
54
+ "tp-id": "1/1/2",
55
+ "ietf-l2-topology:l2-termination-point-attributes": {
56
+ "interface-name": "1/1/2",
57
+ "mac-address": "c2:12:01:01:00:02",
58
+ "encapsulation-type": "ietf-l2-topology:ethernet",
59
+ "lag": false,
60
+ "unnumbered-id": [
61
+ 11
62
+ ],
63
+ "member-link-tp": [],
64
+ "nsp-ietf-network-topology:nsp-attributes": []
65
+ },
66
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {}
67
+ }
68
+ ]
69
+ }
@@ -0,0 +1,21 @@
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": "getL2TopologyLinks",
12
+ "enum": [
13
+ "getL2TopologyLinks",
14
+ "getL2TopologyAttributes",
15
+ "getL2TopologyNodeTerminationPoints"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,277 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getSpecificNetwork",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{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": "mockdatafiles/getSpecificNetwork-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getSupportingNetwork",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/supporting-network?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getSupportingNetwork-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getNetworkType",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/network-types?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": "mockdatafiles/getNetworkType-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "getNetwork",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/network?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": ""
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "getL3TopologyAttribute",
89
+ "protocol": "REST",
90
+ "method": "GET",
91
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/ietf-l3-unicast-topology:l3-topology-attributes?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "sendGetBody": false,
97
+ "requestDatatype": "JSON",
98
+ "responseDatatype": "JSON",
99
+ "headers": {},
100
+ "responseObjects": [
101
+ {
102
+ "type": "default",
103
+ "key": "",
104
+ "mockFile": "mockdatafiles/getL3TopologyAttribute-default.json"
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "name": "getAllNodesInANetwork",
110
+ "protocol": "REST",
111
+ "method": "GET",
112
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/node?{query}",
113
+ "requestSchema": "schema.json",
114
+ "responseSchema": "schema.json",
115
+ "timeout": 0,
116
+ "sendEmpty": false,
117
+ "sendGetBody": false,
118
+ "requestDatatype": "JSON",
119
+ "responseDatatype": "JSON",
120
+ "headers": {},
121
+ "responseObjects": [
122
+ {
123
+ "type": "default",
124
+ "key": "",
125
+ "mockFile": "mockdatafiles/getAllNodesInANetwork-default.json"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "name": "getSpecificNodeInANetwork",
131
+ "protocol": "REST",
132
+ "method": "GET",
133
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}?{query}",
134
+ "requestSchema": "schema.json",
135
+ "responseSchema": "schema.json",
136
+ "timeout": 0,
137
+ "sendEmpty": false,
138
+ "sendGetBody": false,
139
+ "requestDatatype": "JSON",
140
+ "responseDatatype": "JSON",
141
+ "headers": {},
142
+ "responseObjects": [
143
+ {
144
+ "type": "default",
145
+ "key": "",
146
+ "mockFile": "mockdatafiles/getSpecificNodeInANetwork-default.json"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "name": "getSpecificLinkInANetwork",
152
+ "protocol": "REST",
153
+ "method": "GET",
154
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}?{query}",
155
+ "requestSchema": "schema.json",
156
+ "responseSchema": "schema.json",
157
+ "timeout": 0,
158
+ "sendEmpty": false,
159
+ "sendGetBody": false,
160
+ "requestDatatype": "JSON",
161
+ "responseDatatype": "JSON",
162
+ "headers": {},
163
+ "responseObjects": [
164
+ {
165
+ "type": "default",
166
+ "key": "",
167
+ "mockFile": "mockdatafiles/getSpecificLinkInANetwork-default.json"
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "name": "getSupportingLink",
173
+ "protocol": "REST",
174
+ "method": "GET",
175
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/supporting-link?{query}",
176
+ "requestSchema": "schema.json",
177
+ "responseSchema": "schema.json",
178
+ "timeout": 0,
179
+ "sendEmpty": false,
180
+ "sendGetBody": false,
181
+ "requestDatatype": "JSON",
182
+ "responseDatatype": "JSON",
183
+ "headers": {},
184
+ "responseObjects": [
185
+ {
186
+ "type": "default",
187
+ "key": "",
188
+ "mockFile": "mockdatafiles/getSupportingLink-default.json"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ "name": "getSpecificTerminationPointsOfANode",
194
+ "protocol": "REST",
195
+ "method": "GET",
196
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/{pathv3}?{query}",
197
+ "requestSchema": "schema.json",
198
+ "responseSchema": "schema.json",
199
+ "timeout": 0,
200
+ "sendEmpty": false,
201
+ "sendGetBody": false,
202
+ "requestDatatype": "JSON",
203
+ "responseDatatype": "JSON",
204
+ "headers": {},
205
+ "responseObjects": [
206
+ {
207
+ "type": "default",
208
+ "key": "",
209
+ "mockFile": "mockdatafiles/getSpecificTerminationPointsOfANode-default.json"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "name": "getSupportingTerminationPoint",
215
+ "protocol": "REST",
216
+ "method": "GET",
217
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/{pathv3}/supporting-termination-point?{query}",
218
+ "requestSchema": "schema.json",
219
+ "responseSchema": "schema.json",
220
+ "timeout": 0,
221
+ "sendEmpty": false,
222
+ "sendGetBody": false,
223
+ "requestDatatype": "JSON",
224
+ "responseDatatype": "JSON",
225
+ "headers": {},
226
+ "responseObjects": [
227
+ {
228
+ "type": "default",
229
+ "key": "",
230
+ "mockFile": "mockdatafiles/getSupportingTerminationPoint-default.json"
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "name": "l3GETSRTopologyNodeAttributes",
236
+ "protocol": "REST",
237
+ "method": "GET",
238
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/ietf-l3-unicast-topology:l3-node-attributes/ietf-sr-mpls-topology:sr-mpls?{query}",
239
+ "requestSchema": "schema.json",
240
+ "responseSchema": "schema.json",
241
+ "timeout": 0,
242
+ "sendEmpty": false,
243
+ "sendGetBody": false,
244
+ "requestDatatype": "JSON",
245
+ "responseDatatype": "JSON",
246
+ "headers": {},
247
+ "responseObjects": [
248
+ {
249
+ "type": "default",
250
+ "key": "",
251
+ "mockFile": "mockdatafiles/l3GETSRTopologyNodeAttributes-default.json"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "name": "l3GETSRTopologyLinkAttributes",
257
+ "protocol": "REST",
258
+ "method": "GET",
259
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/ietf-l3-unicast-topology:l3-link-attributes/ietf-sr-mpls-topology:sr-mpls?{query}",
260
+ "requestSchema": "schema.json",
261
+ "responseSchema": "schema.json",
262
+ "timeout": 0,
263
+ "sendEmpty": false,
264
+ "sendGetBody": false,
265
+ "requestDatatype": "JSON",
266
+ "responseDatatype": "JSON",
267
+ "headers": {},
268
+ "responseObjects": [
269
+ {
270
+ "type": "default",
271
+ "key": "",
272
+ "mockFile": "mockdatafiles/l3GETSRTopologyLinkAttributes-default.json"
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ }
@@ -0,0 +1,207 @@
1
+ {
2
+ "ietf-network:node": [
3
+ {
4
+ "node-id": "11.50.150.39",
5
+ "ietf-network-topology:termination-point": [
6
+ {
7
+ "tp-id": "11.30.39.6",
8
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
9
+ "ip-address": [
10
+ "11.30.39.6"
11
+ ],
12
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
13
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.39']/ietf-network-topology:termination-point[tp-id='11.30.39.6']",
14
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.39']",
15
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "tp-id": "11.30.39.2",
21
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
22
+ "ip-address": [
23
+ "11.30.39.2"
24
+ ],
25
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
26
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.39']/ietf-network-topology:termination-point[tp-id='11.30.39.2']",
27
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.39']",
28
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
29
+ }
30
+ }
31
+ }
32
+ ],
33
+ "ietf-l3-unicast-topology:l3-node-attributes": {
34
+ "name": "11.50.150.39",
35
+ "flag": [
36
+ "nsp-ietf-network-topology:routing-instance"
37
+ ],
38
+ "router-id": [
39
+ "11.50.150.39"
40
+ ],
41
+ "nsp-ietf-network-topology:nsp-attributes": [],
42
+ "prefix": [
43
+ {
44
+ "prefix": "11.50.150.39/32",
45
+ "metric": 0
46
+ },
47
+ {
48
+ "prefix": "11.50.150.30/32",
49
+ "metric": 10
50
+ }
51
+ ],
52
+ "ietf-l3-te-topology:l3-te-node-attributes": {
53
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.39']",
54
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
55
+ },
56
+ "ietf-sr-mpls-topology:sr-mpls": {
57
+ "msds": {
58
+ "node-msd": [
59
+ {
60
+ "msd-type": "ietf-sr-mpls-topology:msd-mpls",
61
+ "msd-value": 12
62
+ },
63
+ {
64
+ "msd-type": "ietf-sr-mpls-topology:msd-erld",
65
+ "msd-value": 15
66
+ }
67
+ ]
68
+ }
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "node-id": "11.50.150.31",
74
+ "ietf-network-topology:termination-point": [
75
+ {
76
+ "tp-id": "11.30.1.2",
77
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
78
+ "ip-address": [
79
+ "11.30.1.2"
80
+ ],
81
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
82
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.31']/ietf-network-topology:termination-point[tp-id='11.30.1.2']",
83
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.31']",
84
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
85
+ }
86
+ }
87
+ }
88
+ ],
89
+ "ietf-l3-unicast-topology:l3-node-attributes": {
90
+ "name": "11.50.150.31",
91
+ "flag": [
92
+ "nsp-ietf-network-topology:routing-instance"
93
+ ],
94
+ "router-id": [
95
+ "11.50.150.31"
96
+ ],
97
+ "nsp-ietf-network-topology:nsp-attributes": [],
98
+ "prefix": [
99
+ {
100
+ "prefix": "11.50.150.31/32",
101
+ "metric": 0
102
+ }
103
+ ],
104
+ "ietf-l3-te-topology:l3-te-node-attributes": {
105
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.31']",
106
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
107
+ },
108
+ "ietf-sr-mpls-topology:sr-mpls": {
109
+ "msds": {
110
+ "node-msd": [
111
+ {
112
+ "msd-type": "ietf-sr-mpls-topology:msd-mpls",
113
+ "msd-value": 3
114
+ },
115
+ {
116
+ "msd-type": "ietf-sr-mpls-topology:msd-erld",
117
+ "msd-value": 3
118
+ }
119
+ ]
120
+ }
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "node-id": "11.50.150.30",
126
+ "ietf-network-topology:termination-point": [
127
+ {
128
+ "tp-id": "11.30.1.1",
129
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
130
+ "ip-address": [
131
+ "11.30.1.1"
132
+ ],
133
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
134
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']/ietf-network-topology:termination-point[tp-id='11.30.1.1']",
135
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']",
136
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
137
+ }
138
+ }
139
+ },
140
+ {
141
+ "tp-id": "11.30.39.5",
142
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
143
+ "ip-address": [
144
+ "11.30.39.5"
145
+ ],
146
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
147
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']/ietf-network-topology:termination-point[tp-id='11.30.39.5']",
148
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']",
149
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
150
+ }
151
+ }
152
+ },
153
+ {
154
+ "tp-id": "11.30.39.1",
155
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {
156
+ "ip-address": [
157
+ "11.30.39.1"
158
+ ],
159
+ "ietf-l3-te-topology:l3-te-tp-attributes": {
160
+ "tp-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']/ietf-network-topology:termination-point[tp-id='11.30.39.1']",
161
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']",
162
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
163
+ }
164
+ }
165
+ }
166
+ ],
167
+ "ietf-l3-unicast-topology:l3-node-attributes": {
168
+ "name": "11.50.150.30",
169
+ "flag": [
170
+ "nsp-ietf-network-topology:routing-instance"
171
+ ],
172
+ "router-id": [
173
+ "11.50.150.30"
174
+ ],
175
+ "nsp-ietf-network-topology:nsp-attributes": [],
176
+ "prefix": [
177
+ {
178
+ "prefix": "11.50.150.30/32",
179
+ "metric": 0
180
+ },
181
+ {
182
+ "prefix": "11.50.150.39/32",
183
+ "metric": 10
184
+ }
185
+ ],
186
+ "ietf-l3-te-topology:l3-te-node-attributes": {
187
+ "node-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']/node[node-id='11.50.150.30']",
188
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
189
+ },
190
+ "ietf-sr-mpls-topology:sr-mpls": {
191
+ "msds": {
192
+ "node-msd": [
193
+ {
194
+ "msd-type": "ietf-sr-mpls-topology:msd-mpls",
195
+ "msd-value": 12
196
+ },
197
+ {
198
+ "msd-type": "ietf-sr-mpls-topology:msd-erld",
199
+ "msd-value": 15
200
+ }
201
+ ]
202
+ }
203
+ }
204
+ }
205
+ }
206
+ ]
207
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "ietf-l3-unicast-topology:l3-topology-attributes": {
3
+ "name": "TopologyId-200:100:0",
4
+ "ietf-l3-te-topology:l3-te-topology-attributes": {
5
+ "network-ref": "/ietf-network:networks/network[network-id='TE-TopologyId-200:100:0-isis']"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "ietf-network:network-types": {
3
+ "ietf-l3-unicast-topology:l3-unicast-topology": {
4
+ "ietf-sr-mpls-topology:sr-mpls": {}
5
+ }
6
+ }
7
+ }