diff options
author | helenyao <yaohelan@huawei.com> | 2017-03-24 11:32:19 +0800 |
---|---|---|
committer | helenyao <yaohelan@huawei.com> | 2017-03-31 17:01:36 +0800 |
commit | 3f71d8c07d2f1539a8d56752773c47556d91ef4d (patch) | |
tree | 145949e8bcee5f54bc443d8ffa143f1df1483220 /modules/opnfv/deployment/example.py | |
parent | 6ac992092847f5fa45fa5178bd7e57b5a2b572e8 (diff) |
Compass Adapter to get deployment information
result of example.py for Compass(ODL enabled) can be refered here
https://pastebin.com/k3UW9bUJ
Change-Id: I56352d71152078a44d706d97c67fb8d69b20ad2d
Signed-off-by: helenyao <yaohelan@huawei.com>
Diffstat (limited to 'modules/opnfv/deployment/example.py')
-rw-r--r-- | modules/opnfv/deployment/example.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/opnfv/deployment/example.py b/modules/opnfv/deployment/example.py index 3999a11c6..52d9b5630 100644 --- a/modules/opnfv/deployment/example.py +++ b/modules/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) |