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

asked 2015-07-29 13:27:58 -0500

skp gravatar image

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"
        }
      ]
edit retag flag offensive close merge delete

Comments

why don't you create two port?

Sihan gravatar imageSihan ( 2015-08-01 19:30:59 -0500 )edit

The software relies on two different IPs on the same port because it also runs on physical hardware in our data centers which have limited ports. There are changes being done to the software to move away from this requirement, but until then I am trying out other ways of deploying this software.

skp gravatar imageskp ( 2015-08-03 13:21:39 -0500 )edit