@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,51 @@
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": "retrieveNetworkInterfaces",
12
+ "enum": [
13
+ "retrieveNetworkInterfaces",
14
+ "retrieveNetworkInterfacesConfig",
15
+ "retrieveNetworkSubInterfaces",
16
+ "retrieveNetworkSubInterfacesConfig",
17
+ "retrieveNetworkSubInterfacesState",
18
+ "retrieveNetworkSubInterfacesIPv4Addresses",
19
+ "retrieveNetworkSubInterfacesIPv6Addresses",
20
+ "retrieveNetworkInterfacesUnnumbered",
21
+ "retrieveNetworkInterfacesUnnumberedIntf",
22
+ "retrieveNetworkInstance",
23
+ "retrieveResyncPolicyNodeVersionEntity"
24
+ ],
25
+ "external_name": "ph_request_type"
26
+ },
27
+ "interfaceParam": {
28
+ "type": "string",
29
+ "description": "",
30
+ "parse": false,
31
+ "encode": false,
32
+ "encrypt": {
33
+ "type": "AES",
34
+ "key": ""
35
+ },
36
+ "external_name": "interface"
37
+ },
38
+ "resyncPolicy": {
39
+ "type": "string",
40
+ "description": "",
41
+ "parse": false,
42
+ "encode": false,
43
+ "encrypt": {
44
+ "type": "AES",
45
+ "key": ""
46
+ },
47
+ "external_name": "resync-policy"
48
+ }
49
+ },
50
+ "definitions": {}
51
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getSAPNetwork",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/network/network-types/ietf-sap-ntw:sap-network?{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/getSAPNetwork-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getIETFNetworkFromSpecificNode",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/network/{pathv1}?{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/getIETFNetworkFromSpecificNode-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getSAPsOnASpecificNodeOfSpecificServiceType",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/restconf/data/ietf-network:networks/{pathv1}/{pathv2}/{pathv3}?{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/getSAPsOnASpecificNodeOfSpecificServiceType-default.json"
63
+ }
64
+ ]
65
+ }
66
+ ]
67
+ }
@@ -0,0 +1,483 @@
1
+ {
2
+ "ietf-network:node": [
3
+ {
4
+ "node-id": "11.11.11.11",
5
+ "ietf-sap-ntw:service": [
6
+ {
7
+ "service-type": "ietf-vpn-common:vpws",
8
+ "sap": [
9
+ {
10
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/lag[lag-id='10']",
11
+ "attachment-interface": "Lag 10",
12
+ "interface-type": "ietf-sap-ntw:lag",
13
+ "encapsulation-type": "ietf-vpn-common:lag-int",
14
+ "role": "ietf-sap-ntw:uni",
15
+ "sap-status": {
16
+ "status": "ietf-vpn-common:op-up"
17
+ }
18
+ },
19
+ {
20
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=3']",
21
+ "attachment-interface": "Port 1/1/3",
22
+ "interface-type": "ietf-sap-ntw:phy",
23
+ "encapsulation-type": "ietf-vpn-common:dot1q",
24
+ "role": "ietf-sap-ntw:uni",
25
+ "sap-status": {
26
+ "status": "ietf-vpn-common:op-down"
27
+ }
28
+ },
29
+ {
30
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
31
+ "attachment-interface": "Port 1/1/8",
32
+ "interface-type": "ietf-sap-ntw:phy",
33
+ "encapsulation-type": "ietf-vpn-common:dot1q",
34
+ "role": "ietf-sap-ntw:uni",
35
+ "sap-status": {
36
+ "status": "ietf-vpn-common:op-up"
37
+ }
38
+ },
39
+ {
40
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=9']",
41
+ "attachment-interface": "Port 1/1/9",
42
+ "interface-type": "ietf-sap-ntw:phy",
43
+ "encapsulation-type": "ietf-vpn-common:dot1q",
44
+ "role": "ietf-sap-ntw:uni",
45
+ "sap-status": {
46
+ "status": "ietf-vpn-common:op-up"
47
+ }
48
+ },
49
+ {
50
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=11']",
51
+ "attachment-interface": "Port 1/1/11",
52
+ "interface-type": "ietf-sap-ntw:phy",
53
+ "encapsulation-type": "ietf-vpn-common:dot1q",
54
+ "role": "ietf-sap-ntw:uni",
55
+ "sap-status": {
56
+ "status": "ietf-vpn-common:op-down"
57
+ }
58
+ },
59
+ {
60
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=12']",
61
+ "attachment-interface": "Port 1/1/12",
62
+ "interface-type": "ietf-sap-ntw:phy",
63
+ "encapsulation-type": "ietf-vpn-common:qinq",
64
+ "role": "ietf-sap-ntw:uni",
65
+ "sap-status": {
66
+ "status": "ietf-vpn-common:op-down"
67
+ }
68
+ },
69
+ {
70
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=1']",
71
+ "attachment-interface": "Port 1/2/1",
72
+ "interface-type": "ietf-sap-ntw:phy",
73
+ "encapsulation-type": "ietf-vpn-common:dot1q",
74
+ "role": "ietf-sap-ntw:uni",
75
+ "sap-status": {
76
+ "status": "ietf-vpn-common:op-up"
77
+ }
78
+ },
79
+ {
80
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=2']",
81
+ "attachment-interface": "Port 1/2/2",
82
+ "interface-type": "ietf-sap-ntw:phy",
83
+ "encapsulation-type": "ietf-vpn-common:dot1q",
84
+ "role": "ietf-sap-ntw:uni",
85
+ "sap-status": {
86
+ "status": "ietf-vpn-common:op-up"
87
+ }
88
+ },
89
+ {
90
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=3']",
91
+ "attachment-interface": "Port 1/2/3",
92
+ "interface-type": "ietf-sap-ntw:phy",
93
+ "encapsulation-type": "ietf-vpn-common:qinq",
94
+ "role": "ietf-sap-ntw:uni",
95
+ "sap-status": {
96
+ "status": "ietf-vpn-common:op-up"
97
+ }
98
+ },
99
+ {
100
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=10']",
101
+ "attachment-interface": "Port 1/2/10",
102
+ "interface-type": "ietf-sap-ntw:phy",
103
+ "encapsulation-type": "ietf-vpn-common:qinq",
104
+ "role": "ietf-sap-ntw:uni",
105
+ "sap-status": {
106
+ "status": "ietf-vpn-common:op-up"
107
+ }
108
+ },
109
+ {
110
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=11']",
111
+ "attachment-interface": "Port 1/2/11",
112
+ "interface-type": "ietf-sap-ntw:phy",
113
+ "encapsulation-type": "ietf-vpn-common:untagged-int",
114
+ "role": "ietf-sap-ntw:uni",
115
+ "sap-status": {
116
+ "status": "ietf-vpn-common:op-up"
117
+ }
118
+ },
119
+ {
120
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=12']",
121
+ "attachment-interface": "Port 1/2/12",
122
+ "interface-type": "ietf-sap-ntw:phy",
123
+ "encapsulation-type": "ietf-vpn-common:qinq",
124
+ "role": "ietf-sap-ntw:uni",
125
+ "sap-status": {
126
+ "status": "ietf-vpn-common:op-up"
127
+ }
128
+ },
129
+ {
130
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=13']",
131
+ "attachment-interface": "Port 1/2/13",
132
+ "interface-type": "ietf-sap-ntw:phy",
133
+ "encapsulation-type": "ietf-vpn-common:dot1q",
134
+ "role": "ietf-sap-ntw:uni",
135
+ "sap-status": {
136
+ "status": "ietf-vpn-common:op-up"
137
+ }
138
+ },
139
+ {
140
+ "sap-id": "/nsp-service:services/service-layer/eline[service-id='epipe21']/endpoint[endpoint-id='11.11.11.11-1/1/8:21']",
141
+ "parent-termination-point": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
142
+ "attachment-interface": "Port 1/1/8:21.0",
143
+ "interface-type": "ietf-sap-ntw:logical",
144
+ "encapsulation-type": "ietf-vpn-common:qinany",
145
+ "role": "ietf-sap-ntw:uni",
146
+ "sap-status": {
147
+ "status": "ietf-vpn-common:op-up"
148
+ },
149
+ "service-status": {
150
+ "status": "ietf-vpn-common:op-down"
151
+ }
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "service-type": "ietf-vpn-common:vpls",
157
+ "sap": [
158
+ {
159
+ "sap-id": "/nsp-service:services/service-layer/elan[service-id='vpls22']/endpoint[endpoint-id='11.11.11.11-1/1/8:22']",
160
+ "parent-termination-point": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
161
+ "attachment-interface": "Port 1/1/8:22.0",
162
+ "interface-type": "ietf-sap-ntw:logical",
163
+ "encapsulation-type": "ietf-vpn-common:qinany",
164
+ "role": "ietf-sap-ntw:uni",
165
+ "sap-status": {
166
+ "status": "ietf-vpn-common:op-up"
167
+ },
168
+ "service-status": {
169
+ "status": "ietf-vpn-common:op-up"
170
+ }
171
+ },
172
+ {
173
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/lag[lag-id='10']",
174
+ "attachment-interface": "Lag 10",
175
+ "interface-type": "ietf-sap-ntw:lag",
176
+ "encapsulation-type": "ietf-vpn-common:lag-int",
177
+ "role": "ietf-sap-ntw:uni",
178
+ "sap-status": {
179
+ "status": "ietf-vpn-common:op-up"
180
+ }
181
+ },
182
+ {
183
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=3']",
184
+ "attachment-interface": "Port 1/1/3",
185
+ "interface-type": "ietf-sap-ntw:phy",
186
+ "encapsulation-type": "ietf-vpn-common:dot1q",
187
+ "role": "ietf-sap-ntw:uni",
188
+ "sap-status": {
189
+ "status": "ietf-vpn-common:op-down"
190
+ }
191
+ },
192
+ {
193
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
194
+ "attachment-interface": "Port 1/1/8",
195
+ "interface-type": "ietf-sap-ntw:phy",
196
+ "encapsulation-type": "ietf-vpn-common:dot1q",
197
+ "role": "ietf-sap-ntw:uni",
198
+ "sap-status": {
199
+ "status": "ietf-vpn-common:op-up"
200
+ }
201
+ },
202
+ {
203
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=9']",
204
+ "attachment-interface": "Port 1/1/9",
205
+ "interface-type": "ietf-sap-ntw:phy",
206
+ "encapsulation-type": "ietf-vpn-common:dot1q",
207
+ "role": "ietf-sap-ntw:uni",
208
+ "sap-status": {
209
+ "status": "ietf-vpn-common:op-up"
210
+ }
211
+ },
212
+ {
213
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=11']",
214
+ "attachment-interface": "Port 1/1/11",
215
+ "interface-type": "ietf-sap-ntw:phy",
216
+ "encapsulation-type": "ietf-vpn-common:dot1q",
217
+ "role": "ietf-sap-ntw:uni",
218
+ "sap-status": {
219
+ "status": "ietf-vpn-common:op-down"
220
+ }
221
+ },
222
+ {
223
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=12']",
224
+ "attachment-interface": "Port 1/1/12",
225
+ "interface-type": "ietf-sap-ntw:phy",
226
+ "encapsulation-type": "ietf-vpn-common:qinq",
227
+ "role": "ietf-sap-ntw:uni",
228
+ "sap-status": {
229
+ "status": "ietf-vpn-common:op-down"
230
+ }
231
+ },
232
+ {
233
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=1']",
234
+ "attachment-interface": "Port 1/2/1",
235
+ "interface-type": "ietf-sap-ntw:phy",
236
+ "encapsulation-type": "ietf-vpn-common:dot1q",
237
+ "role": "ietf-sap-ntw:uni",
238
+ "sap-status": {
239
+ "status": "ietf-vpn-common:op-up"
240
+ }
241
+ },
242
+ {
243
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=2']",
244
+ "attachment-interface": "Port 1/2/2",
245
+ "interface-type": "ietf-sap-ntw:phy",
246
+ "encapsulation-type": "ietf-vpn-common:dot1q",
247
+ "role": "ietf-sap-ntw:uni",
248
+ "sap-status": {
249
+ "status": "ietf-vpn-common:op-up"
250
+ }
251
+ },
252
+ {
253
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=3']",
254
+ "attachment-interface": "Port 1/2/3",
255
+ "interface-type": "ietf-sap-ntw:phy",
256
+ "encapsulation-type": "ietf-vpn-common:qinq",
257
+ "role": "ietf-sap-ntw:uni",
258
+ "sap-status": {
259
+ "status": "ietf-vpn-common:op-up"
260
+ }
261
+ },
262
+ {
263
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=10']",
264
+ "attachment-interface": "Port 1/2/10",
265
+ "interface-type": "ietf-sap-ntw:phy",
266
+ "encapsulation-type": "ietf-vpn-common:qinq",
267
+ "role": "ietf-sap-ntw:uni",
268
+ "sap-status": {
269
+ "status": "ietf-vpn-common:op-up"
270
+ }
271
+ },
272
+ {
273
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=11']",
274
+ "attachment-interface": "Port 1/2/11",
275
+ "interface-type": "ietf-sap-ntw:phy",
276
+ "encapsulation-type": "ietf-vpn-common:untagged-int",
277
+ "role": "ietf-sap-ntw:uni",
278
+ "sap-status": {
279
+ "status": "ietf-vpn-common:op-up"
280
+ }
281
+ },
282
+ {
283
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=12']",
284
+ "attachment-interface": "Port 1/2/12",
285
+ "interface-type": "ietf-sap-ntw:phy",
286
+ "encapsulation-type": "ietf-vpn-common:qinq",
287
+ "role": "ietf-sap-ntw:uni",
288
+ "sap-status": {
289
+ "status": "ietf-vpn-common:op-up"
290
+ }
291
+ },
292
+ {
293
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=13']",
294
+ "attachment-interface": "Port 1/2/13",
295
+ "interface-type": "ietf-sap-ntw:phy",
296
+ "encapsulation-type": "ietf-vpn-common:dot1q",
297
+ "role": "ietf-sap-ntw:uni",
298
+ "sap-status": {
299
+ "status": "ietf-vpn-common:op-up"
300
+ }
301
+ }
302
+ ]
303
+ },
304
+ {
305
+ "service-type": "ietf-vpn-common:l3vpn",
306
+ "sap": [
307
+ {
308
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/lag[lag-id='10']",
309
+ "attachment-interface": "Lag 10",
310
+ "interface-type": "ietf-sap-ntw:lag",
311
+ "encapsulation-type": "ietf-vpn-common:lag-int",
312
+ "role": "ietf-sap-ntw:uni",
313
+ "sap-status": {
314
+ "status": "ietf-vpn-common:op-up"
315
+ }
316
+ },
317
+ {
318
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=3']",
319
+ "attachment-interface": "Port 1/1/3",
320
+ "interface-type": "ietf-sap-ntw:phy",
321
+ "encapsulation-type": "ietf-vpn-common:dot1q",
322
+ "role": "ietf-sap-ntw:uni",
323
+ "sap-status": {
324
+ "status": "ietf-vpn-common:op-down"
325
+ }
326
+ },
327
+ {
328
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
329
+ "attachment-interface": "Port 1/1/8",
330
+ "interface-type": "ietf-sap-ntw:phy",
331
+ "encapsulation-type": "ietf-vpn-common:dot1q",
332
+ "role": "ietf-sap-ntw:uni",
333
+ "sap-status": {
334
+ "status": "ietf-vpn-common:op-up"
335
+ }
336
+ },
337
+ {
338
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=9']",
339
+ "attachment-interface": "Port 1/1/9",
340
+ "interface-type": "ietf-sap-ntw:phy",
341
+ "encapsulation-type": "ietf-vpn-common:dot1q",
342
+ "role": "ietf-sap-ntw:uni",
343
+ "sap-status": {
344
+ "status": "ietf-vpn-common:op-up"
345
+ }
346
+ },
347
+ {
348
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=11']",
349
+ "attachment-interface": "Port 1/1/11",
350
+ "interface-type": "ietf-sap-ntw:phy",
351
+ "encapsulation-type": "ietf-vpn-common:dot1q",
352
+ "role": "ietf-sap-ntw:uni",
353
+ "sap-status": {
354
+ "status": "ietf-vpn-common:op-down"
355
+ }
356
+ },
357
+ {
358
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=12']",
359
+ "attachment-interface": "Port 1/1/12",
360
+ "interface-type": "ietf-sap-ntw:phy",
361
+ "encapsulation-type": "ietf-vpn-common:qinq",
362
+ "role": "ietf-sap-ntw:uni",
363
+ "sap-status": {
364
+ "status": "ietf-vpn-common:op-down"
365
+ }
366
+ },
367
+ {
368
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=1']",
369
+ "attachment-interface": "Port 1/2/1",
370
+ "interface-type": "ietf-sap-ntw:phy",
371
+ "encapsulation-type": "ietf-vpn-common:dot1q",
372
+ "role": "ietf-sap-ntw:uni",
373
+ "sap-status": {
374
+ "status": "ietf-vpn-common:op-up"
375
+ }
376
+ },
377
+ {
378
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=2']",
379
+ "attachment-interface": "Port 1/2/2",
380
+ "interface-type": "ietf-sap-ntw:phy",
381
+ "encapsulation-type": "ietf-vpn-common:dot1q",
382
+ "role": "ietf-sap-ntw:uni",
383
+ "sap-status": {
384
+ "status": "ietf-vpn-common:op-up"
385
+ }
386
+ },
387
+ {
388
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=3']",
389
+ "attachment-interface": "Port 1/2/3",
390
+ "interface-type": "ietf-sap-ntw:phy",
391
+ "encapsulation-type": "ietf-vpn-common:qinq",
392
+ "role": "ietf-sap-ntw:uni",
393
+ "sap-status": {
394
+ "status": "ietf-vpn-common:op-up"
395
+ }
396
+ },
397
+ {
398
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=10']",
399
+ "attachment-interface": "Port 1/2/10",
400
+ "interface-type": "ietf-sap-ntw:phy",
401
+ "encapsulation-type": "ietf-vpn-common:qinq",
402
+ "role": "ietf-sap-ntw:uni",
403
+ "sap-status": {
404
+ "status": "ietf-vpn-common:op-up"
405
+ }
406
+ },
407
+ {
408
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=11']",
409
+ "attachment-interface": "Port 1/2/11",
410
+ "interface-type": "ietf-sap-ntw:phy",
411
+ "encapsulation-type": "ietf-vpn-common:untagged-int",
412
+ "role": "ietf-sap-ntw:uni",
413
+ "sap-status": {
414
+ "status": "ietf-vpn-common:op-up"
415
+ }
416
+ },
417
+ {
418
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=12']",
419
+ "attachment-interface": "Port 1/2/12",
420
+ "interface-type": "ietf-sap-ntw:phy",
421
+ "encapsulation-type": "ietf-vpn-common:qinq",
422
+ "role": "ietf-sap-ntw:uni",
423
+ "sap-status": {
424
+ "status": "ietf-vpn-common:op-up"
425
+ }
426
+ },
427
+ {
428
+ "sap-id": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=2/card=2/port=13']",
429
+ "attachment-interface": "Port 1/2/13",
430
+ "interface-type": "ietf-sap-ntw:phy",
431
+ "encapsulation-type": "ietf-vpn-common:dot1q",
432
+ "role": "ietf-sap-ntw:uni",
433
+ "sap-status": {
434
+ "status": "ietf-vpn-common:op-up"
435
+ }
436
+ },
437
+ {
438
+ "sap-id": "/nsp-service:services/service-layer/l3vpn[service-id='vprn23']/endpoint[endpoint-id='11.11.11.11-int1']",
439
+ "parent-termination-point": "/nsp-equipment:network/network-element[ne-id='11.11.11.11']/hardware-component/port[component-id='shelf=1/slot=1/card=1/slot=1/card=1/port=8']",
440
+ "attachment-interface": "int1",
441
+ "interface-type": "ietf-sap-ntw:logical",
442
+ "encapsulation-type": "ietf-vpn-common:qinany",
443
+ "role": "ietf-sap-ntw:uni",
444
+ "sap-status": {
445
+ "status": "ietf-vpn-common:op-up"
446
+ },
447
+ "service-status": {
448
+ "status": "ietf-vpn-common:op-up"
449
+ }
450
+ }
451
+ ]
452
+ }
453
+ ]
454
+ },
455
+ {
456
+ "node-id": "11.11.11.11",
457
+ "ietf-network-topology:termination-point": [
458
+ {
459
+ "tp-id": "Port 1/1/1",
460
+ "ietf-l2-topology:l2-termination-point-attributes": {
461
+ "interface-name": "Port 1/1/1",
462
+ "mac-address": "C4:DB:01:01:00:01",
463
+ "encapsulation-type": "ietf-l2-topology:ethernet",
464
+ "lag": false,
465
+ "unnumbered-id": [
466
+ 35684352
467
+ ],
468
+ "member-link-tp": [],
469
+ "nsp-ietf-network-topology:nsp-attributes": []
470
+ },
471
+ "ietf-l3-unicast-topology:l3-termination-point-attributes": {}
472
+ }
473
+ ],
474
+ "ietf-l2-topology:l2-node-attributes": {
475
+ "name": "sr11",
476
+ "management-mac": "C4:DB:FF:00:00:00",
477
+ "management-address": [
478
+ "135.228.148.120"
479
+ ]
480
+ }
481
+ }
482
+ ]
483
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "ietf-sap-ntw:sap-network": {
3
+ "service-type": [
4
+ "ietf-vpn-common:vpws",
5
+ "ietf-vpn-common:vpls",
6
+ "ietf-vpn-common:l3vpn"
7
+ ]
8
+ }
9
+ }