diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2017-02-08 14:25:34 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2017-02-14 17:48:07 +0000 |
commit | 2f0c4e1baa6a45dc451142f1372c48e69a5d1565 (patch) | |
tree | 4ec67d57795ff32bd04bef03d5440cabf9baeeef /opnfv/deployment/example.py | |
parent | f169fa760059f91ba68960a7f87ca915e7d0ddaf (diff) |
[deployment handler] Add support for Clusters in Fuel
Fix minor apex issues.
Output of example.py
http://pastebin.com/raw/x70Uj85V
Change-Id: I6013f5c4d916126f79afd40a6d6a35278c8ed26f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'opnfv/deployment/example.py')
-rw-r--r-- | opnfv/deployment/example.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/opnfv/deployment/example.py b/opnfv/deployment/example.py index f456832..3999a11 100644 --- a/opnfv/deployment/example.py +++ b/opnfv/deployment/example.py @@ -3,6 +3,7 @@ from opnfv.deployment import factory +print("########## APEX ##########") handler = factory.Factory.get_handler('apex', '192.168.122.135', 'stack', @@ -19,3 +20,17 @@ for node in nodes: (node.run_cmd('hostname'), node.ip)) print(handler.get_deployment_info()) + + +print("########## FUEL ##########") +handler = factory.Factory.get_handler('fuel', + '10.20.0.2', + 'root', + installer_pwd='r00tme') + +print(handler.get_deployment_info()) + +print("List of nodes in cluster 4:") +nodes = handler.get_nodes({'cluster': '4'}) +for node in nodes: + print(node) |