aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/mocks/netconf-pnp-simulator/engine/entrypoint.sh')
-rwxr-xr-xtest/mocks/netconf-pnp-simulator/engine/entrypoint.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh b/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
index 951ca474b..48a5e5a40 100755
--- a/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
+++ b/test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
@@ -28,6 +28,7 @@ set -o xtrace
export PATH=/opt/bin:/usr/local/bin:/usr/bin:/bin
CONFIG=/config
+SSH_CONFIG=$CONFIG/ssh
TLS_CONFIG=$CONFIG/tls
MODELS_CONFIG=$CONFIG/modules
KEY_PATH=/opt/etc/keystored/keys
@@ -55,6 +56,11 @@ find_executable() {
done
}
+configure_ssh()
+{
+ sysrepocfg --datastore=startup --format=xml ietf-system --import=$SSH_CONFIG/load_auth_pubkey.xml
+}
+
configure_tls()
{
cp $TLS_CONFIG/server_key.pem $KEY_PATH
@@ -126,6 +132,7 @@ create_python_venv()
echo $env_dir
}
+configure_ssh
configure_tls
configure_modules