aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src/test/resources/resource-examples/network.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'asdc-controller/src/test/resources/resource-examples/network.yaml')
-rw-r--r--asdc-controller/src/test/resources/resource-examples/network.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/asdc-controller/src/test/resources/resource-examples/network.yaml b/asdc-controller/src/test/resources/resource-examples/network.yaml
new file mode 100644
index 0000000000..ae10346cbc
--- /dev/null
+++ b/asdc-controller/src/test/resources/resource-examples/network.yaml
@@ -0,0 +1,32 @@
+heat_template_version: 2013-05-23
+
+description: >
+ HOT template that creates one COR network (direct).
+
+parameters:
+ cor_direct_net_name:
+ type: string
+ description: Name of COR direct network
+ cor_direct_net_cidr:
+ type: string
+ description: Direct network address (CIDR notation)
+ cor_direct_net_gateway:
+ type: string
+ description: Direct network gateway address
+ cor_direct_net_RT:
+ type: string
+ description: Direct network route-target (RT)
+
+resources:
+ cor_direct_net:
+ type: OS::Contrail::VirtualNetwork
+ properties:
+ name: { get_param: cor_direct_net_name }
+ route_targets: [ get_param: cor_direct_net_RT ]
+
+ cor_direct_ip_subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ network_id: { get_resource: cor_direct_net }
+ cidr: {get_param: cor_direct_net_cidr}
+ gateway_ip: { get_param: cor_direct_net_gateway }