diff options
author | Zebek Bogumil <bogumil.zebek@nokia.com> | 2021-03-29 07:38:36 +0200 |
---|---|---|
committer | Zebek Bogumil <bogumil.zebek@nokia.com> | 2021-03-29 09:36:27 +0200 |
commit | 18c0838e23209d58881dc59a4ae24a2111883ac2 (patch) | |
tree | 51d7ef3953667f2e00c733d53d91394b7818a1ce /scripts/run-netconf-server-application.sh | |
parent | 0c3c63ccbe28a18f57b8341a73eca08a6ad832fc (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-x | scripts/run-netconf-server-application.sh | 15 |
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." |