remote_host.py: re-use ssh session across commands 46/23246/3
authorGary Wu <Gary.Wu1@huawei.com>
Wed, 24 Jun 2015 17:19:40 +0000 (10:19 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 29 Jun 2015 21:58:15 +0000 (21:58 +0000)
commitc5d4b66396c26540dd3c43bd5f8dfeecdb623044
treede91339568ba9a8220ee2df3ced2b0ca412ce3d6
parentf444b1e78418e1185bf55f8b94a8eb7ea8fa3958
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>
(cherry picked from commit 14c6191d72fb8e11259baf6f009833b8d2155f25)
test/tools/clustering/cluster-deployer/remote_host.py