Revision history [back]

click to hide/show revision 1
initial version

How do I assign 2 fixed IPs from a subnet to a server via Heat

Is there a way to assign multiple IPs from a subnet to a server using heat templates? I defined a resource for a port using fixed IPs, like below. I then used this resource to create a port on a OS::Nova::Server. But I see only one IP from the subnet assigned. Is there a way to assign to IPs from the subnet?

resources:
  a_port:
    type: OS::Neutron::Port
    properties:
      network: "a_network"
      fixed_ips: [
       {
           "subnet_id" : "a_subnet_id",
           "subnet_id" : "a_subnet_id"
        }
      ]