summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/tests/spec_samples/v1.0/network/tosca_one_server_three_networks.yaml
blob: 51415b7724526db04508b3b6508339e10b0503eb (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
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

tosca_definitions_version: tosca_simple_yaml_1_0

description: >
  TOSCA simple profile with 1 server bound to 3 networks

topology_template:

  node_templates:
    my_server:
      type: tosca.nodes.Compute
      capabilities:
        host:
          properties:
            disk_size: 10 GB
            num_cpus: 1
            mem_size: 512 MB
        os:
          properties:
            architecture: x86_64
            type: Linux
            distribution: CirrOS
            version: 0.3.2

    my_network1:
      type: tosca.nodes.network.Network
      properties:
        cidr: '192.168.1.0/24'
        network_name: net1

    my_network2:
      type: tosca.nodes.network.Network
      properties:
        cidr: '192.168.2.0/24'
        network_name: net2

    my_network3:
      type: tosca.nodes.network.Network
      properties:
        cidr: '192.168.3.0/24'
        network_name: net3

    my_port1:
      type: tosca.nodes.network.Port
      properties:
        order: 0
      requirements:
        - binding: my_server
        - link: my_network1

    my_port2:
      type: tosca.nodes.network.Port
      properties:
        order: 1
      requirements:
        - binding: my_server
        - link: my_network2

    my_port3:
      type: tosca.nodes.network.Port
      properties:
        order: 2
      requirements:
        - binding: my_server
        - link: my_network3