diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-13 22:45:19 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-14 21:09:53 +0100 |
commit | 5d3a56199bd878a4eaad8019109d038d626346bf (patch) | |
tree | 27e9fc050082dd470e7ab75327d9cd6257ba93f5 /opnfv/deployment | |
parent | f76ce64057a07130c6c07e924e2151ca56800df9 (diff) |
[deployment_handler] Add OVS version info
Change-Id: I485f969dff29a2d1757ce56c62dda294f44341e2
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'opnfv/deployment')
-rw-r--r-- | opnfv/deployment/manager.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/opnfv/deployment/manager.py b/opnfv/deployment/manager.py index 9be5166..8597a3f 100644 --- a/opnfv/deployment/manager.py +++ b/opnfv/deployment/manager.py @@ -164,8 +164,8 @@ class Node(object): Run command remotely on a node ''' if self.status is not NodeStatus.STATUS_OK: - logger.info("The node %s is not active" % self.ip) - return 1 + logger.error("The node %s is not active" % self.ip) + return None _, stdout, stderr = (self.ssh_client.exec_command(cmd)) error = stderr.readlines() if len(error) > 0: @@ -209,6 +209,13 @@ class Node(object): return True return False + def get_ovs_info(self): + ''' + Returns the ovs version installed + ''' + cmd = "ovs-vsctl --version|head -1| sed 's/^.*) //'" + return self.run_cmd(cmd) + def __str__(self): return str(self.get_dict()) |