Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderStylesolid
titleNode Type
Code Block
firstline1
titletosca.nodes.nfv.NS
linenumberstrue
collapsetrue
   tosca.nodes.nfv.NS:
      derived_from: onaptosca.nodes.ServiceComponentRoot
    requirements:
      - wanLinkproperties: 
       # to support VoLTE case based on the R1 WAN link node ns_id: 
          capabilitytype: tosca.capabilities.network.Linkablestring
          relationshiprequired: tosca.relationships.network.LinksTotrue
          node: org.openecomp.resource.vl.overlaytunneldesigner:
          occurrencestype: [string
 0, UNBOUNDED ]   # same with the anatoly comments on the VNF.

Code Block
firstline1
titletosca.nodes.nfv.VNF
linenumberstrue
collapsetrue
refer to https://wiki.onap.org/display/DW/Node+Type #tosca.nodes.nfv.VNF:
   
Code Block
firstline1
titletosca.nodes.nfv.NsVirtualLink
linenumberstrue
collapsetrue
  tosca.nodes.nfv.NsVirtualLink: required: true
    derived_from: tosca.nodes.Root
    description: External virtual link used in network service.version:
    properties:
      idtype: #virtual_link_desc_id:string
        type: string
        required: true
        description: Identifier of the NsVirtualLinkDesc information element. It uniquely identifies a VLD.
      provider: #vitual_link_desc_provider:
name:
          type: string
          required: falsetrue
        description: Defines the organization generating the VLD.invariant_id:
      version: #virtual_link_desc_version:
        type: string
          required: true
        descriptioncapabilities:
 Specifies the version of the VLD.
      connectivity_type#monitoring_parameter:
        type: tosca.datatypes.nfv.ConnectivityType
        required: true
        description: Specifies the protocol exposed by a VL and the flow pattern supported by the VL. # modelled as ad hoc capabilities in VNF node template
      test_accessrequirements:
        type: list
        entry_schema- virtual_link:
          type: string
        required: false capability:
        description: > 
          Specifies test access facilities expected on the VL 
          (e.g. none, passive monitoring, or active (intrusive) loopbacks at endpoints).tosca.capabilities.nfv.VirtualLinkable
      description:
        typerelationship: string
        required: false
        description: >tosca.relationships.nfv.VirtualLinksTo
        Provides human-readable information on the purpose of the virtual link (e.g. VL for control plane traffic). 
node: tosca.nodes.nfv.NsVirtualLink    # tosca.nodes.nfv.VL
      capabilities:
      virtual_linkableoccurrences:
 [ 0,      type: tosca.capabilities.nfv.VirtualLinkableUNBOUNDED ]



Code Block
firstline1
titletosca.nodes.nfv.OpenstackNetworkVNF
linenumberstrue
collapsetrue
refer to  toscahttps://wiki.onap.org/display/DW/Node+Type #tosca.nodes.nfv.OpenstackNetworkVNF:
   
Code Block
firstline1
titletosca.nodes.nfv.NsVirtualLink
linenumberstrue
collapsetrue
  derived_from: tosca.nodes.nfv.NsVirtualLink
    description: Implement the openstack network L2/L3 model
    properties:
      cidr derived_from:
        type: stringtosca.nodes.Root
        requireddescription: false
node definition of    start_ip:Virtual Links
        type: stringproperties:
        requiredprovider:false
      end_ip:
        type: string
         required: false
      gateway_ip version:
         type: string
         required: falsetrue
      dhcpEnabled: vl_profile
         type: Boolean
         required: falsetosca.datatypes.nfv.VlProfile # only covers nin/max bitrate requirements
      network_name:
        typerequired: stringtrue
        required: falseconnectivity_type:
      network_id:
        type: stringtosca.datatypes.nfv.ConnectivityType
         required: falsetrue
      segmentation_id qos:
         type: stringtosca.datatypes.nfv.Qos
         required: false
 
      networkservice_typeavailability:
         type: string
        constraints:
           - valid_values: [VLAN, VXLAN]
