aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-netconf-server-application.sh
diff options
context:
space:
mode:
authorZebek Bogumil <bogumil.zebek@nokia.com>2021-03-29 07:38:36 +0200
committerZebek Bogumil <bogumil.zebek@nokia.com>2021-03-29 09:36:27 +0200
commit18c0838e23209d58881dc59a4ae24a2111883ac2 (patch)
tree51d7ef3953667f2e00c733d53d91394b7818a1ce /scripts/run-netconf-server-application.sh
parent0c3c63ccbe28a18f57b8341a73eca08a6ad832fc (diff)
Add Kafka envs
Signed-off-by: Bogumil Zebek <bogumil.zebek@nokia.com> Issue-ID: INT-1869 Change-Id: Id8f4d3061fc16e8cb2c16bf32058ec8527e4c6c3
Diffstat (limited to 'scripts/run-netconf-server-application.sh')
-rwxr-xr-xscripts/run-netconf-server-application.sh15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/run-netconf-server-application.sh b/scripts/run-netconf-server-application.sh
index b07da8a..81ce10f 100755
--- a/scripts/run-netconf-server-application.sh
+++ b/scripts/run-netconf-server-application.sh
@@ -19,19 +19,20 @@
# ============LICENSE_END=========================================================
###
-if [ "$#" -eq 2 ]; then
+if [ "$#" -eq 5 ]; then
## Set up variable
MODELS_CONFIG_PATH=$1
MODELS_CONFIG_NAME=$2
+ KAFKA_HOST_NAME=$3
+ KAFKA_HOST_PORT=$4
+ KAFKA_TOPIC=$5
- echo "Starting NETCONF Change listener"
- python3 ./application/netconf_change_listener_application.py $MODELS_CONFIG_PATH/$MODELS_CONFIG_NAME &
-
-
- echo "Starting NETCONF Rest server"
- python3 ./application/netconf_rest_application.py $MODELS_CONFIG_PATH/$MODELS_CONFIG_NAME &
+ echo "[INFO] Starting NETCONF Change listener"
+ python3 ./application/netconf_change_listener_application.py $MODELS_CONFIG_PATH/$MODELS_CONFIG_NAME $KAFKA_HOST_NAME $KAFKA_HOST_PORT $KAFKA_TOPIC &
+ echo "[INFO] Starting NETCONF Rest server"
+ python3 ./application/netconf_rest_application.py $MODELS_CONFIG_PATH/$MODELS_CONFIG_NAME $KAFKA_HOST_NAME $KAFKA_HOST_PORT $KAFKA_TOPIC &
else
echo "[ERROR] Invalid number of arguments. Please provide all required arguments."