rpc: Overhaul client structure
authorMichael Hanselmann <hansmi@google.com>
Mon, 26 Sep 2011 14:07:12 +0000 (16:07 +0200)
committerMichael Hanselmann <hansmi@google.com>
Tue, 27 Sep 2011 11:47:27 +0000 (13:47 +0200)
commit00267bfe4642441afcfb292f9350d97e4ec205a5
tree9f9b2e7a2a9153ddc7c8b20404d23ea57174868f
parent30474135a687a44082b758b2b1f4c56b70951760
rpc: Overhaul client structure

- Clearly separate node name to IP address resolution into separate
  functions
- Simplified code structure (one code path instead of several)
- Fully unittested
- Preparation for more RPC improvements

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/rpc.py
test/ganeti.rpc_unittest.py