summaryrefslogtreecommitdiffstats
path: root/openecomp-be/lib/openecomp-tosca-converter-lib/openecomp-tosca-converter-core/src/test/resources/pnfDescriptor/in/pnfDescriptor_with_Invalid_CustomType.yaml
blob: d27fbfd70acc19d68537baf0661ebdf061ece969 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
tosca_definitions_version: tosca_simple_yaml_1_1

description: the service template of a PNFD

imports:
 - etsi_nfv_sol001_pnfd_2_5_1_types.yaml

node_types:
  myCustomizedNodeType_A:
    derived_from: tosca.nodes.nfv.INVALID
  myCustomizedNodeType_B:
    derived_from: myCustomizedNodeType_A
  myCustomizedNodeType_C:
    derived_from: myCustomizedNodeType_B
  myCustomizedNodeType_D:
    derived_from: myCustomizedNodeType_C
  myCustomizedNodeType_E:
    derived_from: myCustomizedNodeType_D
    properties:
      descriptor_id:
        type: string
        constraints: [ valid_values: [ b1bb0ce7-ebca-4fa7-95ed-4840d70a2233 ] ]
        default: b1bb0ce7-ebca-4fa7-95ed-4840d70a2233
      function_description:
        type: string
        default: an example PNF
      provider:
        type: string
        constraints: [ valid_values: [ MyCompany] ]
        default: MyCompany
      version:
        type: string
        constraints: [ valid_values: [ '1.0' ] ]
        default: '1.0'
      descriptor_invariant_id:
        type: string
        constraints: [ valid_values: [ 1111-2222-ccaa-bbdd ] ]
        default: 1111-2222-ccaa-bbdd
      name:
        type: string
        constraints: [ valid_values: [ExamplePnf] ]
        default: ExamplePnf
    requirements:
      - virtual_link:
          capability: tosca.capabilities.nfv.VirtualLinkable

topology_template:
  inputs:
    anyOtherInput:
      type: string
      description: this is input1
      default: defaultValue
    protocols:
      type: list
      description: IP protocols
      entry_schema:
        type: string
      default: [ ipv4, ipv6 ]

  substitution_mappings:
    node_type: 00_Another_NodeTypeMyCompany.examplePnf.1_0
    requirements:
      virtual_link: [ pnfExtCp_1, external_virtual_link ]

  node_templates:
    pnf_mainPart:
      type: wrong_nodeType_Not_Derived_from_any_valid_Node
      properties:
        descriptor_id: b1bb0ce7-ebca-4fa7-95ed-4840d70a2233
        function_description: an example PNF
        provider: Mycompany
        version: 1.0
        descriptor_invariant_id: 1111-2222-ccaa-bbdd
        name: ExamplePnf

    pnfExtCp_1:
      type: tosca.nodes.nfv.PnfExtCp
      properties:
        protocol: [ associated_layer_protocol: ipv4 ]
        trunk_mode: false
        layer_protocols: [ ipv4 ]
        role: leaf
        description: External connection point to access this pnf
      requirements:
        - dependency: pnf_mainPart

    pnfExtCp_2:
      type: tosca.nodes.nfv.PnfExtCp
      properties:
        trunk_mode: false
        layer_protocols: { get_input: protocols }
        role: leaf
        description: External connection point to access Acme myPnf
      requirements:
        - dependency: myPnf