Comment 3 for bug 1663541

Revision history for this message
Uggla (rene-ribaud) wrote :

OK thanks, I better understand your point.
Will it be ok with:

1- A "switch" parameter that will allow you to retrieve only one part of the specified resource e.g: system.
2- A toplevel "switch" parameter, that will just capture the top level of the resource and not going down the tree.

So default call to connect(), behavior will be to capture as much as possible info on the BMC.
But by calling the method with the above parameters e.g :connect(res='system', toplevel), we will be able to drastically limit the number of requests. So we could use that in the Ironic drv.

Will it be a good compromise ?
Note : Of course this is an example, we could discuss naming, behavior etc...