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

asked 2016-09-28 20:36:04 -0500

Rizwan gravatar image

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

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-10-03 10:16:48 -0500

zaneb gravatar image

You can pass them in as parameters, but there's no way to fetch them in Heat given just a port UUID.

edit flag offensive delete link more
-1

answered 2020-03-27 13:50:35 -0500

hem gravatar image

try: "openstack stack resource metadata <stack> <resource>"

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-28 20:36:04 -0500

Seen: 317 times

Last updated: Mar 27