aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/test/resources/yaml_in/TOSCA0.yaml
blob: 27977f47f2f0931664330a26a9692b9af9ce98d9 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# https://wiki.onap.org/display/DW/VNFD+example
tosca_definitions_version: tosca_simple_profile_yaml_1_1
description: the VNFD of MyVnf
 
node_types:
  MyCompany.MyVnf.1_0.1_0:  # node type of MyVnf
    derived_from: tosca.nodes.nfv.VNF
    properties:
      descriptor_id:
        type: string
        constraints: [ valid_values: [ b1bb0ce7-ebca-4fa7-95ed-4840d70a1177 ] ]
        default: b1bb0ce7-ebca-4fa7-95ed-4840d70a1177
        required: true
      provider:
        type: string
        constraints: [ valid_values: [ MyCompany ] ]
        default: MyCompany
        required: true
      product_name:
        type: string
        constraints: [ valid_values: [ MyVnf ] ]
        default: Myvnf
        required: true
      software_version:
        type: string
        constraints: [ valid_values: [ '1.0' ] ]
        default: '1.0'
        required: true
      descriptor_version:
        type: string
        constraints: [ valid_values: [ '1.0' ] ]
        default: '1.0'
        required: true
      flavour_id:
        type: string
        constraints: [ valid_values: [ simple ] ]  #only one and only allowed one DF in this example
        default: simple
        required: true
      flavour_description:
        type: string
        constraints: []
        default: ""
        required: true
      vnfm_info:
        type: list       
        constraints: []
        default: ""
        required: true
      interfaces:
        Nfv:
         instantiate:
          inputs:
            parameter_1:
               type: string
               required: false
               default: value_1
               constraints: []
            parameter_2:
               type: string
               required: false
               default: value_2
               constraints: []
         terminate:
          implementation: terminate.workbook.mistral.yaml
 
 
topology_template: 
  substitution_mappings:
    node_type: MyCompany.MyVnf.1_0.1_0
    requirements:
      - virtual_link: [ Cp_2,   external_virtual_link ] # expose as external CP
      - virtual_link: [ Cp_4,   external_virtual_link ] # expose as external CP 
   
  node_templates:
    VDU_compute_1:
      type: tosca.nodes.nfv.Vdu.Compute
      properties:
        name: ..
        description: ..
        boot_order: ..
        nfvi_constraints: ..
        configurable_properties:
          additional_vnfc_configurable_properties: {}
        vdu_profile:
          min_number_of_instances: 1
          max_number_of_instances: 4
      capabilities:
        virtual_compute:
          properties:
            virtual_memory:
              virtual_mem_size: 8096 MB
            virtual_cpu:
              cpu_architecture: x86
              num_virtual_cpu: 2
              virtual_cpu_clock: 1800 MHz
      requirements:
        - virtual_storage: Storage_1  
  
    Storage_1:
      type: tosca.nodes.nfv.Vdu.VirtualStorage
      properties:
        type_of_storage: ..
        size_of_storage: 100MB
        rdma_enabled:  ..     
    
    Cp_1:
      type: tosca.nodes.nfv.VduCp
      properties:
        layer_protocol: ipv4
        role: leaf
        description: Internal connection point on an VL
      requirements:
        - virtual_binding: Vdu_1
        - virtual_link: internalVl_1   
 
 
    internalVl_1:
      type: tosca.nodes.nfv.VirtualLink
      properties:
        connectivity_type:
          layer_protocol: ipv4
          flow_pattern: mesh
        test_access: []
        description: ..
        vl_profile:
          qos:
          maxBitRateRequirements:
          minBitRateRequirements:   
 
 
    Cp_2:
      type: tosca.nodes.nfv.VduCp
      properties:
        layer_protocol: ipv4
        role: leaf
        description: External connection point to access exteranlVl_1
      requirements:
        - external_virtual_link:
        - virtual_binding: Vdu_1   
 
 
    VDU_compute_2:
      type: tosca.nodes.nfv.Vdu.Compute
      properties:
        name: ..
        description: ..
        boot_order: ..
        nfvi_constraints: ..
        configurable_properties:
          additional_vnfc_configurable_properties: {}
        vdu_profile:
          min_number_of_instances: 2
          max_number_of_instances: 6
      capabilities:
        virtual_compute:
          properties:
            virtual_memory:
              virtual_mem_size: 8096 MB
            virtual_cpu:
              cpu_architecture: x86
              num_virtual_cpu: 4
              virtual_cpu_clock: 1800 MHz
    Cp_3:
      type: tosca.nodes.nfv.VduCp
      properties:
        layer_protocol: ipv4
        role: leaf
        description: Internal connection point on an VL
      requirements:
        - virtual_binding: Vdu_2
        - virtual_link: internalVl_1  
    Cp_4:
      type: tosca.nodes.nfv.VduCpd
      properties:
        layer_protocol: ipv4
        role: leaf
        description: External connection point to access exteranlVl_2
      requirements:
        - external_virtual_link:
        - virtual_binding: Vdu_2