aboutsummaryrefslogtreecommitdiffstats
path: root/operations/scripts/onboard-cba.sh
diff options
context:
space:
mode:
authork.kedron <k.kedron@partner.samsung.com>2021-04-26 12:22:08 +0200
committerk.kedron <k.kedron@partner.samsung.com>2021-06-28 13:46:10 +0200
commit14edec94f9110bd9a73823bd042e4e714018ebb2 (patch)
tree401cd22130ac6955edc1f1a41218249e3f5a9336 /operations/scripts/onboard-cba.sh
parent5ec59f8ea2751b78797424e0a224b9cd6f1cf1b7 (diff)
Add a1-pe-sim packages
Add a1-pe-sim cba Add data-types for cba Add a1-pe-sim cnf csar Add helm chart for cnf mvn pom.xml to build artifacts Issue-ID: INT-1887 Signed-off-by: Krystian Kedron <k.kedron@partner.samsung.com> Change-Id: Ia72fd7cb240092b7be759456ce4d49136864e85d
Diffstat (limited to 'operations/scripts/onboard-cba.sh')
-rwxr-xr-xoperations/scripts/onboard-cba.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/operations/scripts/onboard-cba.sh b/operations/scripts/onboard-cba.sh
new file mode 100755
index 0000000..9c80d58
--- /dev/null
+++ b/operations/scripts/onboard-cba.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Copyright (C) 2019 by Samsung Electronics Co., Ltd.
+#
+# This software is the confidential and proprietary information of Samsung Electronics co., Ltd.
+# ("Confidential Information"). You shall not disclose such Confidential Information and shall use
+# it only in accordance with the terms of the license agreement you entered into with Samsung.
+
+#
+# Onboards CDS model into CDS runtime. CDS model package file is called CBA (CDS Model Package).
+#
+set -e
+
+# Parameters
+# $1 Path to cba zip file (Optional)
+# $2 Kubernetes node ip (Optional)
+
+
+CBA_ZIP=${1:-../examples/vnf/vnf-simulator-for-onap-me/cds/cba/onap-me-cba.zip}
+if [[ "$1" == "" ]]; then
+ echo "CBA zip not provided. Using default: ${CBA_ZIP}"
+fi
+NODE_IP=${2:-$(../common/k8s_get_node_ip.sh)}
+curl -X POST http://${NODE_IP}:30499/api/v1/blueprint-model/publish -H 'content-type: multipart/form-data' -H 'Authorization: Basic Y2NzZGthcHBzOmNjc2RrYXBwcw==' -F file=@${CBA_ZIP}