Masaki Oyama 2ee465438c Add a VNF package sample for practical use cases
Added a sample VNF package for practical use cases.

In this sample, the use cases listed below is supported.
  - using multiple deployment flavours
  - deploying VNF connected to an external network
  - deploying VNF as HA cluster
  - deploying scalable VNF

Implements: blueprint add-vnf-package-sample-for-practical-use-cases
Spec: https://review.opendev.org/c/openstack/tacker-specs/+/814511
Change-Id: I1c55e028b96ba3c1ad26270d359e0b1165670078
2022-03-14 08:04:13 +00:00

78 lines
1.4 KiB
YAML

heat_template_version: rocky
description: 'Sample VDU_1 HOT'
parameters:
Image:
type: string
constraints:
- custom_constraint: 'glance.image'
Flavor:
type: string
default: "m1.tiny"
ExtNetwork:
type: string
constraints:
- custom_constraint: 'neutron.network'
IntNetwork:
type: string
constraints:
- custom_constraint: 'neutron.network'
ExtFixedIP:
type: string
IntFixedIP:
type: string
AvailabilityZone:
type: string
default: "nova"
Server_Group:
type: string
resources:
VDU_1:
type: OS::Nova::Server
depends_on: [ VDU1_CP0, VDU1_CP1 ]
properties:
name: VDU_100
flavor: { get_param: Flavor }
image: { get_param: Image }
networks:
- port:
get_resource: VDU1_CP0
- port:
get_resource: VDU1_CP1
availability_zone: { get_param: AvailabilityZone }
scheduler_hints:
group:
get_param: Server_Group
VDU1_CP0:
type: OS::Neutron::Port
properties:
network:
get_param: IntNetwork
fixed_ips:
- ip_address: { get_param: IntFixedIP }
VDU1_CP1:
type: OS::Neutron::Port
properties:
network:
get_param: ExtNetwork
fixed_ips:
- ip_address: { get_param: ExtFixedIP }
outputs:
mgmt_ip-VDU_1:
value:
get_attr: [ VDU1_CP0, fixed_ips, 0, ip_address ]