Revision history [back]

click to hide/show revision 1
initial version

Is it possible to read attributes of existing neutron port in Heat template

I am trying to put MAC address and IP address of an existing neutron port in heat server metadata

 resources:
   my_vm:
      type: OS::Nova::Server
      properties:
          name: "testvm"
          image: { get_param: var_Image }
          flavor: "m1.tiny"
          networks:
          - port: c58216cd-1ee1-4463-8339-3f0054fe0a3f
          metadata: { "PORT_IP_ADDRESS": "PORT_IP_ADDRESS_HERE",
           "POR_MAC_ADDRESS": "MAC_ADDRESS_HERE" }