diff options
author | Jose Lausuch <jose.lausuch@ericsson.com> | 2017-04-05 05:55:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-04-05 05:55:25 +0000 |
commit | 5731d9dc5838c6b7f499d4469a0034db5942d13b (patch) | |
tree | 65842a9dce0eca76a703c11c85ed3a8397bd6430 /opnfv/deployment/example.py | |
parent | 7c2bfe5f9f0e4a9ddde36eac766b1846fa233cd6 (diff) | |
parent | 4862069b743b24bfc6478102a2a3872d9178838d (diff) |
Merge "Compass Adapter to get deployment information"
Diffstat (limited to 'opnfv/deployment/example.py')
-rw-r--r-- | opnfv/deployment/example.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/opnfv/deployment/example.py b/opnfv/deployment/example.py index 3999a11..52d9b56 100644 --- a/opnfv/deployment/example.py +++ b/opnfv/deployment/example.py @@ -34,3 +34,17 @@ print("List of nodes in cluster 4:") nodes = handler.get_nodes({'cluster': '4'}) for node in nodes: print(node) + + +print("########## COMPASS ##########") +handler = factory.Factory.get_handler('compass', + '192.168.200.2', + 'root', + installer_pwd='root') + +print(handler.get_deployment_status()) +print(handler.get_deployment_info()) +print('Details of each node:') +nodes = handler.nodes +for node in nodes: + print(node) |