Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat: get_attr - Get All Ports

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?