heat_template_version: 2013-05-23
description: 'Hello World'
parameters: {}
resources:
  VDU1:
    type: OS::Nova::Server
    properties:
      availability_zone: nova
      config_drive: false
      flavor: {get_resource: VDU1_flavor}
      image: cirros-0.3.4-x86_64-uec
      networks:
      - port:
          get_resource: CP1
      - port:
          get_resource: CP2
      - port:
          get_resource: CP3
      user_data_format: SOFTWARE_CONFIG
  CP1:
    type: OS::Neutron::Port
    properties:
      network: vnf_mgmt
  CP2:
    type: OS::Neutron::Port
    properties:
      network: vnf_private
  CP3:
    type: OS::Neutron::Port
    properties:
      network: public
  VDU1_flavor:
    properties: {disk: 1, ram: 512, vcpus: 1}
    type: OS::Nova::Flavor
outputs:
  mgmt_ip-VDU1:
    value:
      get_attr: [CP1, fixed_ips, 0, ip_address]