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]
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 ity_zone: nova 0.3.4-x86_ 64-uec
get_ resource: CP1
get_ resource: FIP1 data_format: SOFTWARE_CONFIG security_ enabled: false :FloatingIP ip_address: 192.168.56.246 network: public
description: 'Demo example'
parameters: {}
resources:
VDU1:
type: OS::Nova::Server
properties:
availabil
config_drive: false
flavor: {get_resource: VDU1_flavor}
image: cirros-
networks:
- port:
- floating_ip: <=========
user_
CP1:
type: OS::Neutron::Port
properties:
network: net1
port_
FIP1:
type: OS::Neutron:
properties:
floating_
floating_
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]