summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/deployment/example.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-02-08 14:25:34 +0100
committerJose Lausuch <jose.lausuch@ericsson.com>2017-02-14 17:48:07 +0000
commit9f93b28a66f8782b74252c242481248bd46f816e (patch)
tree57202683b652cbb64e58179f5fb8ea468c45ef65 /modules/opnfv/deployment/example.py
parent404ba6bd9aba7010566919292e3b2cb9432acb35 (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 'modules/opnfv/deployment/example.py')
-rw-r--r--modules/opnfv/deployment/example.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/opnfv/deployment/example.py b/modules/opnfv/deployment/example.py
index f45683260..3999a11c6 100644
--- a/modules/opnfv/deployment/example.py
+++ b/modules/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)