+check_status executing 180
+
+echo_info "Deployment finished"
+juju status --format=tabular
+
+# translate bundle.yaml to json
+python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < bundles.yaml > bundles.json
+
+# Configuring deployment
+if ([ $opnfvmodel == "openstack" ]); then
+
+ echo_info "Configuring OpenStack deployment"
+
+ ./openstack.sh "$opnfvsdn" "$opnfvlab" "$opnfvdistro" "$openstack" || true
+
+ # creating heat domain after pushing the public API into /etc/hosts
+ status=`juju run-action heat/0 domain-setup`
+ echo $status
+ if ([ $opnfvsdn != "ocl" ]) then
+ status=`juju run-action ceilometer/0 ceilometer-upgrade`
+ fi
+ echo $status
+ if ([ $opnftype == "ha" ]); then
+ status=`juju run-action heat/1 domain-setup`
+ echo $status
+ if ([ $opnfvsdn != "ocl" ]) then
+ status=`juju run-action ceilometer/1 ceilometer-upgrade`
+ fi
+ echo $status
+ status=`juju run-action heat/2 domain-setup`
+ echo $status
+ if ([ $opnfvsdn != "ocl" ]) then
+ status=`juju run-action ceilometer/2 ceilometer-upgrade`
+ fi
+ echo $status
+ fi
+
+ sudo ../juju/get-cloud-images || true
+ ../juju/joid-configure-openstack || true
+
+ if grep -q 'openbaton' bundles.yaml; then
+ juju add-relation openbaton keystone
+ fi
+
+elif ([ $opnfvmodel == "kubernetes" ]); then
+ #Workarounf for master chanrm as it takes 5 minutes to run properly
+ check_status waiting 50
+ check_status executing 50
+ echo_info "Configuring Kubernetes deployment"
+
+ ./k8.sh $opnfvfeature
+fi
+
+# expose the juju gui-url to login into juju gui