tosca.datatypes.nfv.ServiceAvailability
         required: false 
      physical_networkcapabilities:
        typeVirtualLinkable: string
        required: false
      vlanTransparent:  
         type: Boolean
         required: falsetosca.capabilities.nfv.VirtualLinkable
Panel
borderStylesolid
titleData Type:
Code Block
firstline1
titletosca.datatypes.nfv.ConnectivityType
linenumberstrue
collapsetrue
tosca.datatypes.nfv.ConnectivityType:
  derived_from: tosca.datatypes.Root
  properties: 
    layer_protocol:
      type: string
      required: true
      constraints:
        - valid_values: [ethernet, mpls, odu2, ipv4, ipv6, pseudo_wire ]  
    flow_pattern:
      type: string
      required: false
      constraints:
        - valid_values: [Line, Tree, Mesh]


tosca.datatypes.nfv.ServiceAvailability:
   derived_from: tosca.datatypes.Root
   description: service availability 
   properties:
     Level:
       type: string
       description: service availability levels
       required: true
       constraints:
          - valid_values: [ Level1, Level2,Level3 ]   


 tosca.datatypes.nfv.Qos:

   derived_from: tosca.datatypes.Root

   properties:

     latency:

        type: integer #Number [ms]

        required: true

     packet_delay_variation:

        type: integer #Number [ms]

        required: true

     packet_loss_ratio:

        type: float

        constraints:

          - in_range: [ 0, 1 ]

        required: false

Panel
borderStylesolid
titleCapability
Code Block
firstline1
titletosca.capabilities.nfv.VirtualLinkable
linenumberstrue
collapsetrue
tosca.capabilities.nfv.VirtualLinkable:
    derived_from: tosca.capabilities.network.Linkable
Panel
borderStylesolid
titleRelationship
Code Block
firstline1
titletosca.relationships.nfv.VirtualLinksTo
linenumberstrue
collapsetrue
tosca.relationships.nfv.VirtualLinksTo:
    derived_from: tosca.relationships.DependsOn
    valid_target_types: [ tosca.capabilities.nfv.VirtualLinkable ]
Panel
borderStylesolid
titleNS Example
Code Block
firstline1
titleNS Example
linenumberstrue
collapsetrue
tosca_definitions_version:
tosca_simple_yaml_1_1
metadata:
  ...
imports:
- nodes:
    file: nodes.yml
- datatypes:
    file: data.yml
- capabilities:
    file: capabilities.yml
-relationships:
    file: relationships.yml


topology_template:
  inputs:
    # omitted here for brivity
  substitution_mappings:
    node_type: tosca.nodes.nfv.NS.example
    requirements:
      - virtualLink: [VNF1, virtualLink2]
node_templates:
    NsVL1:
      type: tosca.nodes.nfv.OpenstackNetwork
      properties:     ...
    NsVL2:
      type: tosca.nodes.nfv.OpenstackNetwork
      properties:     ...
    VNF1:
      type: tosca.nodes.nfv.VNF
      properties: ...
      requirements:
        - virtualLink1: NsVL2
    VNF2:
      type: onap.nodes.VNF
      properties: ...
      requirements:
        - virtualLink1: NsVL1    
    VNF3:
      type: onap.nodes.VNF
      properties: ...
      requirements:
        - virtualLink1: NsVL1
        - virtualLink2: NsVL2

###################VNF1 Template ##################
   .....
  substitution_mappings: 
    requirements: 
      virtualLink1: 
      - ext_port_1
      - virtual_link
    node_type: tosca.nodes.nfv.VNF.VNF1


###################VNF2 Template ##################
   .....
  substitution_mappings: 
    requirements: 
      virtualLink1: 
      - ext_port_1
      - virtual_link
    node_type: tosca.nodes.nfv.VNF.VNF2


###################VNF3 Template ##################
   .....
  substitution_mappings: 
    requirements: 
      virtualLink1: 
      - ext_port_1
      - virtual_link
      virtualLink2: 
      - ext_port_2
      - virtual_link
    node_type: tosca.nodes.nfv.VNF.VNF3