On 03/20/2012 07:15 AM, Luiz Capitulino wrote:
So let's work through a few examples.   Today, you have to maintain a list of
commands returned from query-commands and check for set membership:

if 'query-netdev2' in commands:
     qmp.query_netdev2(foo)
else:
     qmp.query_netdev()

Pretty simple.  If we have a schema representation, we'll need to be able to
check for arguments.

Aren't we going to have the schema representation anyway? Or if we go for the
way above we are not going to have it?

We have it, and we should expose it, but we should not IMHO require deep schema introspection in order for a client to make use of new functionality.

Regards,

Anthony Liguori

Reply via email to