summaryrefslogtreecommitdiffstats
path: root/scripts/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib.sh')
-rw-r--r--scripts/lib.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/lib.sh b/scripts/lib.sh
new file mode 100644
index 0000000..b825b9c
--- /dev/null
+++ b/scripts/lib.sh
@@ -0,0 +1,27 @@
+overcloud_file_name=overcloudrc # change this if needed
+odl_username=admin
+odl_password=admin
+odl_port=8081
+odl_dir=/opt/opendaylight
+hc_username=admin
+hc_password=admin
+hc_netconf_port=2831
+NODE_PATTERN=overcloud
+overcloudrc_path=/root/$overcloud_file_name
+overcloud_fds_repo_loc=/root
+overcloud_script_loc=$overcloud_fds_repo_loc/fds/scripts
+
+in_array() {
+ key=$1
+ shift
+ items=$@
+ for item in $items
+ do
+ if [ $item == $key ]
+ then
+ return 0
+ break
+ fi
+ done
+ return 1
+}