INT-885:Enhancing the PNF-sim for netconf over TLS
This commit add a script and a known_hosts file so that
while starting the netopeer2 it readily start listening at
6513 port for tls.
This commit also adds a yang data model for testing of
usecases developed under Netconf over tls usecase.
Signed-off-by: Rahul Tyagi <rahul.tyagi@ericsson.com>
Issue-ID: INT-885
Change-Id: I26b059c293f0684f475f51618d905e10a9efe391
Signed-off-by: Rahul Tyagi <rahul.tyagi@ericsson.com>
diff --git a/test/mocks/pnfsimulator/docker-compose.yml b/test/mocks/pnfsimulator/docker-compose.yml
index 52ded35..0a0860d 100644
--- a/test/mocks/pnfsimulator/docker-compose.yml
+++ b/test/mocks/pnfsimulator/docker-compose.yml
@@ -20,8 +20,10 @@
image: sysrepo/sysrepo-netopeer2:latest
ports:
- "830:830"
+ - "6513:6513"
volumes:
- ./netconf:/netconf
+ - ./netopeer_tls_cfg:/netopeer_tls_cfg
env_file:
- ./config/netconf.env
restart: on-failure
@@ -29,6 +31,7 @@
- sftp-server
- ftpes-server-pure-ftpd
- ftpes-server-vsftpd
+ command: bash -c "/netopeer_tls_cfg/update_tls.sh"
sftp-server:
container_name: sftp-server