aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/deployment/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv/deployment/example.py')
-rw-r--r--opnfv/deployment/example.py15
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)