aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be')
-rw-r--r--catalog-be/src/main/resources/config/configuration.yaml16
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.json21
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml142
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zipbin0 -> 1129 bytes
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json12
-rw-r--r--catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py3
-rw-r--r--catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py7
7 files changed, 193 insertions, 8 deletions
diff --git a/catalog-be/src/main/resources/config/configuration.yaml b/catalog-be/src/main/resources/config/configuration.yaml
index 5242652188..eb26c8a34f 100644
--- a/catalog-be/src/main/resources/config/configuration.yaml
+++ b/catalog-be/src/main/resources/config/configuration.yaml
@@ -133,6 +133,7 @@ artifactTypes:
- SNMP_POLL
- SNMP_TRAP
- GUIDE
+ - PLAN
licenseTypes:
- User
@@ -322,6 +323,11 @@ serviceDeploymentArtifacts:
- xml
OTHER:
acceptedTypes:
+
+#PLAN
+ PLAN:
+ acceptedTypes:
+ - xml
resourceDeploymentArtifacts:
HEAT:
@@ -439,6 +445,11 @@ resourceDeploymentArtifacts:
SNMP_TRAP:
acceptedTypes:
validForResourceTypes: *allResourceTypes
+
+#PLAN
+ PLAN:
+ acceptedTypes:
+ - xml
resourceInstanceDeploymentArtifacts:
HEAT_ENV:
@@ -476,6 +487,11 @@ resourceInstanceDeploymentArtifacts:
SNMP_TRAP:
acceptedTypes:
validForResourceTypes: *allResourceTypes
+
+#PLAN
+ PLAN:
+ acceptedTypes:
+ - xml
resourceInformationalArtifacts:
CHEF:
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.json b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.json
new file mode 100644
index 0000000000..8c556b9ff1
--- /dev/null
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.json
@@ -0,0 +1,21 @@
+{
+ "payloadName": "overlayTunnel.yml",
+ "contactId": "jh0003",
+ "name": "VL OVERLAYTUNNEL",
+ "description": "The node represents a overlay tunnel entity.",
+ "resourceIconPath": "network",
+ "resourceType": "VL",
+ "categories": [
+ {
+ "name": "Network Connectivity",
+ "subcategories": [
+ {
+ "name": "Virtual Links"
+ }
+ ]
+ }
+ ],
+ "tags": [
+ "VL OVERLAYTUNNEL"
+ ]
+}
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml
new file mode 100644
index 0000000000..59b0bda47f
--- /dev/null
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml
@@ -0,0 +1,142 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+description: overlay L3 vpn type definitions
+
+# *****************************************************************************
+# overlay tunnel type definitions
+# *****************************************************************************
+
+metadata:
+ id: : overlayTunnelDefinition
+ version: 0.1
+ vendor: ONAP
+ template_author: ONAP
+
+# *****************************************************************************
+# node types
+# *****************************************************************************
+
+node_types:
+
+ # *****************************************************************************
+ # Overlay tunnel service
+ # *****************************************************************************
+
+ org.openecomp.resource.vl.overlaytunnel:
+ derived_from: tosca.nodes.Root
+ description: This entity represents abstract overlay tunnel end point.
+ properties:
+ id:
+ type: string
+ description: Identifier of the Tunnel Endpoint node.
+ required: false
+ template_name:
+ type: string
+ required: false
+ version:
+ type: string
+ required: false
+ name:
+ type: string
+ description: Overlay tunnel name used by for reference by the administrator.
+ required: false
+ description:
+ type: string
+ description: Additional comments/information about overlay tunnel.
+ required: false
+ tunnelType:
+ type: string
+ constraints:
+ - valid_values: ['L3-DCI','L2-DCI']
+ description: type defines if the overlay tunnel is L3-DCI tunnel or L2-DCI tunnel.
+ required: true
+ site1_id:
+ type: string
+ description: Identifier of first DCI overlay tunnel endpoint. This could be IP address of domain controller.
+ required: true
+ site1_description:
+ type: string
+ description: Additional comments/information about overlay tunnel. Description can also be used to identify domain controller.
+ required: false
+ site1_networkName:
+ type: string
+ description: Name of the network that is being associated with overlay tunnel.
+ required: true
+ site1_routerId:
+ type: string
+ description: Identifier of router connected to L3 tunnel end point, while configuring L3-DCI tunnel.
+ required: false
+ site1_importRT1:
+ type: string
+ description: List of Route targets imported by the local router.
+ required: false
+ site1_exportRT1:
+ type: string
+ description: List of Route targets exported by the local router.
+ required: false
+ site1_vni:
+ type: integer
+ description: VXLAN ID
+ required: false
+ site1_fireWallEnable:
+ type: boolean
+ required: false
+ description: Identifies if a firewall exists in the path of overlay tunnel.
+ default: false
+ site1_fireWallId:
+ type: string
+ description: Identifier of Firewall that is in overlay tunnel path
+ required: false
+ site1_localNetworkAll:
+ type: boolean
+ description: Identifies whether all the local networks associate with the tunnel or not.
+ required: false
+ default: 'false'
+ site2_id:
+ type: string
+ description: Identifier of second DCI overlay tunnel endpoint. This could be IP address of domain controller.
+ required: true
+ site2_description:
+ type: string
+ description: Additional comments/information about overlay tunnel. Description can also be used to identify domain controller.
+ required: false
+ site2_networkName:
+ type: string
+ description: Name of the network that is being associated with overlay tunnel.
+ required: true
+ site2_routerId:
+ type: string
+ description: Identifier of router connected to L3 tunnel end point, while configuring L3-DCI tunnel.
+ required: false
+ site2_importRT1:
+ type: string
+ description: List of Route targets imported by the local router.
+ required: false
+ site2_exportRT1:
+ type: string
+ description: List of Route targets exported by the local router.
+ required: false
+ site2_vni:
+ type: integer
+ description: VXLAN ID
+ required: false
+ site2_fireWallEnable:
+ type: boolean
+ required: false
+ description: Identifies if a firewall exists in the path of overlay tunnel.
+ default: false
+ site2_fireWallId:
+ type: string
+ description: Identifier of Firewall that is in overlay tunnel path
+ required: false
+ site2_localNetworkAll:
+ type: boolean
+ description: Identifies whether all the local networks associate with the tunnel or not.
+ required: false
+ default: 'false'
+ requirements:
+ - virtualLink:
+ capability: tosca.capabilities.network.Linkable
+ relationship: tosca.relationships.network.LinksTo
+ capabilities:
+ virtual_linkable:
+ type: tosca.capabilities.network.Linkable
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip
new file mode 100644
index 0000000000..5b7e866d7e
--- /dev/null
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip
Binary files differ
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
index 0104a79c21..10e2d4c155 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
@@ -1,15 +1,15 @@
{
- "payloadName": "extZteVL.yml",
+ "payloadName": "underlayVpn.yml",
"contactId": "jh0003",
- "name": "ext ZTE VL",
- "description": "Ext ZTE VL",
+ "name": "VL UNDERLAYVPN",
+ "description": "The node represents a underlay vpn entity",
"resourceIconPath": "network",
"resourceType": "VL",
"categories": [{
"name": "Generic",
"subcategories": [{
- "name": "Network Elements"
+ "name": "Virtual Links"
}]
}],
- "tags": ["ext ZTE VL"]
-} \ No newline at end of file
+ "tags": ["VL UNDERLAYVPN"]
+}
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py b/catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py
index 0530502376..78b257d6f3 100644
--- a/catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py
+++ b/catalog-be/src/main/resources/scripts/import/tosca/importHeatTypes.py
@@ -52,7 +52,8 @@ def importHeatTypes(beHost, bePort, adminUser, fileDir, updateversion):
"contrailV2VLANSubInterface",
"multiFlavorVFC",
"vnfConfiguration",
- "underlayVpn"
+ "underlayVpn",
+ "overlayTunnel"
]
responseCodes = [200, 201]
diff --git a/catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py b/catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py
index 085467e09a..4d0ec291f5 100644
--- a/catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py
+++ b/catalog-be/src/main/resources/scripts/import/tosca/upgradeNormative.py
@@ -11,6 +11,7 @@ from importPolicyTypes import importPolicyTypes
from importGroupTypes import importGroupTypes
from importNormativeCapabilities import importNormativeCapabilities
from importNormativeInterfaceLifecycleTypes import importNormativeInterfaceLifecycleType
+from importOnapTypes import importOnapTypes
from importCommon import *
@@ -112,7 +113,11 @@ def main(argv):
resultsHeat = upgradeTypesPerConfigFile(beHost, bePort, adminUser, baseFileLocation, updateversion)
handleResults(resultsHeat, 'false')
-
+
+ fileLocation = baseFileLocation + "onap-types/"
+ resultsHeat = importOnapTypes(beHost, bePort, adminUser, fileLocation, updateversion)
+ handleResults(resultsHeat, updateversion)
+
errorAndExit(0, None)
if __name__ == "__main__":