diff options
author | Deepak S <deepak.s@linux.intel.com> | 2017-10-08 23:10:29 -0700 |
---|---|---|
committer | Deepak S <deepak.s@linux.intel.com> | 2017-10-08 23:12:51 -0700 |
commit | 12566dfed5cd94c21fc1ad0b1a2fab51a3e952e9 (patch) | |
tree | 8cd56d819ddaaaccf753525390b5e1f3c00d1c45 /heat_template | |
parent | dfdeef016f8f2d4f14a3c01d183bff6170dcdbb9 (diff) |
Adding Sample Heat template for VNFs
This patch adds samplevnf openstack heat templates generated by
yardstick
Change-Id: I23295a9b66f91dc6a136a6106a46115f47da35d4
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'heat_template')
-rw-r--r-- | heat_template/cgnapt_heat_provider.yaml | 528 | ||||
-rw-r--r-- | heat_template/cgnapt_heat_tenant.yaml | 521 | ||||
-rw-r--r-- | heat_template/udp_replay_heat_provider.yaml | 528 | ||||
-rw-r--r-- | heat_template/udp_replay_heat_tenant.yaml | 521 | ||||
-rw-r--r-- | heat_template/vacl_heat_provider.yaml | 528 | ||||
-rw-r--r-- | heat_template/vacl_heat_tenant.yaml | 521 | ||||
-rw-r--r-- | heat_template/vfw_heat_provider.yaml | 528 | ||||
-rw-r--r-- | heat_template/vfw_heat_tenant.yaml | 521 |
8 files changed, 4196 insertions, 0 deletions
diff --git a/heat_template/cgnapt_heat_provider.yaml b/heat_template/cgnapt_heat_provider.yaml new file mode 100644 index 00000000..1dc78cf9 --- /dev/null +++ b/heat_template/cgnapt_heat_provider.yaml @@ -0,0 +1,528 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 21:59:14.\nAll referred generated resources are prefixed with the template\nname (i.e. cgnapt_provider).", + "heat_template_version": "2013-05-23", + "outputs": { + "cgnapt_vnf.cgnapt_provider": { + "description": "VM UUID", + "value": { + "get_resource": "cgnapt_vnf.cgnapt_provider" + } + }, + "cgnapt_vnf.cgnapt_provider-fip": { + "description": "floating ip cgnapt_vnf.cgnapt_provider-fip", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-fip", + "ip" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-mgmt-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port-device_id": { + "description": "Device ID for interface cgnapt_vnf.cgnapt_provider-mgmt-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "device_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port-mac_address": { + "description": "MAC Address for interface cgnapt_vnf.cgnapt_provider-mgmt-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "mac_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port-network_id": { + "description": "Network ID for interface cgnapt_vnf.cgnapt_provider-mgmt-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "network_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port-subnet_id": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-mgmt-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe0-port": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-xe0-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe0-port-device_id": { + "description": "Device ID for interface cgnapt_vnf.cgnapt_provider-xe0-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe0-port", + "device_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe0-port-mac_address": { + "description": "MAC Address for interface cgnapt_vnf.cgnapt_provider-xe0-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe0-port", + "mac_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe0-port-network_id": { + "description": "Network ID for interface cgnapt_vnf.cgnapt_provider-xe0-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe0-port", + "network_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe0-port-subnet_id": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-xe0-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe1-port": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-xe1-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe1-port-device_id": { + "description": "Device ID for interface cgnapt_vnf.cgnapt_provider-xe1-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe1-port", + "device_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe1-port-mac_address": { + "description": "MAC Address for interface cgnapt_vnf.cgnapt_provider-xe1-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe1-port", + "mac_address" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe1-port-network_id": { + "description": "Network ID for interface cgnapt_vnf.cgnapt_provider-xe1-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe1-port", + "network_id" + ] + } + }, + "cgnapt_vnf.cgnapt_provider-xe1-port-subnet_id": { + "description": "Address for interface cgnapt_vnf.cgnapt_provider-xe1-port", + "value": { + "get_attr": [ + "cgnapt_vnf.cgnapt_provider-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt_provider-flavor": { + "description": "Flavor cgnapt_provider-flavor ID", + "value": { + "get_resource": "cgnapt_provider-flavor" + } + }, + "cgnapt_provider-mgmt-subnet": { + "description": "subnet cgnapt_provider-mgmt-subnet ID", + "value": { + "get_resource": "cgnapt_provider-mgmt-subnet" + } + }, + "cgnapt_provider-mgmt-subnet-cidr": { + "description": "subnet cgnapt_provider-mgmt-subnet cidr", + "value": { + "get_attr": [ + "cgnapt_provider-mgmt-subnet", + "cidr" + ] + } + }, + "cgnapt_provider-mgmt-subnet-gateway_ip": { + "description": "subnet cgnapt_provider-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt_provider-mgmt-subnet", + "gateway_ip" + ] + } + }, + "cgnapt_provider-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "cgnapt_provider-secgroup" + } + }, + "cgnapt_provider-xe0-subnet": { + "description": "subnet cgnapt_provider-xe0-subnet ID", + "value": { + "get_resource": "cgnapt_provider-xe0-subnet" + } + }, + "cgnapt_provider-xe0-subnet-cidr": { + "description": "subnet cgnapt_provider-xe0-subnet cidr", + "value": { + "get_attr": [ + "cgnapt_provider-xe0-subnet", + "cidr" + ] + } + }, + "cgnapt_provider-xe0-subnet-gateway_ip": { + "description": "subnet cgnapt_provider-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt_provider-xe0-subnet", + "gateway_ip" + ] + } + }, + "cgnapt_provider-xe1-subnet": { + "description": "subnet cgnapt_provider-xe1-subnet ID", + "value": { + "get_resource": "cgnapt_provider-xe1-subnet" + } + }, + "cgnapt_provider-xe1-subnet-cidr": { + "description": "subnet cgnapt_provider-xe1-subnet cidr", + "value": { + "get_attr": [ + "cgnapt_provider-xe1-subnet", + "cidr" + ] + } + }, + "cgnapt_provider-xe1-subnet-gateway_ip": { + "description": "subnet cgnapt_provider-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt_provider-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "cgnapt_vnf.cgnapt_provider": { + "depends_on": [ + "cgnapt_provider-flavor", + "cgnapt_provider-key", + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "cgnapt_vnf.cgnapt_provider-xe0-port", + "cgnapt_vnf.cgnapt_provider-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "cgnapt_provider-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "cgnapt_provider-key" + }, + "name": "cgnapt_vnf.cgnapt_provider", + "networks": [ + { + "port": { + "get_resource": "cgnapt_vnf.cgnapt_provider-mgmt-port" + } + }, + { + "port": { + "get_resource": "cgnapt_vnf.cgnapt_provider-xe0-port" + } + }, + { + "port": { + "get_resource": "cgnapt_vnf.cgnapt_provider-xe1-port" + } + } + ], + "scheduler_hints": { + "different_host": [] + } + }, + "type": "OS::Nova::Server" + }, + "cgnapt_vnf.cgnapt_provider-fip": { + "depends_on": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port", + "cgnapt_provider-mgmt-router-if0", + "cgnapt_provider-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "cgnapt_vnf.cgnapt_provider-fip-assoc": { + "depends_on": [ + "cgnapt_vnf.cgnapt_provider-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "cgnapt_vnf.cgnapt_provider-fip" + }, + "port_id": { + "get_resource": "cgnapt_vnf.cgnapt_provider-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "cgnapt_vnf.cgnapt_provider-mgmt-port": { + "depends_on": [ + "cgnapt_provider-mgmt-subnet", + "cgnapt_provider-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt_provider-mgmt-subnet" + } + } + ], + "name": "cgnapt_vnf.cgnapt_provider-mgmt-port", + "network_id": { + "get_resource": "cgnapt_provider-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "cgnapt_provider-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "cgnapt_vnf.cgnapt_provider-xe0-port": { + "depends_on": [ + "cgnapt_provider-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt_provider-xe0-subnet" + } + } + ], + "name": "cgnapt_vnf.cgnapt_provider-xe0-port", + "network_id": { + "get_resource": "cgnapt_provider-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "cgnapt_vnf.cgnapt_provider-xe1-port": { + "depends_on": [ + "cgnapt_provider-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt_provider-xe1-subnet" + } + } + ], + "name": "cgnapt_vnf.cgnapt_provider-xe1-port", + "network_id": { + "get_resource": "cgnapt_provider-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "cgnapt_provider-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "cgnapt_provider-flavor", + "is_public": true, + "name": "cgnapt_provider-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "cgnapt_provider-key": { + "properties": { + "name": "cgnapt_provider-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4/LMV8dMasxxb6qcfc7LspMZM8zwIm+4jPZdwcEBEdx+LO7T/HUpyeqjwKmH+0dE3YFQfoEH5rkJR+vxGSAFeMABR37JsymD1u/1w3HoTyI9t1XjsEXwrWApcOrlrEZSJRb2qedbGF9FQcV/pNJYhMG6YV6zVnd5gBxKoJuEunWMopxeK6NXsmpDGJsEkNR+uzKzc+1LuOG+6cDG44PiidxlVrX86LFkUBuZ7Wtzdu8fnYYyUbGDk9nLIuEynqg5WbMF8ScLca/r6KP/4QdUKR+U1+VCo7ylFzLPaFmeaHis0H/Xe09+MXX/4sdXJCwUOFH7JCoyxZUPAp2JrLk5L\n" + }, + "type": "OS::Nova::KeyPair" + }, + "cgnapt_provider-mgmt": { + "properties": { + "name": "cgnapt_provider-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "cgnapt_provider-mgmt-router": { + "depends_on": [ + "cgnapt_provider-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "cgnapt_provider-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "cgnapt_provider-mgmt-router-if0": { + "depends_on": [ + "cgnapt_provider-mgmt-router", + "cgnapt_provider-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "cgnapt_provider-mgmt-router" + }, + "subnet_id": { + "get_resource": "cgnapt_provider-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "cgnapt_provider-mgmt-subnet": { + "depends_on": "cgnapt_provider-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "cgnapt_provider-mgmt-subnet", + "network_id": { + "get_resource": "cgnapt_provider-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "cgnapt_provider-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "cgnapt_provider-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "cgnapt_provider-xe0": { + "properties": { + "name": "cgnapt_provider-xe0", + "network_type": "flat", + "physical_network": "phystenant1", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "cgnapt_provider-xe0-subnet": { + "depends_on": "cgnapt_provider-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "cgnapt_provider-xe0-subnet", + "network_id": { + "get_resource": "cgnapt_provider-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "cgnapt_provider-xe1": { + "properties": { + "name": "cgnapt_provider-xe1", + "network_type": "flat", + "physical_network": "phystenant2", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "cgnapt_provider-xe1-subnet": { + "depends_on": "cgnapt_provider-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "cgnapt_provider-xe1-subnet", + "network_id": { + "get_resource": "cgnapt_provider-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/cgnapt_heat_tenant.yaml b/heat_template/cgnapt_heat_tenant.yaml new file mode 100644 index 00000000..ec2a228c --- /dev/null +++ b/heat_template/cgnapt_heat_tenant.yaml @@ -0,0 +1,521 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 19:41:19.\nAll referred generated resources are prefixed with the template\nname (i.e. cgnapt).", + "heat_template_version": "2013-05-23", + "outputs": { + "cgnapt.cgnapt": { + "description": "VM UUID", + "value": { + "get_resource": "cgnapt.cgnapt" + } + }, + "cgnapt.cgnapt-fip": { + "description": "floating ip cgnapt.cgnapt-fip", + "value": { + "get_attr": [ + "cgnapt.cgnapt-fip", + "ip" + ] + } + }, + "cgnapt.cgnapt-mgmt-port": { + "description": "Address for interface cgnapt.cgnapt-mgmt-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt.cgnapt-mgmt-port-device_id": { + "description": "Device ID for interface cgnapt.cgnapt-mgmt-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-mgmt-port", + "device_id" + ] + } + }, + "cgnapt.cgnapt-mgmt-port-mac_address": { + "description": "MAC Address for interface cgnapt.cgnapt-mgmt-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-mgmt-port", + "mac_address" + ] + } + }, + "cgnapt.cgnapt-mgmt-port-network_id": { + "description": "Network ID for interface cgnapt.cgnapt-mgmt-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-mgmt-port", + "network_id" + ] + } + }, + "cgnapt.cgnapt-mgmt-port-subnet_id": { + "description": "Address for interface cgnapt.cgnapt-mgmt-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt.cgnapt-xe0-port": { + "description": "Address for interface cgnapt.cgnapt-xe0-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt.cgnapt-xe0-port-device_id": { + "description": "Device ID for interface cgnapt.cgnapt-xe0-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe0-port", + "device_id" + ] + } + }, + "cgnapt.cgnapt-xe0-port-mac_address": { + "description": "MAC Address for interface cgnapt.cgnapt-xe0-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe0-port", + "mac_address" + ] + } + }, + "cgnapt.cgnapt-xe0-port-network_id": { + "description": "Network ID for interface cgnapt.cgnapt-xe0-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe0-port", + "network_id" + ] + } + }, + "cgnapt.cgnapt-xe0-port-subnet_id": { + "description": "Address for interface cgnapt.cgnapt-xe0-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt.cgnapt-xe1-port": { + "description": "Address for interface cgnapt.cgnapt-xe1-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "cgnapt.cgnapt-xe1-port-device_id": { + "description": "Device ID for interface cgnapt.cgnapt-xe1-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe1-port", + "device_id" + ] + } + }, + "cgnapt.cgnapt-xe1-port-mac_address": { + "description": "MAC Address for interface cgnapt.cgnapt-xe1-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe1-port", + "mac_address" + ] + } + }, + "cgnapt.cgnapt-xe1-port-network_id": { + "description": "Network ID for interface cgnapt.cgnapt-xe1-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe1-port", + "network_id" + ] + } + }, + "cgnapt.cgnapt-xe1-port-subnet_id": { + "description": "Address for interface cgnapt.cgnapt-xe1-port", + "value": { + "get_attr": [ + "cgnapt.cgnapt-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "cgnapt-flavor": { + "description": "Flavor cgnapt-flavor ID", + "value": { + "get_resource": "cgnapt-flavor" + } + }, + "cgnapt-mgmt-subnet": { + "description": "subnet cgnapt-mgmt-subnet ID", + "value": { + "get_resource": "cgnapt-mgmt-subnet" + } + }, + "cgnapt-mgmt-subnet-cidr": { + "description": "subnet cgnapt-mgmt-subnet cidr", + "value": { + "get_attr": [ + "cgnapt-mgmt-subnet", + "cidr" + ] + } + }, + "cgnapt-mgmt-subnet-gateway_ip": { + "description": "subnet cgnapt-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt-mgmt-subnet", + "gateway_ip" + ] + } + }, + "cgnapt-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "cgnapt-secgroup" + } + }, + "cgnapt-xe0-subnet": { + "description": "subnet cgnapt-xe0-subnet ID", + "value": { + "get_resource": "cgnapt-xe0-subnet" + } + }, + "cgnapt-xe0-subnet-cidr": { + "description": "subnet cgnapt-xe0-subnet cidr", + "value": { + "get_attr": [ + "cgnapt-xe0-subnet", + "cidr" + ] + } + }, + "cgnapt-xe0-subnet-gateway_ip": { + "description": "subnet cgnapt-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt-xe0-subnet", + "gateway_ip" + ] + } + }, + "cgnapt-xe1-subnet": { + "description": "subnet cgnapt-xe1-subnet ID", + "value": { + "get_resource": "cgnapt-xe1-subnet" + } + }, + "cgnapt-xe1-subnet-cidr": { + "description": "subnet cgnapt-xe1-subnet cidr", + "value": { + "get_attr": [ + "cgnapt-xe1-subnet", + "cidr" + ] + } + }, + "cgnapt-xe1-subnet-gateway_ip": { + "description": "subnet cgnapt-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "cgnapt-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "cgnapt.cgnapt": { + "depends_on": [ + "cgnapt-flavor", + "cgnapt-key", + "cgnapt.cgnapt-mgmt-port", + "cgnapt.cgnapt-xe0-port", + "cgnapt.cgnapt-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "cgnapt-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "cgnapt-key" + }, + "name": "cgnapt.cgnapt", + "networks": [ + { + "port": { + "get_resource": "cgnapt.cgnapt-mgmt-port" + } + }, + { + "port": { + "get_resource": "cgnapt.cgnapt-xe0-port" + } + }, + { + "port": { + "get_resource": "cgnapt.cgnapt-xe1-port" + } + } + ] + }, + "type": "OS::Nova::Server" + }, + "cgnapt.cgnapt-fip": { + "depends_on": [ + "cgnapt.cgnapt-mgmt-port", + "cgnapt-mgmt-router-if0", + "cgnapt-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "cgnapt.cgnapt-fip-assoc": { + "depends_on": [ + "cgnapt.cgnapt-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "cgnapt.cgnapt-fip" + }, + "port_id": { + "get_resource": "cgnapt.cgnapt-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "cgnapt.cgnapt-mgmt-port": { + "depends_on": [ + "cgnapt-mgmt-subnet", + "cgnapt-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt-mgmt-subnet" + } + } + ], + "name": "cgnapt.cgnapt-mgmt-port", + "network_id": { + "get_resource": "cgnapt-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "cgnapt-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "cgnapt.cgnapt-xe0-port": { + "depends_on": [ + "cgnapt-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt-xe0-subnet" + } + } + ], + "name": "cgnapt.cgnapt-xe0-port", + "network_id": { + "get_resource": "cgnapt-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "cgnapt.cgnapt-xe1-port": { + "depends_on": [ + "cgnapt-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "cgnapt-xe1-subnet" + } + } + ], + "name": "cgnapt.cgnapt-xe1-port", + "network_id": { + "get_resource": "cgnapt-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "cgnapt-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "cgnapt-flavor", + "is_public": true, + "name": "cgnapt-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "cgnapt-key": { + "properties": { + "name": "cgnapt-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpNQ5/uWHvNfs9s5qqx9Nksx3g355aBKuCMwa/tWegva1F22qkTQas9JemZdMbURLntyo7ifYCKPkzWPo3yTY9zOOUD2Ugtuaq4FxuhJqo8WGB0TNQCbtWpoapFvRS0CoKj4GCXl3yVMZrFmTaB/Us326oQoxrdhcHUGxYQLuswdqSqDI/IOXnljRMEPT2KNvRjYI6R6yxeu673qCNpE12RgphCptp9uKUxvLnBmVJgfg4Sn1AzqF/p6Zk+CeyhtiGEDAyaVVvhCMcjsQpG7jkklWnE7ftDxbCvihQhl5amqxArk/MgJRAL6tGvVwKSpXibKhep1dwQVaFbowowxGB\n" + }, + "type": "OS::Nova::KeyPair" + }, + "cgnapt-mgmt": { + "properties": { + "name": "cgnapt-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "cgnapt-mgmt-router": { + "depends_on": [ + "cgnapt-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "cgnapt-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "cgnapt-mgmt-router-if0": { + "depends_on": [ + "cgnapt-mgmt-router", + "cgnapt-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "cgnapt-mgmt-router" + }, + "subnet_id": { + "get_resource": "cgnapt-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "cgnapt-mgmt-subnet": { + "depends_on": "cgnapt-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "cgnapt-mgmt-subnet", + "network_id": { + "get_resource": "cgnapt-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "cgnapt-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "cgnapt-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "cgnapt-xe0": { + "properties": { + "name": "cgnapt-xe0", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "cgnapt-xe0-subnet": { + "depends_on": "cgnapt-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "cgnapt-xe0-subnet", + "network_id": { + "get_resource": "cgnapt-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "cgnapt-xe1": { + "properties": { + "name": "cgnapt-xe1", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "cgnapt-xe1-subnet": { + "depends_on": "cgnapt-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "cgnapt-xe1-subnet", + "network_id": { + "get_resource": "cgnapt-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/udp_replay_heat_provider.yaml b/heat_template/udp_replay_heat_provider.yaml new file mode 100644 index 00000000..3f7f9541 --- /dev/null +++ b/heat_template/udp_replay_heat_provider.yaml @@ -0,0 +1,528 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 21:59:14.\nAll referred generated resources are prefixed with the template\nname (i.e. udp_replay_provider).", + "heat_template_version": "2013-05-23", + "outputs": { + "udp_replay_vnf.udp_replay_provider": { + "description": "VM UUID", + "value": { + "get_resource": "udp_replay_vnf.udp_replay_provider" + } + }, + "udp_replay_vnf.udp_replay_provider-fip": { + "description": "floating ip udp_replay_vnf.udp_replay_provider-fip", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-fip", + "ip" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-mgmt-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port-device_id": { + "description": "Device ID for interface udp_replay_vnf.udp_replay_provider-mgmt-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "device_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port-mac_address": { + "description": "MAC Address for interface udp_replay_vnf.udp_replay_provider-mgmt-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "mac_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port-network_id": { + "description": "Network ID for interface udp_replay_vnf.udp_replay_provider-mgmt-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "network_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port-subnet_id": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-mgmt-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe0-port": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-xe0-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe0-port-device_id": { + "description": "Device ID for interface udp_replay_vnf.udp_replay_provider-xe0-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe0-port", + "device_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe0-port-mac_address": { + "description": "MAC Address for interface udp_replay_vnf.udp_replay_provider-xe0-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe0-port", + "mac_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe0-port-network_id": { + "description": "Network ID for interface udp_replay_vnf.udp_replay_provider-xe0-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe0-port", + "network_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe0-port-subnet_id": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-xe0-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe1-port": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-xe1-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe1-port-device_id": { + "description": "Device ID for interface udp_replay_vnf.udp_replay_provider-xe1-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe1-port", + "device_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe1-port-mac_address": { + "description": "MAC Address for interface udp_replay_vnf.udp_replay_provider-xe1-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe1-port", + "mac_address" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe1-port-network_id": { + "description": "Network ID for interface udp_replay_vnf.udp_replay_provider-xe1-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe1-port", + "network_id" + ] + } + }, + "udp_replay_vnf.udp_replay_provider-xe1-port-subnet_id": { + "description": "Address for interface udp_replay_vnf.udp_replay_provider-xe1-port", + "value": { + "get_attr": [ + "udp_replay_vnf.udp_replay_provider-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay_provider-flavor": { + "description": "Flavor udp_replay_provider-flavor ID", + "value": { + "get_resource": "udp_replay_provider-flavor" + } + }, + "udp_replay_provider-mgmt-subnet": { + "description": "subnet udp_replay_provider-mgmt-subnet ID", + "value": { + "get_resource": "udp_replay_provider-mgmt-subnet" + } + }, + "udp_replay_provider-mgmt-subnet-cidr": { + "description": "subnet udp_replay_provider-mgmt-subnet cidr", + "value": { + "get_attr": [ + "udp_replay_provider-mgmt-subnet", + "cidr" + ] + } + }, + "udp_replay_provider-mgmt-subnet-gateway_ip": { + "description": "subnet udp_replay_provider-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay_provider-mgmt-subnet", + "gateway_ip" + ] + } + }, + "udp_replay_provider-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "udp_replay_provider-secgroup" + } + }, + "udp_replay_provider-xe0-subnet": { + "description": "subnet udp_replay_provider-xe0-subnet ID", + "value": { + "get_resource": "udp_replay_provider-xe0-subnet" + } + }, + "udp_replay_provider-xe0-subnet-cidr": { + "description": "subnet udp_replay_provider-xe0-subnet cidr", + "value": { + "get_attr": [ + "udp_replay_provider-xe0-subnet", + "cidr" + ] + } + }, + "udp_replay_provider-xe0-subnet-gateway_ip": { + "description": "subnet udp_replay_provider-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay_provider-xe0-subnet", + "gateway_ip" + ] + } + }, + "udp_replay_provider-xe1-subnet": { + "description": "subnet udp_replay_provider-xe1-subnet ID", + "value": { + "get_resource": "udp_replay_provider-xe1-subnet" + } + }, + "udp_replay_provider-xe1-subnet-cidr": { + "description": "subnet udp_replay_provider-xe1-subnet cidr", + "value": { + "get_attr": [ + "udp_replay_provider-xe1-subnet", + "cidr" + ] + } + }, + "udp_replay_provider-xe1-subnet-gateway_ip": { + "description": "subnet udp_replay_provider-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay_provider-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "udp_replay_vnf.udp_replay_provider": { + "depends_on": [ + "udp_replay_provider-flavor", + "udp_replay_provider-key", + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "udp_replay_vnf.udp_replay_provider-xe0-port", + "udp_replay_vnf.udp_replay_provider-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "udp_replay_provider-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "udp_replay_provider-key" + }, + "name": "udp_replay_vnf.udp_replay_provider", + "networks": [ + { + "port": { + "get_resource": "udp_replay_vnf.udp_replay_provider-mgmt-port" + } + }, + { + "port": { + "get_resource": "udp_replay_vnf.udp_replay_provider-xe0-port" + } + }, + { + "port": { + "get_resource": "udp_replay_vnf.udp_replay_provider-xe1-port" + } + } + ], + "scheduler_hints": { + "different_host": [] + } + }, + "type": "OS::Nova::Server" + }, + "udp_replay_vnf.udp_replay_provider-fip": { + "depends_on": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port", + "udp_replay_provider-mgmt-router-if0", + "udp_replay_provider-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "udp_replay_vnf.udp_replay_provider-fip-assoc": { + "depends_on": [ + "udp_replay_vnf.udp_replay_provider-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "udp_replay_vnf.udp_replay_provider-fip" + }, + "port_id": { + "get_resource": "udp_replay_vnf.udp_replay_provider-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "udp_replay_vnf.udp_replay_provider-mgmt-port": { + "depends_on": [ + "udp_replay_provider-mgmt-subnet", + "udp_replay_provider-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay_provider-mgmt-subnet" + } + } + ], + "name": "udp_replay_vnf.udp_replay_provider-mgmt-port", + "network_id": { + "get_resource": "udp_replay_provider-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "udp_replay_provider-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "udp_replay_vnf.udp_replay_provider-xe0-port": { + "depends_on": [ + "udp_replay_provider-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay_provider-xe0-subnet" + } + } + ], + "name": "udp_replay_vnf.udp_replay_provider-xe0-port", + "network_id": { + "get_resource": "udp_replay_provider-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "udp_replay_vnf.udp_replay_provider-xe1-port": { + "depends_on": [ + "udp_replay_provider-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay_provider-xe1-subnet" + } + } + ], + "name": "udp_replay_vnf.udp_replay_provider-xe1-port", + "network_id": { + "get_resource": "udp_replay_provider-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "udp_replay_provider-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "udp_replay_provider-flavor", + "is_public": true, + "name": "udp_replay_provider-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "udp_replay_provider-key": { + "properties": { + "name": "udp_replay_provider-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4/LMV8dMasxxb6qcfc7LspMZM8zwIm+4jPZdwcEBEdx+LO7T/HUpyeqjwKmH+0dE3YFQfoEH5rkJR+vxGSAFeMABR37JsymD1u/1w3HoTyI9t1XjsEXwrWApcOrlrEZSJRb2qedbGF9FQcV/pNJYhMG6YV6zVnd5gBxKoJuEunWMopxeK6NXsmpDGJsEkNR+uzKzc+1LuOG+6cDG44PiidxlVrX86LFkUBuZ7Wtzdu8fnYYyUbGDk9nLIuEynqg5WbMF8ScLca/r6KP/4QdUKR+U1+VCo7ylFzLPaFmeaHis0H/Xe09+MXX/4sdXJCwUOFH7JCoyxZUPAp2JrLk5L\n" + }, + "type": "OS::Nova::KeyPair" + }, + "udp_replay_provider-mgmt": { + "properties": { + "name": "udp_replay_provider-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "udp_replay_provider-mgmt-router": { + "depends_on": [ + "udp_replay_provider-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "udp_replay_provider-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "udp_replay_provider-mgmt-router-if0": { + "depends_on": [ + "udp_replay_provider-mgmt-router", + "udp_replay_provider-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "udp_replay_provider-mgmt-router" + }, + "subnet_id": { + "get_resource": "udp_replay_provider-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "udp_replay_provider-mgmt-subnet": { + "depends_on": "udp_replay_provider-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "udp_replay_provider-mgmt-subnet", + "network_id": { + "get_resource": "udp_replay_provider-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "udp_replay_provider-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "udp_replay_provider-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "udp_replay_provider-xe0": { + "properties": { + "name": "udp_replay_provider-xe0", + "network_type": "flat", + "physical_network": "phystenant1", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "udp_replay_provider-xe0-subnet": { + "depends_on": "udp_replay_provider-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "udp_replay_provider-xe0-subnet", + "network_id": { + "get_resource": "udp_replay_provider-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "udp_replay_provider-xe1": { + "properties": { + "name": "udp_replay_provider-xe1", + "network_type": "flat", + "physical_network": "phystenant2", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "udp_replay_provider-xe1-subnet": { + "depends_on": "udp_replay_provider-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "udp_replay_provider-xe1-subnet", + "network_id": { + "get_resource": "udp_replay_provider-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/udp_replay_heat_tenant.yaml b/heat_template/udp_replay_heat_tenant.yaml new file mode 100644 index 00000000..0e94fce4 --- /dev/null +++ b/heat_template/udp_replay_heat_tenant.yaml @@ -0,0 +1,521 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 19:41:19.\nAll referred generated resources are prefixed with the template\nname (i.e. udp_replay).", + "heat_template_version": "2013-05-23", + "outputs": { + "udp_replay.udp_replay": { + "description": "VM UUID", + "value": { + "get_resource": "udp_replay.udp_replay" + } + }, + "udp_replay.udp_replay-fip": { + "description": "floating ip udp_replay.udp_replay-fip", + "value": { + "get_attr": [ + "udp_replay.udp_replay-fip", + "ip" + ] + } + }, + "udp_replay.udp_replay-mgmt-port": { + "description": "Address for interface udp_replay.udp_replay-mgmt-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay.udp_replay-mgmt-port-device_id": { + "description": "Device ID for interface udp_replay.udp_replay-mgmt-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-mgmt-port", + "device_id" + ] + } + }, + "udp_replay.udp_replay-mgmt-port-mac_address": { + "description": "MAC Address for interface udp_replay.udp_replay-mgmt-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-mgmt-port", + "mac_address" + ] + } + }, + "udp_replay.udp_replay-mgmt-port-network_id": { + "description": "Network ID for interface udp_replay.udp_replay-mgmt-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-mgmt-port", + "network_id" + ] + } + }, + "udp_replay.udp_replay-mgmt-port-subnet_id": { + "description": "Address for interface udp_replay.udp_replay-mgmt-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay.udp_replay-xe0-port": { + "description": "Address for interface udp_replay.udp_replay-xe0-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay.udp_replay-xe0-port-device_id": { + "description": "Device ID for interface udp_replay.udp_replay-xe0-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe0-port", + "device_id" + ] + } + }, + "udp_replay.udp_replay-xe0-port-mac_address": { + "description": "MAC Address for interface udp_replay.udp_replay-xe0-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe0-port", + "mac_address" + ] + } + }, + "udp_replay.udp_replay-xe0-port-network_id": { + "description": "Network ID for interface udp_replay.udp_replay-xe0-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe0-port", + "network_id" + ] + } + }, + "udp_replay.udp_replay-xe0-port-subnet_id": { + "description": "Address for interface udp_replay.udp_replay-xe0-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay.udp_replay-xe1-port": { + "description": "Address for interface udp_replay.udp_replay-xe1-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "udp_replay.udp_replay-xe1-port-device_id": { + "description": "Device ID for interface udp_replay.udp_replay-xe1-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe1-port", + "device_id" + ] + } + }, + "udp_replay.udp_replay-xe1-port-mac_address": { + "description": "MAC Address for interface udp_replay.udp_replay-xe1-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe1-port", + "mac_address" + ] + } + }, + "udp_replay.udp_replay-xe1-port-network_id": { + "description": "Network ID for interface udp_replay.udp_replay-xe1-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe1-port", + "network_id" + ] + } + }, + "udp_replay.udp_replay-xe1-port-subnet_id": { + "description": "Address for interface udp_replay.udp_replay-xe1-port", + "value": { + "get_attr": [ + "udp_replay.udp_replay-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "udp_replay-flavor": { + "description": "Flavor udp_replay-flavor ID", + "value": { + "get_resource": "udp_replay-flavor" + } + }, + "udp_replay-mgmt-subnet": { + "description": "subnet udp_replay-mgmt-subnet ID", + "value": { + "get_resource": "udp_replay-mgmt-subnet" + } + }, + "udp_replay-mgmt-subnet-cidr": { + "description": "subnet udp_replay-mgmt-subnet cidr", + "value": { + "get_attr": [ + "udp_replay-mgmt-subnet", + "cidr" + ] + } + }, + "udp_replay-mgmt-subnet-gateway_ip": { + "description": "subnet udp_replay-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay-mgmt-subnet", + "gateway_ip" + ] + } + }, + "udp_replay-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "udp_replay-secgroup" + } + }, + "udp_replay-xe0-subnet": { + "description": "subnet udp_replay-xe0-subnet ID", + "value": { + "get_resource": "udp_replay-xe0-subnet" + } + }, + "udp_replay-xe0-subnet-cidr": { + "description": "subnet udp_replay-xe0-subnet cidr", + "value": { + "get_attr": [ + "udp_replay-xe0-subnet", + "cidr" + ] + } + }, + "udp_replay-xe0-subnet-gateway_ip": { + "description": "subnet udp_replay-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay-xe0-subnet", + "gateway_ip" + ] + } + }, + "udp_replay-xe1-subnet": { + "description": "subnet udp_replay-xe1-subnet ID", + "value": { + "get_resource": "udp_replay-xe1-subnet" + } + }, + "udp_replay-xe1-subnet-cidr": { + "description": "subnet udp_replay-xe1-subnet cidr", + "value": { + "get_attr": [ + "udp_replay-xe1-subnet", + "cidr" + ] + } + }, + "udp_replay-xe1-subnet-gateway_ip": { + "description": "subnet udp_replay-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "udp_replay-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "udp_replay.udp_replay": { + "depends_on": [ + "udp_replay-flavor", + "udp_replay-key", + "udp_replay.udp_replay-mgmt-port", + "udp_replay.udp_replay-xe0-port", + "udp_replay.udp_replay-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "udp_replay-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "udp_replay-key" + }, + "name": "udp_replay.udp_replay", + "networks": [ + { + "port": { + "get_resource": "udp_replay.udp_replay-mgmt-port" + } + }, + { + "port": { + "get_resource": "udp_replay.udp_replay-xe0-port" + } + }, + { + "port": { + "get_resource": "udp_replay.udp_replay-xe1-port" + } + } + ] + }, + "type": "OS::Nova::Server" + }, + "udp_replay.udp_replay-fip": { + "depends_on": [ + "udp_replay.udp_replay-mgmt-port", + "udp_replay-mgmt-router-if0", + "udp_replay-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "udp_replay.udp_replay-fip-assoc": { + "depends_on": [ + "udp_replay.udp_replay-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "udp_replay.udp_replay-fip" + }, + "port_id": { + "get_resource": "udp_replay.udp_replay-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "udp_replay.udp_replay-mgmt-port": { + "depends_on": [ + "udp_replay-mgmt-subnet", + "udp_replay-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay-mgmt-subnet" + } + } + ], + "name": "udp_replay.udp_replay-mgmt-port", + "network_id": { + "get_resource": "udp_replay-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "udp_replay-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "udp_replay.udp_replay-xe0-port": { + "depends_on": [ + "udp_replay-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay-xe0-subnet" + } + } + ], + "name": "udp_replay.udp_replay-xe0-port", + "network_id": { + "get_resource": "udp_replay-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "udp_replay.udp_replay-xe1-port": { + "depends_on": [ + "udp_replay-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "udp_replay-xe1-subnet" + } + } + ], + "name": "udp_replay.udp_replay-xe1-port", + "network_id": { + "get_resource": "udp_replay-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "udp_replay-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "udp_replay-flavor", + "is_public": true, + "name": "udp_replay-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "udp_replay-key": { + "properties": { + "name": "udp_replay-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpNQ5/uWHvNfs9s5qqx9Nksx3g355aBKuCMwa/tWegva1F22qkTQas9JemZdMbURLntyo7ifYCKPkzWPo3yTY9zOOUD2Ugtuaq4FxuhJqo8WGB0TNQCbtWpoapFvRS0CoKj4GCXl3yVMZrFmTaB/Us326oQoxrdhcHUGxYQLuswdqSqDI/IOXnljRMEPT2KNvRjYI6R6yxeu673qCNpE12RgphCptp9uKUxvLnBmVJgfg4Sn1AzqF/p6Zk+CeyhtiGEDAyaVVvhCMcjsQpG7jkklWnE7ftDxbCvihQhl5amqxArk/MgJRAL6tGvVwKSpXibKhep1dwQVaFbowowxGB\n" + }, + "type": "OS::Nova::KeyPair" + }, + "udp_replay-mgmt": { + "properties": { + "name": "udp_replay-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "udp_replay-mgmt-router": { + "depends_on": [ + "udp_replay-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "udp_replay-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "udp_replay-mgmt-router-if0": { + "depends_on": [ + "udp_replay-mgmt-router", + "udp_replay-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "udp_replay-mgmt-router" + }, + "subnet_id": { + "get_resource": "udp_replay-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "udp_replay-mgmt-subnet": { + "depends_on": "udp_replay-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "udp_replay-mgmt-subnet", + "network_id": { + "get_resource": "udp_replay-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "udp_replay-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "udp_replay-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "udp_replay-xe0": { + "properties": { + "name": "udp_replay-xe0", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "udp_replay-xe0-subnet": { + "depends_on": "udp_replay-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "udp_replay-xe0-subnet", + "network_id": { + "get_resource": "udp_replay-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "udp_replay-xe1": { + "properties": { + "name": "udp_replay-xe1", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "udp_replay-xe1-subnet": { + "depends_on": "udp_replay-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "udp_replay-xe1-subnet", + "network_id": { + "get_resource": "udp_replay-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/vacl_heat_provider.yaml b/heat_template/vacl_heat_provider.yaml new file mode 100644 index 00000000..e752bc36 --- /dev/null +++ b/heat_template/vacl_heat_provider.yaml @@ -0,0 +1,528 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 21:59:14.\nAll referred generated resources are prefixed with the template\nname (i.e. vacl_provider).", + "heat_template_version": "2013-05-23", + "outputs": { + "vacl_vnf.vacl_provider": { + "description": "VM UUID", + "value": { + "get_resource": "vacl_vnf.vacl_provider" + } + }, + "vacl_vnf.vacl_provider-fip": { + "description": "floating ip vacl_vnf.vacl_provider-fip", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-fip", + "ip" + ] + } + }, + "vacl_vnf.vacl_provider-mgmt-port": { + "description": "Address for interface vacl_vnf.vacl_provider-mgmt-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl_vnf.vacl_provider-mgmt-port-device_id": { + "description": "Device ID for interface vacl_vnf.vacl_provider-mgmt-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-mgmt-port", + "device_id" + ] + } + }, + "vacl_vnf.vacl_provider-mgmt-port-mac_address": { + "description": "MAC Address for interface vacl_vnf.vacl_provider-mgmt-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-mgmt-port", + "mac_address" + ] + } + }, + "vacl_vnf.vacl_provider-mgmt-port-network_id": { + "description": "Network ID for interface vacl_vnf.vacl_provider-mgmt-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-mgmt-port", + "network_id" + ] + } + }, + "vacl_vnf.vacl_provider-mgmt-port-subnet_id": { + "description": "Address for interface vacl_vnf.vacl_provider-mgmt-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe0-port": { + "description": "Address for interface vacl_vnf.vacl_provider-xe0-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl_vnf.vacl_provider-xe0-port-device_id": { + "description": "Device ID for interface vacl_vnf.vacl_provider-xe0-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe0-port", + "device_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe0-port-mac_address": { + "description": "MAC Address for interface vacl_vnf.vacl_provider-xe0-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe0-port", + "mac_address" + ] + } + }, + "vacl_vnf.vacl_provider-xe0-port-network_id": { + "description": "Network ID for interface vacl_vnf.vacl_provider-xe0-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe0-port", + "network_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe0-port-subnet_id": { + "description": "Address for interface vacl_vnf.vacl_provider-xe0-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe1-port": { + "description": "Address for interface vacl_vnf.vacl_provider-xe1-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl_vnf.vacl_provider-xe1-port-device_id": { + "description": "Device ID for interface vacl_vnf.vacl_provider-xe1-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe1-port", + "device_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe1-port-mac_address": { + "description": "MAC Address for interface vacl_vnf.vacl_provider-xe1-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe1-port", + "mac_address" + ] + } + }, + "vacl_vnf.vacl_provider-xe1-port-network_id": { + "description": "Network ID for interface vacl_vnf.vacl_provider-xe1-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe1-port", + "network_id" + ] + } + }, + "vacl_vnf.vacl_provider-xe1-port-subnet_id": { + "description": "Address for interface vacl_vnf.vacl_provider-xe1-port", + "value": { + "get_attr": [ + "vacl_vnf.vacl_provider-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl_provider-flavor": { + "description": "Flavor vacl_provider-flavor ID", + "value": { + "get_resource": "vacl_provider-flavor" + } + }, + "vacl_provider-mgmt-subnet": { + "description": "subnet vacl_provider-mgmt-subnet ID", + "value": { + "get_resource": "vacl_provider-mgmt-subnet" + } + }, + "vacl_provider-mgmt-subnet-cidr": { + "description": "subnet vacl_provider-mgmt-subnet cidr", + "value": { + "get_attr": [ + "vacl_provider-mgmt-subnet", + "cidr" + ] + } + }, + "vacl_provider-mgmt-subnet-gateway_ip": { + "description": "subnet vacl_provider-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl_provider-mgmt-subnet", + "gateway_ip" + ] + } + }, + "vacl_provider-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "vacl_provider-secgroup" + } + }, + "vacl_provider-xe0-subnet": { + "description": "subnet vacl_provider-xe0-subnet ID", + "value": { + "get_resource": "vacl_provider-xe0-subnet" + } + }, + "vacl_provider-xe0-subnet-cidr": { + "description": "subnet vacl_provider-xe0-subnet cidr", + "value": { + "get_attr": [ + "vacl_provider-xe0-subnet", + "cidr" + ] + } + }, + "vacl_provider-xe0-subnet-gateway_ip": { + "description": "subnet vacl_provider-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl_provider-xe0-subnet", + "gateway_ip" + ] + } + }, + "vacl_provider-xe1-subnet": { + "description": "subnet vacl_provider-xe1-subnet ID", + "value": { + "get_resource": "vacl_provider-xe1-subnet" + } + }, + "vacl_provider-xe1-subnet-cidr": { + "description": "subnet vacl_provider-xe1-subnet cidr", + "value": { + "get_attr": [ + "vacl_provider-xe1-subnet", + "cidr" + ] + } + }, + "vacl_provider-xe1-subnet-gateway_ip": { + "description": "subnet vacl_provider-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl_provider-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "vacl_vnf.vacl_provider": { + "depends_on": [ + "vacl_provider-flavor", + "vacl_provider-key", + "vacl_vnf.vacl_provider-mgmt-port", + "vacl_vnf.vacl_provider-xe0-port", + "vacl_vnf.vacl_provider-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "vacl_provider-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "vacl_provider-key" + }, + "name": "vacl_vnf.vacl_provider", + "networks": [ + { + "port": { + "get_resource": "vacl_vnf.vacl_provider-mgmt-port" + } + }, + { + "port": { + "get_resource": "vacl_vnf.vacl_provider-xe0-port" + } + }, + { + "port": { + "get_resource": "vacl_vnf.vacl_provider-xe1-port" + } + } + ], + "scheduler_hints": { + "different_host": [] + } + }, + "type": "OS::Nova::Server" + }, + "vacl_vnf.vacl_provider-fip": { + "depends_on": [ + "vacl_vnf.vacl_provider-mgmt-port", + "vacl_provider-mgmt-router-if0", + "vacl_provider-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "vacl_vnf.vacl_provider-fip-assoc": { + "depends_on": [ + "vacl_vnf.vacl_provider-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "vacl_vnf.vacl_provider-fip" + }, + "port_id": { + "get_resource": "vacl_vnf.vacl_provider-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "vacl_vnf.vacl_provider-mgmt-port": { + "depends_on": [ + "vacl_provider-mgmt-subnet", + "vacl_provider-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl_provider-mgmt-subnet" + } + } + ], + "name": "vacl_vnf.vacl_provider-mgmt-port", + "network_id": { + "get_resource": "vacl_provider-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "vacl_provider-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "vacl_vnf.vacl_provider-xe0-port": { + "depends_on": [ + "vacl_provider-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl_provider-xe0-subnet" + } + } + ], + "name": "vacl_vnf.vacl_provider-xe0-port", + "network_id": { + "get_resource": "vacl_provider-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vacl_vnf.vacl_provider-xe1-port": { + "depends_on": [ + "vacl_provider-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl_provider-xe1-subnet" + } + } + ], + "name": "vacl_vnf.vacl_provider-xe1-port", + "network_id": { + "get_resource": "vacl_provider-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vacl_provider-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "vacl_provider-flavor", + "is_public": true, + "name": "vacl_provider-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "vacl_provider-key": { + "properties": { + "name": "vacl_provider-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4/LMV8dMasxxb6qcfc7LspMZM8zwIm+4jPZdwcEBEdx+LO7T/HUpyeqjwKmH+0dE3YFQfoEH5rkJR+vxGSAFeMABR37JsymD1u/1w3HoTyI9t1XjsEXwrWApcOrlrEZSJRb2qedbGF9FQcV/pNJYhMG6YV6zVnd5gBxKoJuEunWMopxeK6NXsmpDGJsEkNR+uzKzc+1LuOG+6cDG44PiidxlVrX86LFkUBuZ7Wtzdu8fnYYyUbGDk9nLIuEynqg5WbMF8ScLca/r6KP/4QdUKR+U1+VCo7ylFzLPaFmeaHis0H/Xe09+MXX/4sdXJCwUOFH7JCoyxZUPAp2JrLk5L\n" + }, + "type": "OS::Nova::KeyPair" + }, + "vacl_provider-mgmt": { + "properties": { + "name": "vacl_provider-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "vacl_provider-mgmt-router": { + "depends_on": [ + "vacl_provider-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "vacl_provider-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "vacl_provider-mgmt-router-if0": { + "depends_on": [ + "vacl_provider-mgmt-router", + "vacl_provider-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "vacl_provider-mgmt-router" + }, + "subnet_id": { + "get_resource": "vacl_provider-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "vacl_provider-mgmt-subnet": { + "depends_on": "vacl_provider-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "vacl_provider-mgmt-subnet", + "network_id": { + "get_resource": "vacl_provider-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vacl_provider-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "vacl_provider-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "vacl_provider-xe0": { + "properties": { + "name": "vacl_provider-xe0", + "network_type": "flat", + "physical_network": "phystenant1", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "vacl_provider-xe0-subnet": { + "depends_on": "vacl_provider-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "vacl_provider-xe0-subnet", + "network_id": { + "get_resource": "vacl_provider-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vacl_provider-xe1": { + "properties": { + "name": "vacl_provider-xe1", + "network_type": "flat", + "physical_network": "phystenant2", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "vacl_provider-xe1-subnet": { + "depends_on": "vacl_provider-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "vacl_provider-xe1-subnet", + "network_id": { + "get_resource": "vacl_provider-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/vacl_heat_tenant.yaml b/heat_template/vacl_heat_tenant.yaml new file mode 100644 index 00000000..d902e7e2 --- /dev/null +++ b/heat_template/vacl_heat_tenant.yaml @@ -0,0 +1,521 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 19:41:19.\nAll referred generated resources are prefixed with the template\nname (i.e. vacl).", + "heat_template_version": "2013-05-23", + "outputs": { + "vacl.vacl": { + "description": "VM UUID", + "value": { + "get_resource": "vacl.vacl" + } + }, + "vacl.vacl-fip": { + "description": "floating ip vacl.vacl-fip", + "value": { + "get_attr": [ + "vacl.vacl-fip", + "ip" + ] + } + }, + "vacl.vacl-mgmt-port": { + "description": "Address for interface vacl.vacl-mgmt-port", + "value": { + "get_attr": [ + "vacl.vacl-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl.vacl-mgmt-port-device_id": { + "description": "Device ID for interface vacl.vacl-mgmt-port", + "value": { + "get_attr": [ + "vacl.vacl-mgmt-port", + "device_id" + ] + } + }, + "vacl.vacl-mgmt-port-mac_address": { + "description": "MAC Address for interface vacl.vacl-mgmt-port", + "value": { + "get_attr": [ + "vacl.vacl-mgmt-port", + "mac_address" + ] + } + }, + "vacl.vacl-mgmt-port-network_id": { + "description": "Network ID for interface vacl.vacl-mgmt-port", + "value": { + "get_attr": [ + "vacl.vacl-mgmt-port", + "network_id" + ] + } + }, + "vacl.vacl-mgmt-port-subnet_id": { + "description": "Address for interface vacl.vacl-mgmt-port", + "value": { + "get_attr": [ + "vacl.vacl-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl.vacl-xe0-port": { + "description": "Address for interface vacl.vacl-xe0-port", + "value": { + "get_attr": [ + "vacl.vacl-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl.vacl-xe0-port-device_id": { + "description": "Device ID for interface vacl.vacl-xe0-port", + "value": { + "get_attr": [ + "vacl.vacl-xe0-port", + "device_id" + ] + } + }, + "vacl.vacl-xe0-port-mac_address": { + "description": "MAC Address for interface vacl.vacl-xe0-port", + "value": { + "get_attr": [ + "vacl.vacl-xe0-port", + "mac_address" + ] + } + }, + "vacl.vacl-xe0-port-network_id": { + "description": "Network ID for interface vacl.vacl-xe0-port", + "value": { + "get_attr": [ + "vacl.vacl-xe0-port", + "network_id" + ] + } + }, + "vacl.vacl-xe0-port-subnet_id": { + "description": "Address for interface vacl.vacl-xe0-port", + "value": { + "get_attr": [ + "vacl.vacl-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl.vacl-xe1-port": { + "description": "Address for interface vacl.vacl-xe1-port", + "value": { + "get_attr": [ + "vacl.vacl-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vacl.vacl-xe1-port-device_id": { + "description": "Device ID for interface vacl.vacl-xe1-port", + "value": { + "get_attr": [ + "vacl.vacl-xe1-port", + "device_id" + ] + } + }, + "vacl.vacl-xe1-port-mac_address": { + "description": "MAC Address for interface vacl.vacl-xe1-port", + "value": { + "get_attr": [ + "vacl.vacl-xe1-port", + "mac_address" + ] + } + }, + "vacl.vacl-xe1-port-network_id": { + "description": "Network ID for interface vacl.vacl-xe1-port", + "value": { + "get_attr": [ + "vacl.vacl-xe1-port", + "network_id" + ] + } + }, + "vacl.vacl-xe1-port-subnet_id": { + "description": "Address for interface vacl.vacl-xe1-port", + "value": { + "get_attr": [ + "vacl.vacl-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vacl-flavor": { + "description": "Flavor vacl-flavor ID", + "value": { + "get_resource": "vacl-flavor" + } + }, + "vacl-mgmt-subnet": { + "description": "subnet vacl-mgmt-subnet ID", + "value": { + "get_resource": "vacl-mgmt-subnet" + } + }, + "vacl-mgmt-subnet-cidr": { + "description": "subnet vacl-mgmt-subnet cidr", + "value": { + "get_attr": [ + "vacl-mgmt-subnet", + "cidr" + ] + } + }, + "vacl-mgmt-subnet-gateway_ip": { + "description": "subnet vacl-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl-mgmt-subnet", + "gateway_ip" + ] + } + }, + "vacl-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "vacl-secgroup" + } + }, + "vacl-xe0-subnet": { + "description": "subnet vacl-xe0-subnet ID", + "value": { + "get_resource": "vacl-xe0-subnet" + } + }, + "vacl-xe0-subnet-cidr": { + "description": "subnet vacl-xe0-subnet cidr", + "value": { + "get_attr": [ + "vacl-xe0-subnet", + "cidr" + ] + } + }, + "vacl-xe0-subnet-gateway_ip": { + "description": "subnet vacl-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl-xe0-subnet", + "gateway_ip" + ] + } + }, + "vacl-xe1-subnet": { + "description": "subnet vacl-xe1-subnet ID", + "value": { + "get_resource": "vacl-xe1-subnet" + } + }, + "vacl-xe1-subnet-cidr": { + "description": "subnet vacl-xe1-subnet cidr", + "value": { + "get_attr": [ + "vacl-xe1-subnet", + "cidr" + ] + } + }, + "vacl-xe1-subnet-gateway_ip": { + "description": "subnet vacl-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "vacl-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "vacl.vacl": { + "depends_on": [ + "vacl-flavor", + "vacl-key", + "vacl.vacl-mgmt-port", + "vacl.vacl-xe0-port", + "vacl.vacl-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "vacl-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "vacl-key" + }, + "name": "vacl.vacl", + "networks": [ + { + "port": { + "get_resource": "vacl.vacl-mgmt-port" + } + }, + { + "port": { + "get_resource": "vacl.vacl-xe0-port" + } + }, + { + "port": { + "get_resource": "vacl.vacl-xe1-port" + } + } + ] + }, + "type": "OS::Nova::Server" + }, + "vacl.vacl-fip": { + "depends_on": [ + "vacl.vacl-mgmt-port", + "vacl-mgmt-router-if0", + "vacl-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "vacl.vacl-fip-assoc": { + "depends_on": [ + "vacl.vacl-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "vacl.vacl-fip" + }, + "port_id": { + "get_resource": "vacl.vacl-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "vacl.vacl-mgmt-port": { + "depends_on": [ + "vacl-mgmt-subnet", + "vacl-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl-mgmt-subnet" + } + } + ], + "name": "vacl.vacl-mgmt-port", + "network_id": { + "get_resource": "vacl-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "vacl-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "vacl.vacl-xe0-port": { + "depends_on": [ + "vacl-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl-xe0-subnet" + } + } + ], + "name": "vacl.vacl-xe0-port", + "network_id": { + "get_resource": "vacl-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vacl.vacl-xe1-port": { + "depends_on": [ + "vacl-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vacl-xe1-subnet" + } + } + ], + "name": "vacl.vacl-xe1-port", + "network_id": { + "get_resource": "vacl-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vacl-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "vacl-flavor", + "is_public": true, + "name": "vacl-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "vacl-key": { + "properties": { + "name": "vacl-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpNQ5/uWHvNfs9s5qqx9Nksx3g355aBKuCMwa/tWegva1F22qkTQas9JemZdMbURLntyo7ifYCKPkzWPo3yTY9zOOUD2Ugtuaq4FxuhJqo8WGB0TNQCbtWpoapFvRS0CoKj4GCXl3yVMZrFmTaB/Us326oQoxrdhcHUGxYQLuswdqSqDI/IOXnljRMEPT2KNvRjYI6R6yxeu673qCNpE12RgphCptp9uKUxvLnBmVJgfg4Sn1AzqF/p6Zk+CeyhtiGEDAyaVVvhCMcjsQpG7jkklWnE7ftDxbCvihQhl5amqxArk/MgJRAL6tGvVwKSpXibKhep1dwQVaFbowowxGB\n" + }, + "type": "OS::Nova::KeyPair" + }, + "vacl-mgmt": { + "properties": { + "name": "vacl-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "vacl-mgmt-router": { + "depends_on": [ + "vacl-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "vacl-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "vacl-mgmt-router-if0": { + "depends_on": [ + "vacl-mgmt-router", + "vacl-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "vacl-mgmt-router" + }, + "subnet_id": { + "get_resource": "vacl-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "vacl-mgmt-subnet": { + "depends_on": "vacl-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "vacl-mgmt-subnet", + "network_id": { + "get_resource": "vacl-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vacl-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "vacl-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "vacl-xe0": { + "properties": { + "name": "vacl-xe0", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "vacl-xe0-subnet": { + "depends_on": "vacl-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "vacl-xe0-subnet", + "network_id": { + "get_resource": "vacl-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vacl-xe1": { + "properties": { + "name": "vacl-xe1", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "vacl-xe1-subnet": { + "depends_on": "vacl-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "vacl-xe1-subnet", + "network_id": { + "get_resource": "vacl-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/vfw_heat_provider.yaml b/heat_template/vfw_heat_provider.yaml new file mode 100644 index 00000000..0a1419aa --- /dev/null +++ b/heat_template/vfw_heat_provider.yaml @@ -0,0 +1,528 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 21:59:14.\nAll referred generated resources are prefixed with the template\nname (i.e. vfw_provider).", + "heat_template_version": "2013-05-23", + "outputs": { + "vfw_vnf.vfw_provider": { + "description": "VM UUID", + "value": { + "get_resource": "vfw_vnf.vfw_provider" + } + }, + "vfw_vnf.vfw_provider-fip": { + "description": "floating ip vfw_vnf.vfw_provider-fip", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-fip", + "ip" + ] + } + }, + "vfw_vnf.vfw_provider-mgmt-port": { + "description": "Address for interface vfw_vnf.vfw_provider-mgmt-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw_vnf.vfw_provider-mgmt-port-device_id": { + "description": "Device ID for interface vfw_vnf.vfw_provider-mgmt-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-mgmt-port", + "device_id" + ] + } + }, + "vfw_vnf.vfw_provider-mgmt-port-mac_address": { + "description": "MAC Address for interface vfw_vnf.vfw_provider-mgmt-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-mgmt-port", + "mac_address" + ] + } + }, + "vfw_vnf.vfw_provider-mgmt-port-network_id": { + "description": "Network ID for interface vfw_vnf.vfw_provider-mgmt-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-mgmt-port", + "network_id" + ] + } + }, + "vfw_vnf.vfw_provider-mgmt-port-subnet_id": { + "description": "Address for interface vfw_vnf.vfw_provider-mgmt-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe0-port": { + "description": "Address for interface vfw_vnf.vfw_provider-xe0-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw_vnf.vfw_provider-xe0-port-device_id": { + "description": "Device ID for interface vfw_vnf.vfw_provider-xe0-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe0-port", + "device_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe0-port-mac_address": { + "description": "MAC Address for interface vfw_vnf.vfw_provider-xe0-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe0-port", + "mac_address" + ] + } + }, + "vfw_vnf.vfw_provider-xe0-port-network_id": { + "description": "Network ID for interface vfw_vnf.vfw_provider-xe0-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe0-port", + "network_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe0-port-subnet_id": { + "description": "Address for interface vfw_vnf.vfw_provider-xe0-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe1-port": { + "description": "Address for interface vfw_vnf.vfw_provider-xe1-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw_vnf.vfw_provider-xe1-port-device_id": { + "description": "Device ID for interface vfw_vnf.vfw_provider-xe1-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe1-port", + "device_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe1-port-mac_address": { + "description": "MAC Address for interface vfw_vnf.vfw_provider-xe1-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe1-port", + "mac_address" + ] + } + }, + "vfw_vnf.vfw_provider-xe1-port-network_id": { + "description": "Network ID for interface vfw_vnf.vfw_provider-xe1-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe1-port", + "network_id" + ] + } + }, + "vfw_vnf.vfw_provider-xe1-port-subnet_id": { + "description": "Address for interface vfw_vnf.vfw_provider-xe1-port", + "value": { + "get_attr": [ + "vfw_vnf.vfw_provider-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw_provider-flavor": { + "description": "Flavor vfw_provider-flavor ID", + "value": { + "get_resource": "vfw_provider-flavor" + } + }, + "vfw_provider-mgmt-subnet": { + "description": "subnet vfw_provider-mgmt-subnet ID", + "value": { + "get_resource": "vfw_provider-mgmt-subnet" + } + }, + "vfw_provider-mgmt-subnet-cidr": { + "description": "subnet vfw_provider-mgmt-subnet cidr", + "value": { + "get_attr": [ + "vfw_provider-mgmt-subnet", + "cidr" + ] + } + }, + "vfw_provider-mgmt-subnet-gateway_ip": { + "description": "subnet vfw_provider-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw_provider-mgmt-subnet", + "gateway_ip" + ] + } + }, + "vfw_provider-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "vfw_provider-secgroup" + } + }, + "vfw_provider-xe0-subnet": { + "description": "subnet vfw_provider-xe0-subnet ID", + "value": { + "get_resource": "vfw_provider-xe0-subnet" + } + }, + "vfw_provider-xe0-subnet-cidr": { + "description": "subnet vfw_provider-xe0-subnet cidr", + "value": { + "get_attr": [ + "vfw_provider-xe0-subnet", + "cidr" + ] + } + }, + "vfw_provider-xe0-subnet-gateway_ip": { + "description": "subnet vfw_provider-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw_provider-xe0-subnet", + "gateway_ip" + ] + } + }, + "vfw_provider-xe1-subnet": { + "description": "subnet vfw_provider-xe1-subnet ID", + "value": { + "get_resource": "vfw_provider-xe1-subnet" + } + }, + "vfw_provider-xe1-subnet-cidr": { + "description": "subnet vfw_provider-xe1-subnet cidr", + "value": { + "get_attr": [ + "vfw_provider-xe1-subnet", + "cidr" + ] + } + }, + "vfw_provider-xe1-subnet-gateway_ip": { + "description": "subnet vfw_provider-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw_provider-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "vfw_vnf.vfw_provider": { + "depends_on": [ + "vfw_provider-flavor", + "vfw_provider-key", + "vfw_vnf.vfw_provider-mgmt-port", + "vfw_vnf.vfw_provider-xe0-port", + "vfw_vnf.vfw_provider-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "vfw_provider-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "vfw_provider-key" + }, + "name": "vfw_vnf.vfw_provider", + "networks": [ + { + "port": { + "get_resource": "vfw_vnf.vfw_provider-mgmt-port" + } + }, + { + "port": { + "get_resource": "vfw_vnf.vfw_provider-xe0-port" + } + }, + { + "port": { + "get_resource": "vfw_vnf.vfw_provider-xe1-port" + } + } + ], + "scheduler_hints": { + "different_host": [] + } + }, + "type": "OS::Nova::Server" + }, + "vfw_vnf.vfw_provider-fip": { + "depends_on": [ + "vfw_vnf.vfw_provider-mgmt-port", + "vfw_provider-mgmt-router-if0", + "vfw_provider-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "vfw_vnf.vfw_provider-fip-assoc": { + "depends_on": [ + "vfw_vnf.vfw_provider-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "vfw_vnf.vfw_provider-fip" + }, + "port_id": { + "get_resource": "vfw_vnf.vfw_provider-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "vfw_vnf.vfw_provider-mgmt-port": { + "depends_on": [ + "vfw_provider-mgmt-subnet", + "vfw_provider-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw_provider-mgmt-subnet" + } + } + ], + "name": "vfw_vnf.vfw_provider-mgmt-port", + "network_id": { + "get_resource": "vfw_provider-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "vfw_provider-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "vfw_vnf.vfw_provider-xe0-port": { + "depends_on": [ + "vfw_provider-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw_provider-xe0-subnet" + } + } + ], + "name": "vfw_vnf.vfw_provider-xe0-port", + "network_id": { + "get_resource": "vfw_provider-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vfw_vnf.vfw_provider-xe1-port": { + "depends_on": [ + "vfw_provider-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw_provider-xe1-subnet" + } + } + ], + "name": "vfw_vnf.vfw_provider-xe1-port", + "network_id": { + "get_resource": "vfw_provider-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vfw_provider-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "vfw_provider-flavor", + "is_public": true, + "name": "vfw_provider-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "vfw_provider-key": { + "properties": { + "name": "vfw_provider-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4/LMV8dMasxxb6qcfc7LspMZM8zwIm+4jPZdwcEBEdx+LO7T/HUpyeqjwKmH+0dE3YFQfoEH5rkJR+vxGSAFeMABR37JsymD1u/1w3HoTyI9t1XjsEXwrWApcOrlrEZSJRb2qedbGF9FQcV/pNJYhMG6YV6zVnd5gBxKoJuEunWMopxeK6NXsmpDGJsEkNR+uzKzc+1LuOG+6cDG44PiidxlVrX86LFkUBuZ7Wtzdu8fnYYyUbGDk9nLIuEynqg5WbMF8ScLca/r6KP/4QdUKR+U1+VCo7ylFzLPaFmeaHis0H/Xe09+MXX/4sdXJCwUOFH7JCoyxZUPAp2JrLk5L\n" + }, + "type": "OS::Nova::KeyPair" + }, + "vfw_provider-mgmt": { + "properties": { + "name": "vfw_provider-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "vfw_provider-mgmt-router": { + "depends_on": [ + "vfw_provider-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "vfw_provider-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "vfw_provider-mgmt-router-if0": { + "depends_on": [ + "vfw_provider-mgmt-router", + "vfw_provider-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "vfw_provider-mgmt-router" + }, + "subnet_id": { + "get_resource": "vfw_provider-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "vfw_provider-mgmt-subnet": { + "depends_on": "vfw_provider-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "vfw_provider-mgmt-subnet", + "network_id": { + "get_resource": "vfw_provider-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vfw_provider-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "vfw_provider-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "vfw_provider-xe0": { + "properties": { + "name": "vfw_provider-xe0", + "network_type": "flat", + "physical_network": "phystenant1", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "vfw_provider-xe0-subnet": { + "depends_on": "vfw_provider-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "vfw_provider-xe0-subnet", + "network_id": { + "get_resource": "vfw_provider-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vfw_provider-xe1": { + "properties": { + "name": "vfw_provider-xe1", + "network_type": "flat", + "physical_network": "phystenant2", + "port_security_enabled": false + }, + "type": "OS::Neutron::ProviderNet" + }, + "vfw_provider-xe1-subnet": { + "depends_on": "vfw_provider-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "true", + "gateway_ip": null, + "name": "vfw_provider-xe1-subnet", + "network_id": { + "get_resource": "vfw_provider-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} diff --git a/heat_template/vfw_heat_tenant.yaml b/heat_template/vfw_heat_tenant.yaml new file mode 100644 index 00000000..f114ac34 --- /dev/null +++ b/heat_template/vfw_heat_tenant.yaml @@ -0,0 +1,521 @@ +{ + "description": "Stack built by the yardstick framework for root on host d891f47de4a1 2017-10-08 19:41:19.\nAll referred generated resources are prefixed with the template\nname (i.e. vfw).", + "heat_template_version": "2013-05-23", + "outputs": { + "vfw.vfw": { + "description": "VM UUID", + "value": { + "get_resource": "vfw.vfw" + } + }, + "vfw.vfw-fip": { + "description": "floating ip vfw.vfw-fip", + "value": { + "get_attr": [ + "vfw.vfw-fip", + "ip" + ] + } + }, + "vfw.vfw-mgmt-port": { + "description": "Address for interface vfw.vfw-mgmt-port", + "value": { + "get_attr": [ + "vfw.vfw-mgmt-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw.vfw-mgmt-port-device_id": { + "description": "Device ID for interface vfw.vfw-mgmt-port", + "value": { + "get_attr": [ + "vfw.vfw-mgmt-port", + "device_id" + ] + } + }, + "vfw.vfw-mgmt-port-mac_address": { + "description": "MAC Address for interface vfw.vfw-mgmt-port", + "value": { + "get_attr": [ + "vfw.vfw-mgmt-port", + "mac_address" + ] + } + }, + "vfw.vfw-mgmt-port-network_id": { + "description": "Network ID for interface vfw.vfw-mgmt-port", + "value": { + "get_attr": [ + "vfw.vfw-mgmt-port", + "network_id" + ] + } + }, + "vfw.vfw-mgmt-port-subnet_id": { + "description": "Address for interface vfw.vfw-mgmt-port", + "value": { + "get_attr": [ + "vfw.vfw-mgmt-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw.vfw-xe0-port": { + "description": "Address for interface vfw.vfw-xe0-port", + "value": { + "get_attr": [ + "vfw.vfw-xe0-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw.vfw-xe0-port-device_id": { + "description": "Device ID for interface vfw.vfw-xe0-port", + "value": { + "get_attr": [ + "vfw.vfw-xe0-port", + "device_id" + ] + } + }, + "vfw.vfw-xe0-port-mac_address": { + "description": "MAC Address for interface vfw.vfw-xe0-port", + "value": { + "get_attr": [ + "vfw.vfw-xe0-port", + "mac_address" + ] + } + }, + "vfw.vfw-xe0-port-network_id": { + "description": "Network ID for interface vfw.vfw-xe0-port", + "value": { + "get_attr": [ + "vfw.vfw-xe0-port", + "network_id" + ] + } + }, + "vfw.vfw-xe0-port-subnet_id": { + "description": "Address for interface vfw.vfw-xe0-port", + "value": { + "get_attr": [ + "vfw.vfw-xe0-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw.vfw-xe1-port": { + "description": "Address for interface vfw.vfw-xe1-port", + "value": { + "get_attr": [ + "vfw.vfw-xe1-port", + "fixed_ips", + 0, + "ip_address" + ] + } + }, + "vfw.vfw-xe1-port-device_id": { + "description": "Device ID for interface vfw.vfw-xe1-port", + "value": { + "get_attr": [ + "vfw.vfw-xe1-port", + "device_id" + ] + } + }, + "vfw.vfw-xe1-port-mac_address": { + "description": "MAC Address for interface vfw.vfw-xe1-port", + "value": { + "get_attr": [ + "vfw.vfw-xe1-port", + "mac_address" + ] + } + }, + "vfw.vfw-xe1-port-network_id": { + "description": "Network ID for interface vfw.vfw-xe1-port", + "value": { + "get_attr": [ + "vfw.vfw-xe1-port", + "network_id" + ] + } + }, + "vfw.vfw-xe1-port-subnet_id": { + "description": "Address for interface vfw.vfw-xe1-port", + "value": { + "get_attr": [ + "vfw.vfw-xe1-port", + "fixed_ips", + 0, + "subnet_id" + ] + } + }, + "vfw-flavor": { + "description": "Flavor vfw-flavor ID", + "value": { + "get_resource": "vfw-flavor" + } + }, + "vfw-mgmt-subnet": { + "description": "subnet vfw-mgmt-subnet ID", + "value": { + "get_resource": "vfw-mgmt-subnet" + } + }, + "vfw-mgmt-subnet-cidr": { + "description": "subnet vfw-mgmt-subnet cidr", + "value": { + "get_attr": [ + "vfw-mgmt-subnet", + "cidr" + ] + } + }, + "vfw-mgmt-subnet-gateway_ip": { + "description": "subnet vfw-mgmt-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw-mgmt-subnet", + "gateway_ip" + ] + } + }, + "vfw-secgroup": { + "description": "ID of Security Group", + "value": { + "get_resource": "vfw-secgroup" + } + }, + "vfw-xe0-subnet": { + "description": "subnet vfw-xe0-subnet ID", + "value": { + "get_resource": "vfw-xe0-subnet" + } + }, + "vfw-xe0-subnet-cidr": { + "description": "subnet vfw-xe0-subnet cidr", + "value": { + "get_attr": [ + "vfw-xe0-subnet", + "cidr" + ] + } + }, + "vfw-xe0-subnet-gateway_ip": { + "description": "subnet vfw-xe0-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw-xe0-subnet", + "gateway_ip" + ] + } + }, + "vfw-xe1-subnet": { + "description": "subnet vfw-xe1-subnet ID", + "value": { + "get_resource": "vfw-xe1-subnet" + } + }, + "vfw-xe1-subnet-cidr": { + "description": "subnet vfw-xe1-subnet cidr", + "value": { + "get_attr": [ + "vfw-xe1-subnet", + "cidr" + ] + } + }, + "vfw-xe1-subnet-gateway_ip": { + "description": "subnet vfw-xe1-subnet gateway_ip", + "value": { + "get_attr": [ + "vfw-xe1-subnet", + "gateway_ip" + ] + } + } + }, + "resources": { + "vfw.vfw": { + "depends_on": [ + "vfw-flavor", + "vfw-key", + "vfw.vfw-mgmt-port", + "vfw.vfw-xe0-port", + "vfw.vfw-xe1-port" + ], + "properties": { + "admin_user": "ubuntu", + "config_drive": true, + "flavor": { + "get_resource": "vfw-flavor" + }, + "image": "yardstick-samplevnfs", + "key_name": { + "get_resource": "vfw-key" + }, + "name": "vfw.vfw", + "networks": [ + { + "port": { + "get_resource": "vfw.vfw-mgmt-port" + } + }, + { + "port": { + "get_resource": "vfw.vfw-xe0-port" + } + }, + { + "port": { + "get_resource": "vfw.vfw-xe1-port" + } + } + ] + }, + "type": "OS::Nova::Server" + }, + "vfw.vfw-fip": { + "depends_on": [ + "vfw.vfw-mgmt-port", + "vfw-mgmt-router-if0", + "vfw-secgroup" + ], + "properties": { + "pool": "yardstick-public" + }, + "type": "OS::Nova::FloatingIP" + }, + "vfw.vfw-fip-assoc": { + "depends_on": [ + "vfw.vfw-mgmt-port" + ], + "properties": { + "floatingip_id": { + "get_resource": "vfw.vfw-fip" + }, + "port_id": { + "get_resource": "vfw.vfw-mgmt-port" + } + }, + "type": "OS::Neutron::FloatingIPAssociation" + }, + "vfw.vfw-mgmt-port": { + "depends_on": [ + "vfw-mgmt-subnet", + "vfw-secgroup" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw-mgmt-subnet" + } + } + ], + "name": "vfw.vfw-mgmt-port", + "network_id": { + "get_resource": "vfw-mgmt" + }, + "replacement_policy": "AUTO", + "security_groups": [ + "vfw-secgroup" + ] + }, + "type": "OS::Neutron::Port" + }, + "vfw.vfw-xe0-port": { + "depends_on": [ + "vfw-xe0-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw-xe0-subnet" + } + } + ], + "name": "vfw.vfw-xe0-port", + "network_id": { + "get_resource": "vfw-xe0" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vfw.vfw-xe1-port": { + "depends_on": [ + "vfw-xe1-subnet" + ], + "properties": { + "binding:vnic_type": "normal", + "fixed_ips": [ + { + "subnet": { + "get_resource": "vfw-xe1-subnet" + } + } + ], + "name": "vfw.vfw-xe1-port", + "network_id": { + "get_resource": "vfw-xe1" + }, + "replacement_policy": "AUTO" + }, + "type": "OS::Neutron::Port" + }, + "vfw-flavor": { + "properties": { + "disk": 6, + "ephemeral": 0, + "extra_specs": { + "hw:cpu_cores": 10, + "hw:cpu_sockets": 1, + "hw:cpu_threads": 1 + }, + "flavorid": "vfw-flavor", + "is_public": true, + "name": "vfw-flavor", + "ram": 20480, + "rxtx_factor": 1.0, + "swap": 0, + "vcpus": 10 + }, + "type": "OS::Nova::Flavor" + }, + "vfw-key": { + "properties": { + "name": "vfw-key", + "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDpNQ5/uWHvNfs9s5qqx9Nksx3g355aBKuCMwa/tWegva1F22qkTQas9JemZdMbURLntyo7ifYCKPkzWPo3yTY9zOOUD2Ugtuaq4FxuhJqo8WGB0TNQCbtWpoapFvRS0CoKj4GCXl3yVMZrFmTaB/Us326oQoxrdhcHUGxYQLuswdqSqDI/IOXnljRMEPT2KNvRjYI6R6yxeu673qCNpE12RgphCptp9uKUxvLnBmVJgfg4Sn1AzqF/p6Zk+CeyhtiGEDAyaVVvhCMcjsQpG7jkklWnE7ftDxbCvihQhl5amqxArk/MgJRAL6tGvVwKSpXibKhep1dwQVaFbowowxGB\n" + }, + "type": "OS::Nova::KeyPair" + }, + "vfw-mgmt": { + "properties": { + "name": "vfw-mgmt" + }, + "type": "OS::Neutron::Net" + }, + "vfw-mgmt-router": { + "depends_on": [ + "vfw-mgmt-subnet" + ], + "properties": { + "external_gateway_info": { + "network": "yardstick-public" + }, + "name": "vfw-mgmt-router" + }, + "type": "OS::Neutron::Router" + }, + "vfw-mgmt-router-if0": { + "depends_on": [ + "vfw-mgmt-router", + "vfw-mgmt-subnet" + ], + "properties": { + "router_id": { + "get_resource": "vfw-mgmt-router" + }, + "subnet_id": { + "get_resource": "vfw-mgmt-subnet" + } + }, + "type": "OS::Neutron::RouterInterface" + }, + "vfw-mgmt-subnet": { + "depends_on": "vfw-mgmt", + "properties": { + "cidr": "10.0.1.0/24", + "enable_dhcp": "true", + "name": "vfw-mgmt-subnet", + "network_id": { + "get_resource": "vfw-mgmt" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vfw-secgroup": { + "properties": { + "description": "Group allowing icmp and upd/tcp on all ports", + "name": "vfw-secgroup", + "rules": [ + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "tcp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "port_range_max": "65535", + "port_range_min": "1", + "protocol": "udp", + "remote_ip_prefix": "0.0.0.0/0" + }, + { + "protocol": "icmp", + "remote_ip_prefix": "0.0.0.0/0" + } + ] + }, + "type": "OS::Neutron::SecurityGroup" + }, + "vfw-xe0": { + "properties": { + "name": "vfw-xe0", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "vfw-xe0-subnet": { + "depends_on": "vfw-xe0", + "properties": { + "cidr": "10.0.2.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "vfw-xe0-subnet", + "network_id": { + "get_resource": "vfw-xe0" + } + }, + "type": "OS::Neutron::Subnet" + }, + "vfw-xe1": { + "properties": { + "name": "vfw-xe1", + "port_security_enabled": false + }, + "type": "OS::Neutron::Net" + }, + "vfw-xe1-subnet": { + "depends_on": "vfw-xe1", + "properties": { + "cidr": "10.0.3.0/24", + "enable_dhcp": "false", + "gateway_ip": null, + "name": "vfw-xe1-subnet", + "network_id": { + "get_resource": "vfw-xe1" + } + }, + "type": "OS::Neutron::Subnet" + } + } +} |