DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_validator / checker / src / main / resources / tosca / tosca-network-types.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 description: >
3  TOSCA simple profile for networking.
4
5 metadata:
6   template_name: tosca_simple_networking
7   template_version: "1.0"
8
9 #imports:
10 #  - tosca-common-types.yaml
11
12 node_types:
13
14   tosca.nodes.network.Network:
15     derived_from: tosca.nodes.Root
16     properties:
17       ip_version:
18         type: integer
19         required: false
20         default: 4
21         constraints:
22           - valid_values: [ 4, 6 ]
23       cidr:
24         type: string
25         required: false
26       start_ip:
27         type: string
28         required: false
29       end_ip:
30         type: string
31         required: false
32       gateway_ip:
33         type: string
34         required: false
35       network_name:
36         type: string
37         required: false
38       network_id:
39         type: string
40         required: false
41       segmentation_id:
42         type: string
43         required: false
44       network_type:
45         type: string
46         required: false
47       physical_network:
48         type: string
49         required: false
50     capabilities:
51       link:
52         type: tosca.capabilities.network.Linkable
53
54   tosca.nodes.network.Port:
55     derived_from: tosca.nodes.Root
56     properties:
57       ip_address:
58         type: string
59         required: false
60       order:
61         type: integer
62         required: true
63         default: 0
64         constraints:
65           - greater_or_equal: 0
66       is_default:
67         type: boolean
68         required: false
69         default: false
70       ip_range_start:
71         type: string
72         required: false
73       ip_range_end:
74         type: string
75         required: false
76     requirements:
77       - link:
78           capability: tosca.capabilities.network.Linkable
79           relationship: tosca.relationships.network.LinksTo
80       - binding:
81           capability: tosca.capabilities.network.Bindable
82           relationship: tosca.relationships.network.BindsTo
83
84
85 capability_types:
86
87   tosca.capabilities.network.Linkable:
88     derived_from: tosca.capabilities.Node
89  
90   # also part of common types - used in Compute node type 
91   tosca.capabilities.network.Bindable:
92     derived_from: tosca.capabilities.Node
93
94 relationship_types:
95
96   tosca.relationships.network.LinksTo:
97     derived_from: tosca.relationships.DependsOn
98     valid_target_types: [ tosca.capabilities.network.Linkable ]
99
100   tosca.relationships.network.BindsTo:
101     derived_from: tosca.relationships.DependsOn
102     valid_target_types: [ tosca.capabilities.network.Bindable ]
103