rapi: Make use of request_body in Reboot/Remove
authorDimitris Aragiorgis <dimara@grnet.gr>
Fri, 1 Nov 2013 14:55:11 +0000 (16:55 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 12 Nov 2013 23:24:39 +0000 (01:24 +0200)
commit1bf1814ffe4f440ddc6211f96b8e9b38ef57c773
tree257b229874b0d8be8a7691da69093e6798bab298
parent4dc5d1aa07a64fab35c6df97216fee777e2174ee
rapi: Make use of request_body in Reboot/Remove

Until now shutdown_timeout could only be passed in
ShutdownInstance() inside kwargs. It was included in
request's body. Based on that, extend RebootInstance() and
RemoveInstance() so that they can take extra arguments
(e.g. shutdown_timeout) and pass them eventually to the
corresponding opcode.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
lib/rapi/client.py
lib/rapi/rlib2.py