netconf-pnp-simulator: convenient TLS and SSH configuration 84/105184/3
authorebo <eliezio.oliveira@est.tech>
Fri, 3 Apr 2020 14:24:15 +0000 (15:24 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 8 Apr 2020 08:52:09 +0000 (08:52 +0000)
commitf986059d04af9eafe85aafe467e3196e8400098c
treee42f20f8117d752498ba9d302878172280c98a1c
parent7a3199bf4a05ffe7148ab7139a73df863a659353
netconf-pnp-simulator: convenient TLS and SSH configuration

- Simple SSH and TLS configuration. Instead of specific Netopeer2
  XML configuration files, the user only needs to provide:
  For SSH: id_XXX.pub
  For TLS: server_key.pem, server_cert.pem, and ca.pem

- SSH and TLS can be reconfigured at runtime by running
  /opt/bin/reconfigure-ssh.sh and /opt/bin/reconfigure-tls.sh respectively

- Improved log readability by using zlog (on C applications) and loguru
  for Python

See the updated documentation under ../docs for more information.

Issue-ID: INT-1516
Change-Id: I21052d2524f0610c6197875a544113cce1a02787
Signed-off-by: ebo <eliezio.oliveira@est.tech>
25 files changed:
test/mocks/netconf-pnp-simulator/docs/README.md [deleted file]
test/mocks/netconf-pnp-simulator/docs/README.rst [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/Dockerfile
test/mocks/netconf-pnp-simulator/engine/common.sh [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/config/ssh/load_auth_pubkey.xml [deleted file]
test/mocks/netconf-pnp-simulator/engine/config/tls/ca.pem [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/config/tls/load_server_certs.xml [deleted file]
test/mocks/netconf-pnp-simulator/engine/config/tls/netopeer2-client.sh [new file with mode: 0755]
test/mocks/netconf-pnp-simulator/engine/config/tls/server_cert.pem [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/config/tls/server_key.pem.pub [deleted file]
test/mocks/netconf-pnp-simulator/engine/configure-modules.sh [new file with mode: 0755]
test/mocks/netconf-pnp-simulator/engine/container-tag.yaml
test/mocks/netconf-pnp-simulator/engine/entrypoint.sh
test/mocks/netconf-pnp-simulator/engine/patches/Netopeer2/02-zlog.patch [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/patches/supervisor/01-std-log-format.patch [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/patches/sysrepo/02-zlog.patch [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/reconfigure-ssh.sh [new file with mode: 0755]
test/mocks/netconf-pnp-simulator/engine/reconfigure-tls.sh [new file with mode: 0755]
test/mocks/netconf-pnp-simulator/engine/supervisord.conf
test/mocks/netconf-pnp-simulator/engine/templates/load_auth_pubkey.xml [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/templates/load_server_certs.xml [new file with mode: 0644]
test/mocks/netconf-pnp-simulator/engine/templates/tls_listen.xml [moved from test/mocks/netconf-pnp-simulator/engine/config/tls/tls_listen.xml with 88% similarity]
test/mocks/netconf-pnp-simulator/engine/tests/test_ietf_interfaces.py [deleted file]
test/mocks/netconf-pnp-simulator/engine/tests/test_turing_machine.py [deleted file]
test/mocks/netconf-pnp-simulator/engine/zlog.conf [new file with mode: 0644]