[Openstack] Heat template - get port ID of 'external' instance

Turbo Fredriksson turbo at bayour.com
Mon Aug 1 15:41:58 UTC 2016


On Aug 1, 2016, at 3:53 PM, Zane Bitter wrote:

> BTW I really wouldn't recommend using the OS:: namespace for your own custom types.

Thanx. I'll change that 'eventually' :).

>>      floating_network_id: physical
>> #      port_id: { get_attr: [admin, networks, { get_param: network }, 0, port]}
>> #      port_id: { get_attr: [admin, networks, 0, port]}
> 
> You want the second one.

It didn't work, that's why it's commented out. I got something like
'networks isn't available' or something to that affect.

> You actually need to explicitly export the attributes you want as outputs from the instance.yaml template, just as you defined parameters to accept the property values.

Ok, thanx!

>  heat resource-type-template -t hot -F yaml OS::Nova::Server


Cool! Wish I knew that this weekend :). Thanx, will come in handy
in the future..
--
Geologists recently discovered that "earthquakes" are
nothing more than Bruce Schneier and Chuck Norris
communicating via a roundhouse kick-based cryptosystem.





More information about the Openstack mailing list