update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / common / python / rift / mano / tosca_translator / test / data / ping_pong_csar / Definitions / riftio_custom_types.yaml
1 tosca_definitions_version:      tosca_simple_profile_for_nfv_1_0_0
2 #tosca_default_namespace :    # Optional. default namespace (schema, types version)
3
4 description: Define RIFT.io custom types
5
6 data_types:
7   tosca.datatypes.network.riftio.vnf_configuration:
8     properties:
9       config_type:
10         type: string
11       config_delay:
12         type: integer
13         default: 0
14         required: no
15         constraints:
16           - greater_or_equal: 0
17       config_priority:
18         type: integer
19         constraints:
20           - greater_than: 0
21       config_details:
22         type: map
23       config_template:
24         type: string
25         required: no
26
27 capability_types:
28   tosca.capabilities.riftio.http_endpoint_type:
29     derived_from: tosca.capabilities.Endpoint
30     properties:
31       polling_interval:
32         type: integer
33         #type: scalar_unit.time
34       path:
35         type: string
36
37   tosca.capabilities.riftio.mgmt_interface_type:
38     derived_from: tosca.capabilities.Endpoint
39     properties:
40       dashboard_params:
41         type: map
42
43   tosca.capabilities.riftio.monitoring_param:
44     derived_from: tosca.capabilities.nfv.Metric
45     properties:
46       id:
47         type: integer
48       name:
49         type: string
50       value_type:
51         type: string
52         default: INT
53       group_tag:
54         type: string
55         default: Group1
56       units:
57         type: string
58       description:
59         type: string
60       json_query_method:
61         type: string
62         default: NAMEKEY
63       http_endpoint_ref:
64         type: string
65       widget_type:
66         type: string
67         default: COUNTER
68
69 node_types:
70   tosca.nodes.riftio.VNF1:
71     derived_from: tosca.nodes.nfv.VNF
72     properties:
73       #vdu_ref:
74       #  type: list
75       #  description: VDUs this VNF references
76       vnf_configuration:
77         type: tosca.datatypes.network.riftio.vnf_configuration
78       port:
79         type: integer
80         constraints:
81           - in_range: [1, 65535]
82     capabilities:
83       mgmt_interface:
84         type: tosca.capabilities.riftio.mgmt_interface_type
85       http_endpoint:
86         type: tosca.capabilities.riftio.http_endpoint_type
87       # Have not figured out how to do a list for capabilities
88       # If you specify multiple cpabilites of same type the
89       # last one is only available in parser
90       monitoring_param_0:
91         type: tosca.capabilities.riftio.monitoring_param
92       monitoring_param_1:
93         type: tosca.capabilities.riftio.monitoring_param
94     requirements:
95       - vdus:
96           type: tosca.capabilities.nfv.VirtualLinkable
97           relationship: tosca.relationships.nfv.VirtualLinksTo
98           node: tosca.nodes.riftio.VDU1
99           occurrences: [ 1, UNBOUND ]
100
101   tosca.nodes.riftio.VDU1:
102     derived_from: tosca.nodes.nfv.VDU
103     properties:
104       count:
105         type: integer
106         default: 1
107       cloud_init :
108         type: string
109         default: "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\nssh_pwauth: True\nruncmd:\n  - [ systemctl, daemon-reload ]\n  - [ ifup, eth1 ]\n"
110     capabilities:
111       virtual_linkable:
112         type: tosca.capabilities.nfv.VirtualLinkable
113
114   tosca.nodes.riftio.CP1:
115     derived_from: tosca.nodes.nfv.CP
116     properties:
117       name:
118         type: string
119         description: Name of the connection point
120       cp_type:
121         type: string
122         description: Type of connection point
123       vdu_intf_name:
124         type: string
125         description: Name of interface on VDU
126       vdu_intf_type:
127         type: string
128         description: Type of interface on VDU
129
130   tosca.nodes.riftio.VL1:
131     derived_from: tosca.nodes.nfv.VL.ELAN
132     properties:
133       description:
134         type: string
135
136 group_types:
137   tosca.groups.riftio.ConfigPrimitives:
138     derived_from: tosca.groups.Root
139     properties:
140       primitive:
141         type: map
142
143 policy_types:
144   tosca.policies.riftio.ScalingGroup:
145     derived_from: tosca.policies.Root
146     properties:
147       name:
148         type: string
149       max_instance_count:
150         type: integer
151       min_instance_count:
152         type: integer
153       vnfd_members:
154         type: map
155       config_actions:
156         type: map