Update and align normatives
[sdc.git] / catalog-be / src / main / resources / import / tosca / heat-types / subInterfaceV2 / subInterfaceV2.yml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 node_types:    
3   org.openecomp.resource.cp.nodes.network.v2.SubInterface:
4     derived_from: tosca.nodes.Root
5     properties:
6       ip_address:
7         description: Allow the user to set a fixed IP address. Note that this address is a request to the provider which they will attempt to fulfill but may not be able to dependent on the network the port is associated with.
8         type: string
9         required: false
10       order:
11         description: 'The order of the NIC on the compute instance (e.g. eth2). Note:
12           when binding more than one port to a single compute (aka multi vNICs) and
13           ordering is desired, it is *mandatory* that all ports will be set with an
14           order value and. The order values must represent a positive, arithmetic
15           progression that starts with 0 (e.g. 0, 1, 2, ..., n).'
16         type: integer
17         default: 0
18         required: false
19         constraints:
20         - greater_or_equal: 0
21       is_default:
22         description: Set is_default=true to apply a default gateway route on the running compute instance to the associated network gateway. Only one port that is associated to single compute node can set as default=true.
23         type: boolean
24         default: false
25         required: false
26       ip_range_start:
27         description: Defines the starting IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network.
28         type: string
29         required: false
30       ip_range_end:
31         description: Defines the ending IP of a range to be allocated for the compute instances that are associated by this Port. Without setting this property the IP allocation is done from the entire CIDR block of the network.
32         type: string
33         required: false
34     attributes:
35       ip_address:
36         description: The IP address would be assigned to the associated compute instance.
37         type: string
38     requirements:
39     - subinterface_link:
40         capability: tosca.capabilities.network.Linkable
41         relationship: tosca.relationships.network.LinksTo
42     - binding:
43         capability: tosca.capabilities.network.Bindable
44         relationship: tosca.relationships.network.BindsTo    
45