aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/installer_adapters/apex/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'opnfv/installer_adapters/apex/example.py')
-rw-r--r--opnfv/installer_adapters/apex/example.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/opnfv/installer_adapters/apex/example.py b/opnfv/installer_adapters/apex/example.py
new file mode 100644
index 0000000..c8c4737
--- /dev/null
+++ b/opnfv/installer_adapters/apex/example.py
@@ -0,0 +1,16 @@
+# This is an example of usage of this Tool
+# Author: Jose Lausuch (jose.lausuch@ericsson.com)
+
+import opnfv.installer_adapters.InstallerHandler as ins_handler
+
+apex_handler = ins_handler.InstallerHandler(installer='apex',
+ installer_ip='192.168.122.135',
+ installer_user='stack',
+ private_key_file='/root/.ssh/id_rsa')
+apex_handler.get_file_from_installer(
+ '/home/stack/overcloudrc', './overcloudrc')
+
+print("\n%s\n" % apex_handler.get_deployment_info())
+
+apex_handler.get_file_from_controller(
+ '/etc/resolv.conf', './resolv.conf')