remote_host.py: re-use ssh session across commands
authorGary Wu <Gary.Wu1@huawei.com>
Wed, 24 Jun 2015 17:19:40 +0000 (10:19 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 24 Jun 2015 20:25:57 +0000 (20:25 +0000)
commitfbe4acb3ba695a5b370c639560c1251e1c1b1cd4
tree7f2e543ff9b0a490f2c63b7f6b692802a2abd43e
parenta6cb3a9780c118d40c4b4988b80ea929dd4e28ba
remote_host.py: re-use ssh session across commands

Refactored remote_host.py to re-use a single ssh
connection to each cluster node for multiple
shell commands, instead of creating a separate
ssh connection for each command to be executed.
This reduces the delays experienced in the ssh
connection startup.

Change-Id: I74395ed3f2a90f6fc3fef1a509f48f9bcba7aff4
Signed-off-by: Gary Wu <Gary.Wu1@huawei.com>
test/tools/clustering/cluster-deployer/remote_host.py