rpc: Add support for resolver options callback
authorMichael Hanselmann <hansmi@google.com>
Thu, 5 Jan 2012 14:23:49 +0000 (15:23 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 5 Jan 2012 15:30:34 +0000 (16:30 +0100)
commitdd6d2d090236ed1dcacec9675248c77a420ce735
tree1c14dd5714e15b4cf2cd6d45296d0cf6fb17dbbd
parentf863d7aad52ad89828dadd7e03d4329b62f688c8
rpc: Add support for resolver options callback

This adds support for a callback returning name resolver options. This
is required for powercycling offline nodes. While it would be possible
to implement this using a separate RPC client class, doing so would
require some code duplication with the standard “RpcRunner” class.

The callback can generate the options based on the call arguments.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
autotools/build-rpc
lib/rpc.py
lib/rpc_defs.py