From: Tal Gitelman Date: Thu, 26 Jul 2018 11:03:00 +0000 (+0300) Subject: Update and align normatives X-Git-Tag: 1.3.0~222 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ae5a3714376a5f4492470fbf9b54046c1229171d;p=sdc.git Update and align normatives Change-Id: Ie3749d5b8bb0426f9565cb4f9a1ce0848451422d Issue-ID: SDC-1544 Signed-off-by: Tal Gitelman --- diff --git a/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.yml b/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.yml new file mode 100644 index 0000000000..edd20e73e6 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.yml @@ -0,0 +1,13 @@ +org.openecomp.annotations.Source: + description: Indicates the origin source of an input + properties: + source_type: + type: string + vf_module_label: + type: list + description: List of VF Modules this input was originated from + entry_schema: + type: string + param_name: + type: string + description: Source parameter name diff --git a/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.zip b/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.zip new file mode 100644 index 0000000000..5783c9794a Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/annotation-types/annotationTypes.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.yml b/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.yml index 38d4c06ec7..b647651990 100644 --- a/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.yml +++ b/catalog-be/src/main/resources/import/tosca/capability-types/capabilityTypes.yml @@ -219,6 +219,11 @@ org.openecomp.capabilities.VLANAssignment: type: string description: Ability to recognize capability per vfc instance group on vnf instance required: true +org.openecomp.capabilities.RoutingConfiguration: + derived_from: tosca.capabilities.Root +org.openecomp.capabilities.FabricConfiguration: + derived_from: tosca.capabilities.Root + #ONAP types tosca.capabilities.nfv.VirtualStorage: derived_from: tosca.capabilities.Root @@ -247,7 +252,7 @@ tosca.capabilities.nfv.VirtualBindable: tosca.capabilities.nfv.VirtualLinkable: derived_from: tosca.capabilities.Root tosca.capabilities.nfv.ExtVirtualLinkable: - derived_from: tosca.capabilities.Root + derived_from: tosca.capabilities.Root tosca.capabilities.nfv.Forwarder: derived_from: tosca.capabilities.Root tosca.capabilities.nfv.ext.GuestOs: diff --git a/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml b/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml index c5555a5838..b3635dc09f 100644 --- a/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml +++ b/catalog-be/src/main/resources/import/tosca/data-types/dataTypes.yml @@ -57,14 +57,20 @@ tosca.datatypes.Credential: org.openecomp.datatypes.PortMirroringConnectionPointDescription: derived_from: tosca.datatypes.Root properties: - nf_type: - type: string - nfc_type: - type: string + nf_naming_code: + type: string + nfc_naming_code: + type: string network_role: - type: string - pps_capacity: - type: string + type: string + pps_capacity: + type: string + nf_type: + type: string + description: deprecated + nfc_type: + type: string + description: deprecated tosca.datatypes.TimeInterval: derived_from: tosca.datatypes.Root @@ -1391,8 +1397,7 @@ tosca.datatypes.nfv.injectFile: #used for vCPE usecase type: string required: true tosca.datatypes.nfv.L2AddressData: - derived_from: tosca.datatypes.Root - properties: + properties: mac_address_assignment: type: boolean required: true @@ -1452,7 +1457,7 @@ tosca.datatypes.nfv.VlFlavour: flavourId: type: string tosca.datatypes.nfv.ext.AddressPairs: - properties: + properties: ip: type: string required: false @@ -1460,7 +1465,7 @@ tosca.datatypes.nfv.ext.AddressPairs: type: string required: false tosca.datatypes.nfv.ext.FloatingIP: - properties: + properties: external_network: type: string required: false @@ -1468,7 +1473,7 @@ tosca.datatypes.nfv.ext.FloatingIP: type: string required: false tosca.datatypes.nfv.ext.LocationInfo: - properties: + properties: availability_zone: type: string required: false @@ -1479,7 +1484,7 @@ tosca.datatypes.nfv.ext.LocationInfo: type: string required: false tosca.datatypes.nfv.ext.HostRouteInfo: - properties: + properties: destination: type: string required: false @@ -1487,7 +1492,7 @@ tosca.datatypes.nfv.ext.HostRouteInfo: type: string required: false tosca.datatypes.nfv.ext.InjectData: - properties: + properties: file_name: type: string required: false @@ -1495,7 +1500,7 @@ tosca.datatypes.nfv.ext.InjectData: type: string required: false tosca.datatypes.nfv.ext.zte.WatchDog: - properties: + properties: enable_delay: type: integer required: false @@ -1503,7 +1508,7 @@ tosca.datatypes.nfv.ext.zte.WatchDog: type: string required: false tosca.datatypes.nfv.ext.LocalAffinityOrAntiAffinityRule: - properties: + properties: scope: type: string required: false diff --git a/catalog-be/src/main/resources/import/tosca/group-types/groupTypes.json b/catalog-be/src/main/resources/import/tosca/group-types/groupTypes.json new file mode 100644 index 0000000000..caea6a8063 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/group-types/groupTypes.json @@ -0,0 +1,22 @@ +{ + "tosca.groups.Root": { + "displayName": "Root", + "icon": "group-root" + }, + "org.openecomp.groups.heat.HeatStack": { + "displayName": "Heat Stack", + "icon": "group-heat-stack" + }, + "org.openecomp.groups.VfModule": { + "displayName": "VF Module", + "icon": "group-vf-module" + }, + "org.openecomp.groups.NetworkCollection": { + "displayName": "Network Collection", + "icon": "group-network-collection" + }, + "org.openecomp.groups.VfcInstanceGroup": { + "displayName": "Vfc Instance", + "icon": "group-vfc-instance" + } +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.yml b/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.yml index 902cf0c0c8..3652ae4e12 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/Generic_Service/Generic_Service.yml @@ -2,4 +2,3 @@ tosca_definitions_version: tosca_simple_yaml_1_0_0 node_types: org.openecomp.resource.abstract.nodes.service: derived_from: tosca.nodes.Root - \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.json b/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.json new file mode 100644 index 0000000000..157b62a3e2 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/VLANNetworkReceptor/VLANNetworkReceptor.json @@ -0,0 +1,21 @@ +{ + "payloadName": "VLANNetworkReceptor.yml", + "contactId": "jh0003", + "name": "VLAN Network Receptor Configuration", + "description": "VLAN network receptor configuration object", + "resourceIconPath": "pmc", + "resourceType": "Configuration", + "categories": [ + { + "name": "Configuration", + "subcategories": [ + { + "name": "Configuration" + } + ] + } +], + "tags": [ + "VLAN Network Receptor Configuration" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.json b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.json new file mode 100644 index 0000000000..ab28d03072 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.json @@ -0,0 +1,21 @@ +{ + "payloadName": "VRFEntry.yml", + "contactId": "jh0003", + "name": "VRF Entry Configuration", + "description": "VRF Entry configuration object", + "resourceIconPath": "pmc", + "resourceType": "Configuration", + "categories": [ + { + "name": "Configuration", + "subcategories": [ + { + "name": "Configuration" + } + ] + } +], + "tags": [ + "VRF Entry Configuration" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.yml b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.yml new file mode 100644 index 0000000000..7cba5a84d7 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.yml @@ -0,0 +1,17 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.nodes.VRFEntry: + derived_from: tosca.nodes.Root + requirements: + - routing_configuration_internal: + occurrences: + - 1 + - UNBOUNDED + capability: org.openecomp.capabilities.RoutingConfiguration + relationship: org.openecomp.relationships.RoutesTo + - routing_configuration_external: + occurrences: + - 1 + - UNBOUNDED + capability: org.openecomp.capabilities.RoutingConfiguration + relationship: org.openecomp.relationships.RoutesTo diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.zip b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.zip new file mode 100644 index 0000000000..fa6312e7f6 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/VRFEntry/VRFEntry.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.json b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.json new file mode 100644 index 0000000000..2d3f5412e1 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.json @@ -0,0 +1,21 @@ +{ + "payloadName": "VRFObject.yml", + "contactId": "jh0003", + "name": "VRF Object Configuration", + "description": "VRF Object configuration object", + "resourceIconPath": "pmc", + "resourceType": "Configuration", + "categories": [ + { + "name": "Configuration", + "subcategories": [ + { + "name": "Configuration" + } + ] + } +], + "tags": [ + "VRF Object Configuration" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.yml b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.yml new file mode 100644 index 0000000000..28f1d5287b --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.yml @@ -0,0 +1,8 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.nodes.VRFObject: + derived_from: tosca.nodes.Root + description: provides capability to connect WAN Transport Service Proxy to VRF Entry + capabilities: + routing_configuration_external: + type: org.openecomp.capabilities.RoutingConfiguration \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.zip b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.zip new file mode 100644 index 0000000000..23287d625c Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/VRFObject/VRFObject.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.json b/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.json new file mode 100644 index 0000000000..ea56a6b12d --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/configuration/configuration.json @@ -0,0 +1,20 @@ +{ + "payloadName": "configuration.yml", + "contactId": "jh0003", + "name": "Configuration", + "description": "Root Configuration.", + "resourceIconPath": "defaulticon", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Abstract" + } + ] + } + ], + "tags": [ + "Configuration" + ] + } \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.json b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.json new file mode 100644 index 0000000000..d6139b3c8a --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.json @@ -0,0 +1,15 @@ +{ + "payloadName": "contrailV2VLANSubInterfaceV2.yml", + "contactId": "jh0003", + "name": "contrailV2VLANSubInterfaceV2", + "description": "VLAN sub-Interface is a logical port which must be binded to a port. Regular port may have 1…N VLAN Interfaces.It can connect to its own network (regardless of the network the parent port can connect)", + "resourceIconPath": "network", + "resourceType": "CP", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Network Elements" + }] + }], + "tags": ["contrailV2VLANSubInterfaceV2"] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.yml b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.yml new file mode 100644 index 0000000000..a9a89e84bc --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.yml @@ -0,0 +1,70 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface: + derived_from: org.openecomp.resource.cp.nodes.network.v2.SubInterface + properties: + virtual_machine_interface_refs: + description: List of virtual machine interface. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + name: + description: Virtual Machine Sub Interface VLAN name + type: string + status: SUPPORTED + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.Properties + status: SUPPORTED + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Sub Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.MacAddress + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + requirements: + - binding: + capability: tosca.capabilities.network.Bindable + node: org.openecomp.resource.cp.nodes.network.Port + relationship: tosca.relationships.network.BindsTo + occurrences: + - 1 + - 1 \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.zip b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.zip new file mode 100644 index 0000000000..cc65bf9f53 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VLANSubInterfaceV2/contrailV2VLANSubInterfaceV2.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.yml b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.yml index a2179079b1..69e15ff488 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/contrailV2VirtualMachineInterface/contrailV2VirtualMachineInterface.yml @@ -62,4 +62,5 @@ node_types: - 0 - UNBOUNDED valid_source_types: - - org.openecomp.resources.cp.nodes.heat.network.contrailV2.VLANSubInterface \ No newline at end of file + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.yml b/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.yml index 79876881cd..21241369c7 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.yml @@ -1,4 +1,5 @@ tosca_definitions_version: tosca_simple_yaml_1_0_0 + node_types: org.openecomp.resource.vl.ELine: derived_from: org.openecomp.resource.vl.VL diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.zip b/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.zip index 8ba7cbceac..ea770f5042 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/eline/eline.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.yml b/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.yml index 35306f5b49..ad946fc8bd 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/extNeutronCP/extNeutronCP.yml @@ -135,6 +135,7 @@ node_types: type: tosca.capabilities.network.Bindable valid_source_types: - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface occurrences: - 0 - UNBOUNDED \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.json b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.json new file mode 100644 index 0000000000..1e4e15fbe9 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.json @@ -0,0 +1,21 @@ +{ + "payloadName": "extVirtualMachineInterfaceCP.yml", + "contactId": "jh0003", + "name": "extVirtualMachineInterfaceCP", + "description": "External port for virtual machine interface", + "resourceIconPath": "network", + "resourceType": "CP", + "categories": [ + { + "name": "Generic", + "subcategories": [ + { + "name": "Network Elements" + } + ] + } + ], + "tags": [ + "extVirtualMachineInterfaceCP" + ] +} diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.yml b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.yml new file mode 100644 index 0000000000..6816e7b299 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.yml @@ -0,0 +1,67 @@ + +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.resource.cp.v2.extVirtualMachineInterfaceCP: + derived_from: org.openecomp.resource.cp.v2.extCP + properties: + name: + description: Virtual Machine Interface name + type: string + status: SUPPORTED + required: false + security_group_refs: + description: List of security groups. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_network_refs: + description: List of virtual networks. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_properties: + description: virtual machine interface properties. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.interface.Properties + status: SUPPORTED + required: false + port_tuple_refs: + description: List of port tuples. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_mac_addresses: + description: List of mac addresses. + type: list + status: SUPPORTED + entry_schema: + type: string + required: false + virtual_machine_interface_allowed_address_pairs: + description: Virtual Machine Interface allowed address pairs. + type: org.openecomp.datatypes.heat.contrailV2.virtual.machine.subInterface.AddressPairs + status: SUPPORTED + required: false + attributes: + fq_name: + description: The FQ name of the Virtual Network. + type: string + status: SUPPORTED + show: + description: All attributes. + type: string + status: SUPPORTED + capabilities: + binding: + type: tosca.capabilities.network.Bindable + occurrences: + - 0 + - UNBOUNDED + valid_source_types: + - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.zip b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.zip new file mode 100644 index 0000000000..4edd5b3314 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/extVirtualMachineInterfaceCP/extVirtualMachineInterfaceCP.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.json b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.json new file mode 100644 index 0000000000..ee48a778a1 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.json @@ -0,0 +1,21 @@ +{ + "payloadName": "fabricConfiguration.yml", + "contactId": "jh0003", + "name": "Fabric Configuration", + "description": "A fabric Configuration object", + "resourceIconPath": "pmc", + "resourceType": "Configuration", + "categories": [ + { + "name": "Configuration", + "subcategories": [ + { + "name": "Configuration" + } + ] + } + ], + "tags": [ + "Fabric Configuration" + ] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.yml b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.yml new file mode 100644 index 0000000000..18658b916b --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.yml @@ -0,0 +1,10 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.nodes.FabricConfiguration: + derived_from: org.openecomp.nodes.Configuration + requirements: + - fabric_configuration_monitoring: + capability: org.openecomp.capabilities.FabricConfiguration + occurrences: + - 1 + - UNBOUNDED \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.zip b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.zip new file mode 100644 index 0000000000..15088d9091 Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/fabricConfiguration/fabricConfiguration.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/globalCompute/globalCompute.zip b/catalog-be/src/main/resources/import/tosca/heat-types/globalCompute/globalCompute.zip index 23a471f246..a04df59514 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/globalCompute/globalCompute.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/globalCompute/globalCompute.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.yml b/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.yml index 791a0b9a3b..c0fd672ee9 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/globalPort/globalPort.yml @@ -35,6 +35,11 @@ node_types: type: org.openecomp.datatypes.Naming subnetpoolid: type: string + subinterface_indicator: + description: identifies if Port is having Sub Interface + type: boolean + required: false + default: false capabilities: network.incoming.packets.rate: type: org.openecomp.capabilities.metric.Ceilometer diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/multiFlavorVFC/multiFlavorVFC.zip b/catalog-be/src/main/resources/import/tosca/heat-types/multiFlavorVFC/multiFlavorVFC.zip index d73488d0c0..9edb9f53c0 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/multiFlavorVFC/multiFlavorVFC.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/multiFlavorVFC/multiFlavorVFC.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.yml b/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.yml index 34a74eb4c4..0f6fcb371c 100644 --- a/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.yml +++ b/catalog-be/src/main/resources/import/tosca/heat-types/neutronPort/neutronPort.yml @@ -131,6 +131,7 @@ node_types: type: tosca.capabilities.network.Bindable valid_source_types: - org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface + - org.openecomp.resource.cp.nodes.heat.network.v2.contrailV2.VLANSubInterface occurrences: - 0 - UNBOUNDED \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/portMirroring/portMirroring.zip b/catalog-be/src/main/resources/import/tosca/heat-types/portMirroring/portMirroring.zip index cbed61fcf5..ca5650b8c9 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/portMirroring/portMirroring.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/portMirroring/portMirroring.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/portMirroringByPolicy/portMirroringByPolicy.zip b/catalog-be/src/main/resources/import/tosca/heat-types/portMirroringByPolicy/portMirroringByPolicy.zip index a11e4f7842..7a4ce51cfb 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/portMirroringByPolicy/portMirroringByPolicy.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/portMirroringByPolicy/portMirroringByPolicy.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/serviceProxy/serviceProxy.zip b/catalog-be/src/main/resources/import/tosca/heat-types/serviceProxy/serviceProxy.zip index 9f0b60d1df..55ffe94d99 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/serviceProxy/serviceProxy.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/serviceProxy/serviceProxy.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.json b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.json new file mode 100644 index 0000000000..2b7d98c171 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.json @@ -0,0 +1,15 @@ +{ + "payloadName": "subInterfaceV2.yml", + "contactId": "jh0003", + "name": "subInterfaceV2", + "description": "VLAN sub-Interface is a logical port which must be binded to a port. Regular port may have 1…N VLAN Interfaces.It can connect to its own network (regardless of the network the parent port can connect)", + "resourceIconPath": "network", + "resourceType": "CP", + "categories": [{ + "name": "Generic", + "subcategories": [{ + "name": "Network Elements" + }] + }], + "tags": ["subInterfaceV2"] +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.yml b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.yml new file mode 100644 index 0000000000..7c19089242 --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.yml @@ -0,0 +1,45 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + org.openecomp.resource.cp.nodes.network.v2.SubInterface: + derived_from: tosca.nodes.Root + properties: + ip_address: + description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with. + type: string + required: false + order: + description: 'The order of the NIC on the compute instance (e.g. eth2). Note: + when binding more than one port to a single compute (aka multi vNICs) and + ordering is desired, it is *mandatory* that all ports will be set with an + order value and. The order values must represent a positive, arithmetic + progression that starts with 0 (e.g. 0, 1, 2, ..., n).' + type: integer + default: 0 + required: false + constraints: + - greater_or_equal: 0 + is_default: + description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true. + type: boolean + default: false + required: false + ip_range_start: + description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + ip_range_end: + description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network. + type: string + required: false + attributes: + ip_address: + description: The IP address would be assigned to the associated compute instance. + type: string + requirements: + - subinterface_link: + capability: tosca.capabilities.network.Linkable + relationship: tosca.relationships.network.LinksTo + - binding: + capability: tosca.capabilities.network.Bindable + relationship: tosca.relationships.network.BindsTo + diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.zip b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.zip new file mode 100644 index 0000000000..fc34ec54ff Binary files /dev/null and b/catalog-be/src/main/resources/import/tosca/heat-types/subInterfaceV2/subInterfaceV2.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/vnfConfiguration/vnfConfiguration.zip b/catalog-be/src/main/resources/import/tosca/heat-types/vnfConfiguration/vnfConfiguration.zip index 03a7d535f2..eb763dadf4 100644 Binary files a/catalog-be/src/main/resources/import/tosca/heat-types/vnfConfiguration/vnfConfiguration.zip and b/catalog-be/src/main/resources/import/tosca/heat-types/vnfConfiguration/vnfConfiguration.zip differ diff --git a/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json new file mode 100644 index 0000000000..9f97d5586b --- /dev/null +++ b/catalog-be/src/main/resources/import/tosca/policy-types/policyTypes.json @@ -0,0 +1,51 @@ +{ + "tosca.policies.Root": { + "displayName": "Root", + "icon": "policy-root" + }, + "tosca.policies.Placement": { + "displayName": "Placement", + "icon": "policy-placement" + }, + "tosca.policies.Scaling": { + "displayName": "Scaling", + "icon": "policy-scaling" + }, + "tosca.policies.Update": { + "displayName": "Update", + "icon": "policy-update" + }, + "tosca.policies.Performance": { + "displayName": "Performance", + "icon": "policy-performance" + }, + "org.openecomp.policies.placement.Antilocate": { + "displayName": "Placement Antilocate", + "icon": "policy-placement-antilocate" + }, + "org.openecomp.policies.placement.Colocate": { + "displayName": "Placement Colocate", + "icon": "policy-placement-colocate" + }, + "org.openecomp.policies.placement.valet.Diversity": { + "displayName": "Placement Valet Diversity", + "icon": "policy-placement-valet-diversity" + }, + "org.openecomp.policies.placement.valet.Exclusivity": { + "displayName": "Placement Valet Exclusivity", + "icon": "policy-placement-valet-exclusivity" + }, + "org.openecomp.policies.placement.valet.Affinity": { + "displayName": "Placement Valet Affinity", + "icon": "placement-valet-affinity" + }, + "org.openecomp.policies.scaling.Fixed": { + "displayName": "Scaling Fixed", + "icon": "policy-fixed" + }, + "org.openecomp.policies.External": { + "displayName": "External", + "icon": "policy-external" + } + +} \ No newline at end of file diff --git a/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.yml b/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.yml index fa4d5b7671..2ed8c0e785 100644 --- a/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.yml +++ b/catalog-be/src/main/resources/import/tosca/relationship-types/relationshipTypes.yml @@ -1,106 +1,106 @@ - tosca.relationships.Root: - description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from. - attributes: - tosca_id: - description: A unique identifier of the realized instance of a Relationship Template that derives from any TOSCA normative type. - type: string - tosca_name: - description: This attribute reflects the name of the Relationship Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. - type: string - state: - description: The state of the relationship instance. - type: string - default: initial - interfaces: - Configure: - type: tosca.interfaces.relationship.Configure +tosca.relationships.Root: + description: This is the default (root) TOSCA Relationship Type definition that all other TOSCA Relationship Types derive from. + attributes: + tosca_id: + description: A unique identifier of the realized instance of a Relationship Template that derives from any TOSCA normative type. + type: string + tosca_name: + description: This attribute reflects the name of the Relationship Template as defined in the TOSCA service template. This name is not unique to the realized instance model of corresponding deployed application as each template in the model can result in one or more instances (e.g., scaled) when orchestrated to a provider environment. + type: string + state: + description: The state of the relationship instance. + type: string + default: initial + interfaces: + Configure: + type: tosca.interfaces.relationship.Configure - tosca.relationships.RoutesTo: - derived_from: tosca.relationships.ConnectsTo - description: This type represents an intentional network routing between two Endpoints in different networks. - valid_target_types: - - tosca.capabilities.Endpoint +tosca.relationships.RoutesTo: + derived_from: tosca.relationships.ConnectsTo + description: This type represents an intentional network routing between two Endpoints in different networks. + valid_target_types: + - tosca.capabilities.Endpoint - tosca.relationships.network.LinksTo: - derived_from: tosca.relationships.DependsOn - description: This relationship type represents an association relationship between Port and Network node types. - valid_target_types: - - tosca.capabilities.network.Linkable +tosca.relationships.network.LinksTo: + derived_from: tosca.relationships.DependsOn + description: This relationship type represents an association relationship between Port and Network node types. + valid_target_types: + - tosca.capabilities.network.Linkable - tosca.relationships.AttachesTo: - derived_from: tosca.relationships.Root - description: This type represents an attachment relationship between two nodes. For example, an AttachesTo relationship type would be used for attaching a storage node to a Compute node. - valid_target_types: - - tosca.capabilities.Attachment - properties: - location: - description: 'The relative location (e.g., path on the file system), which - provides the root location to address an attached node. e.g., a mount point - / path such as ''/usr/data''. Note: The user must provide it and it cannot - be "root".' - type: string - constraints: - - min_length: 1 - device: - description: The logical device name which for the attached device (which is represented by the target node in the model). e.g., '/dev/hda1'. - type: string - required: false - attributes: - device: - description: 'The logical name of the device as exposed to the instance. Note: - A runtime property that gets set when the model gets instantiated by the - orchestrator.' - type: string +tosca.relationships.AttachesTo: + derived_from: tosca.relationships.Root + description: This type represents an attachment relationship between two nodes. For example, an AttachesTo relationship type would be used for attaching a storage node to a Compute node. + valid_target_types: + - tosca.capabilities.Attachment + properties: + location: + description: 'The relative location (e.g., path on the file system), which + provides the root location to address an attached node. e.g., a mount point + / path such as ''/usr/data''. Note: The user must provide it and it cannot + be "root".' + type: string + constraints: + - min_length: 1 + device: + description: The logical device name which for the attached device (which is represented by the target node in the model). e.g., '/dev/hda1'. + type: string + required: false + attributes: + device: + description: 'The logical name of the device as exposed to the instance. Note: + A runtime property that gets set when the model gets instantiated by the + orchestrator.' + type: string - tosca.relationships.network.BindsTo: - derived_from: tosca.relationships.DependsOn - description: This type represents a network association relationship between Port and Compute node types. - valid_target_types: - - tosca.capabilities.network.Bindable +tosca.relationships.network.BindsTo: + derived_from: tosca.relationships.DependsOn + description: This type represents a network association relationship between Port and Compute node types. + valid_target_types: + - tosca.capabilities.network.Bindable - tosca.relationships.HostedOn: - derived_from: tosca.relationships.Root - description: This type represents a hosting relationship between two nodes. - valid_target_types: - - tosca.capabilities.Container +tosca.relationships.HostedOn: + derived_from: tosca.relationships.Root + description: This type represents a hosting relationship between two nodes. + valid_target_types: + - tosca.capabilities.Container - tosca.relationships.DependsOn: - derived_from: tosca.relationships.Root - description: This type represents a general dependency relationship between two nodes. - valid_target_types: - - tosca.capabilities.Node +tosca.relationships.DependsOn: + derived_from: tosca.relationships.Root + description: This type represents a general dependency relationship between two nodes. + valid_target_types: + - tosca.capabilities.Node - tosca.relationships.ConnectsTo: - derived_from: tosca.relationships.Root - description: This type represents a network connection relationship between two nodes. - valid_target_types: - - tosca.capabilities.Endpoint - properties: - credential: - type: tosca.datatypes.Credential - required: false +tosca.relationships.ConnectsTo: + derived_from: tosca.relationships.Root + description: This type represents a network connection relationship between two nodes. + valid_target_types: + - tosca.capabilities.Endpoint + properties: + credential: + type: tosca.datatypes.Credential + required: false - org.openecomp.relationships.VolumeAttachesTo: - derived_from: org.openecomp.relationships.AttachesTo - description: This type represents an attachment relationship for associating volume - properties: - volume_id: - description: The ID of the volume to be attached - type: string - status: SUPPORTED - required: true - instance_uuid: - description: The ID of the server to which the volume attaches - type: string - status: SUPPORTED - required: true - attributes: - show: - description: Detailed information about resource - type: string - status: SUPPORTED +org.openecomp.relationships.VolumeAttachesTo: + derived_from: org.openecomp.relationships.AttachesTo + description: This type represents an attachment relationship for associating volume + properties: + volume_id: + description: The ID of the volume to be attached + type: string + status: SUPPORTED + required: true + instance_uuid: + description: The ID of the server to which the volume attaches + type: string + status: SUPPORTED + required: true + attributes: + show: + description: Detailed information about resource + type: string + status: SUPPORTED - org.openecomp.relationships.AttachesTo: +org.openecomp.relationships.AttachesTo: derived_from: tosca.relationships.AttachesTo description: This type represents an attachment relationship properties: @@ -109,17 +109,21 @@ type: string status: SUPPORTED required: false - org.openecomp.relationships.ForwardsTo: +org.openecomp.relationships.ForwardsTo: + derived_from: tosca.relationships.Root + valid_target_types: [org.openecomp.capabilities.Forwarder] +org.openecomp.relationships.AssignsTo: derived_from: tosca.relationships.Root - valid_target_types: - - org.openecomp.capabilities.Forwarder +org.openecomp.relationships.RoutesTo: + derived_from: tosca.relationships.RoutesTo + description: This type represents an intentional network routing between internal and external network - tosca.relationships.nfv.VirtualBindsTo: +tosca.relationships.nfv.VirtualBindsTo: derived_from: tosca.relationships.DependsOn valid_target_types: - tosca.capabilities.nfv.VirtualBindable - tosca.relationships.nfv.VirtualLinksTo: +tosca.relationships.nfv.VirtualLinksTo: derived_from: tosca.relationships.DependsOn valid_target_types: - tosca.capabilities.nfv.VirtualLinkable \ No newline at end of file