Ask Your Question

Revision history [back]

I have created on template for my own question and its working fine now.

resources:
   my_port:
      type: OS::Neutron::Port
      properties:
          name: "port1"
          network_id: "<net_id>"
          fixed_ips: [{"subnet": "<subnet_name>", "ip_address": 10.10.10.15}]

   my_vm:
      type: OS::Nova::Server
      properties:
          name: "testvm"
          image: { get_param: var_Image }
          flavor: "m1.tiny"
          networks:
          - port: { get_resource: my_port }

Now heat will create a new vm with defined ip i.e. 10.10.10.15