Heat: get_attr - Get All Ports

asked 2017-02-07 02:51:03 -0500

mathias gravatar image

Hi folks, I've got an OS::Nova::Server and need to get a list of all ports it has. I found that I can get to that info via the "addresses" attribute. This attribute is map with network names and IDs als keys. "Port" is field in each map. The challenge is to retrieve all ports of that instance irrespectively and unknowingly of the network name or ID. So I am looking for something like a wildcard get_attr like

get_attr: [ myserver, addresses, *, port ]

Does something similar exist?

edit retag flag offensive close merge delete


Not sure it's an answer, but check whether 'repeat' function can be applicable in your case - https://specs.openstack.org/openstack...

doka.ua gravatar imagedoka.ua ( 2017-02-07 05:55:57 -0500 )edit