Update tosca lib to version 0.5
[parser.git] / tosca2heat / tosca-parser / toscaparser / tests / spec_samples / v1.0 / network / tosca_two_servers_one_network.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0
2
3 description: >
4   TOSCA simple profile with 2 servers bound to the 1 network
5
6 topology_template:
7
8   inputs:
9     network_name:
10       type: string
11       description: Network name
12     network_cidr:
13       type: string
14       default: 10.0.0.0/24
15       description: CIDR for the network
16     network_start_ip:
17       type: string
18       default: 10.0.0.100
19       description: Start IP for the allocation pool
20     network_end_ip:
21       type: string
22       default: 10.0.0.150
23       description: End IP for the allocation pool
24
25   node_templates:
26     my_server:
27       type: tosca.nodes.Compute
28       capabilities:
29         host:
30           properties:
31             disk_size: 10 GB
32             num_cpus: 1
33             mem_size: 512 MB
34         os:
35           properties:
36             architecture: x86_64
37             type: Linux
38             distribution: CirrOS
39             version: 0.3.2
40
41     my_server2:
42       type: tosca.nodes.Compute
43       capabilities:
44         host:
45           properties:
46             disk_size: 10 GB
47             num_cpus: 1
48             mem_size: 512 MB
49         os:
50           properties:
51             architecture: x86_64
52             type: Linux
53             distribution: CirrOS
54             version: 0.3.2
55
56     my_network:
57       type: tosca.nodes.network.Network
58       properties:
59         ip_version: 4
60         cidr: { get_input: network_cidr }
61         network_name: { get_input: network_name }
62         start_ip: { get_input: network_start_ip }
63         end_ip: { get_input: network_end_ip }
64
65     my_port:
66       type: tosca.nodes.network.Port
67       requirements:
68         - binding:
69             node: my_server
70         - link:
71             node: my_network
72
73     my_port2:
74       type: tosca.nodes.network.Port
75       requirements:
76         - binding:
77             node: my_server2
78         - link:
79             node: my_network