aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate-certificates.sh2
-rwxr-xr-xscripts/install-all-module-from-directory.sh2
-rwxr-xr-xscripts/install-tls-with-custom-certificates.sh2
-rwxr-xr-xscripts/run-netconf-server-application.sh29
-rwxr-xr-xscripts/set-up-netopeer.sh6
-rwxr-xr-xscripts/tls/set-up-tls-certificates.py2
6 files changed, 38 insertions, 5 deletions
diff --git a/scripts/generate-certificates.sh b/scripts/generate-certificates.sh
index 01eaa8c..788d9ab 100755
--- a/scripts/generate-certificates.sh
+++ b/scripts/generate-certificates.sh
@@ -1,7 +1,7 @@
#!/bin/sh
###
# ============LICENSE_START=======================================================
-# Netconf-server
+# Netconf Server
# ================================================================================
# Copyright (C) 2021 Nokia. All rights reserved.
# ================================================================================
diff --git a/scripts/install-all-module-from-directory.sh b/scripts/install-all-module-from-directory.sh
index 6644715..efa54db 100755
--- a/scripts/install-all-module-from-directory.sh
+++ b/scripts/install-all-module-from-directory.sh
@@ -1,7 +1,7 @@
#!/bin/bash
###
# ============LICENSE_START=======================================================
-# Netconf-server
+# Netconf Server
# ================================================================================
# Copyright (C) 2021 Nokia. All rights reserved.
# ================================================================================
diff --git a/scripts/install-tls-with-custom-certificates.sh b/scripts/install-tls-with-custom-certificates.sh
index 545d01b..c499e15 100755
--- a/scripts/install-tls-with-custom-certificates.sh
+++ b/scripts/install-tls-with-custom-certificates.sh
@@ -1,7 +1,7 @@
#!/bin/bash
###
# ============LICENSE_START=======================================================
-# Netconf-server
+# Netconf Server
# ================================================================================
# Copyright (C) 2021 Nokia. All rights reserved.
# ================================================================================
diff --git a/scripts/run-netconf-server-application.sh b/scripts/run-netconf-server-application.sh
new file mode 100755
index 0000000..5cc51f4
--- /dev/null
+++ b/scripts/run-netconf-server-application.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+###
+# ============LICENSE_START=======================================================
+# Netconf Server
+# ================================================================================
+# Copyright (C) 2021 Nokia. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ============LICENSE_END=========================================================
+###
+
+if [ "$#" -eq 2 ]; then
+
+ echo "Starting NETCONF server"
+ python3 ./application/netconf_server_application.py $1/$2 &
+
+else
+ echo "Missing argument: path to file with models to subscribe to."
+fi
diff --git a/scripts/set-up-netopeer.sh b/scripts/set-up-netopeer.sh
index f6308d0..e7b4f76 100755
--- a/scripts/set-up-netopeer.sh
+++ b/scripts/set-up-netopeer.sh
@@ -1,7 +1,7 @@
#!/bin/bash
###
# ============LICENSE_START=======================================================
-# Netconf-server
+# Netconf Server
# ================================================================================
# Copyright (C) 2021 Nokia. All rights reserved.
# ================================================================================
@@ -24,6 +24,7 @@ if [ "$#" -ge 1 ]; then
## Set up variable
SCRIPTS_DIR=$PWD/"$(dirname $0)"
enable_tls=${ENABLE_TLS:-false}
+ models_configuration_file_name=${MODELS_CONFIGURATION_FILE_NAME:-models-configuration.ini}
## Install all modules from given directory
$SCRIPTS_DIR/install-all-module-from-directory.sh $1
@@ -38,6 +39,9 @@ if [ "$#" -ge 1 ]; then
fi
fi
+ ## Run netconf server application
+ $SCRIPTS_DIR/run-netconf-server-application.sh $1 $models_configuration_file_name
+
## Run sysrepo supervisor
/usr/bin/supervisord -c /etc/supervisord.conf
diff --git a/scripts/tls/set-up-tls-certificates.py b/scripts/tls/set-up-tls-certificates.py
index 16934b5..8a22ebf 100755
--- a/scripts/tls/set-up-tls-certificates.py
+++ b/scripts/tls/set-up-tls-certificates.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
###
# ============LICENSE_START=======================================================
-# Netconf-server
+# Netconf Server
# ================================================================================
# Copyright (C) 2021 Nokia. All rights reserved.
# ================================================================================