1 tosca_definitions_version: tosca_simple_yaml_1_0_0
5 ContrailComputeGlobalTypes:
6 file: ContrailComputeGlobalTypesServiceTemplate.yaml
7 CinderVolumeGlobalTypes:
8 file: CinderVolumeGlobalTypesServiceTemplate.yaml
9 ContrailVirtualNetworkGlobalType:
10 file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11 AbstractSubstituteGlobalTypes:
12 file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13 ContrailPortGlobalTypes:
14 file: ContrailPortGlobalTypesServiceTemplate.yaml
15 NeutronPortGlobalTypes:
16 file: NeutronPortGlobalTypesServiceTemplate.yaml
17 NeutronNetGlobalTypes:
18 file: NeutronNetGlobalTypesServiceTemplate.yaml
20 file: CommonGlobalTypesServiceTemplate.yaml
21 ContrailAbstractSubstituteGlobalTypes:
22 file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23 ContrailNetworkRuleGlobalType:
24 file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25 NeutronSecurityRulesGlobalTypes:
26 file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27 NovaServerGlobalTypes:
28 file: NovaServerGlobalTypesServiceTemplate.yaml
29 ContrailV2VirtualMachineInterfaceGlobalType:
30 file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
37 description: Start of src port
38 private_net_1_gateway:
42 description: Private network gateway address
47 description: Name of private network to be created
48 private_net_2_gateway:
52 description: Private network gateway address
57 description: Virtual network id
62 description: Name of private network to be created
63 private_net_2_pool_start:
67 description: Start of private network IP address allocation pool
72 description: Private network address (CIDR notation)
73 private_net_1_pool_end:
77 description: End of private network IP address allocation pool
82 description: End of src port
87 description: service to apply
92 description: Start of dst port
97 description: End of dst port
102 description: Private network address (CIDR notation)
103 private_net_1_pool_start:
107 description: Start of private network IP address allocation pool
108 private_net_2_pool_end:
112 description: End of private network IP address allocation pool
117 description: Direction of Policy
120 type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
123 get_input: private_net_1_name
127 get_input: private_net_1_cidr
129 get_input: private_net_1_gateway
132 get_input: private_net_1_pool_start
134 get_input: private_net_1_pool_end
136 type: org.openecomp.resource.vfc.rules.nodes.heat.network.contrail.NetworkRules
142 get_input: start_src_ports
144 get_input: end_src_ports
148 - get_input: apply_service
150 - virtual_network: private_net_1
153 get_input: start_dst_ports
155 get_input: end_dst_ports
157 - virtual_network: private_net_2
161 get_input: policy_name
164 capability: tosca.capabilities.Attachment
166 relationship: org.openecomp.relationships.AttachesTo
168 capability: tosca.capabilities.Attachment
170 relationship: org.openecomp.relationships.AttachesTo
172 type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
175 get_input: private_net_2_name
179 get_input: private_net_2_cidr
181 get_input: private_net_2_gateway
184 get_input: private_net_2_pool_start
186 get_input: private_net_2_pool_end
188 network_policy_chain:
189 type: org.openecomp.groups.heat.HeatStack
191 heat_file: ../Artifacts/network_policy_chain.yaml
193 HOT template to creates two virtual network with one subnet each. Creates a network policy for applying service between two VNs created before. Attach the network policy to two virtual networks