Comment 3 for bug 1537636

Revision history for this message
sajuptpm (sajuptpm) wrote :

http://docs.openstack.org/developer/heat/template_guide/openstack.html#OS::Nova::Server
Heat doc says that, property 'network' of OS::Nova::Server has option 'floating_ip'.
I have tried that, but getting following error

Error: ERROR: One of the properties "network", "port" or "subnet" should be set for the specified network of server "VDU1".

heat_template_version: 2016-10-14
description: 'Demo example'
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
      - floating_ip: <=========
          get_resource: FIP1
      user_data_format: SOFTWARE_CONFIG
  CP1:
    type: OS::Neutron::Port
    properties:
      network: net1
      port_security_enabled: false
  FIP1:
    type: OS::Neutron::FloatingIP
    properties:
      floating_ip_address: 192.168.56.246
      floating_network: public
  VDU1_flavor:
    properties: {disk: 1, ram: 512, vcpus: 2}
    type: OS::Nova::Flavor
outputs:
  mgmt_ip-VDU1:
    value:
      get_attr: [CP1, fixed_ips, 0, ip_address]