From 4862069b743b24bfc6478102a2a3872d9178838d Mon Sep 17 00:00:00 2001 From: helenyao Date: Fri, 24 Mar 2017 11:32:19 +0800 Subject: 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 --- opnfv/deployment/example.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'opnfv/deployment/example.py') 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) -- cgit 1.2.3-korg