aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
diff options
context:
space:
mode:
authorRahul Tyagi <rahul.tyagi@ericsson.com>2019-03-01 03:14:46 +0000
committerRahul Tyagi <rahul.tyagi@ericsson.com>2019-03-01 03:14:56 +0000
commitb4db7778d204a434604330e6a63a6f2fc8d8f84b (patch)
tree6787292fcbd742ddab5a5b2533527ac8b0f171be /test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
parent8028905644ea2dcf71ab2703c571398a19503c67 (diff)
INT-885: fix netopeer and update yang model
This commit introdues a better yang model for testing i.e. mynetconf.yang and data against it. It also fix a problem for netopeer at startup. Issue-ID: INT-885 Change-Id: I1d300221399237e57e1ffd4e3a1d9cb8e1674b44 Signed-off-by: Rahul Tyagi <rahul.tyagi@ericsson.com>
Diffstat (limited to 'test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh')
-rwxr-xr-xtest/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh b/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
index 30be458c6..4091bea7d 100755
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
+++ b/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-
+sleep 20
NETOPEER_CONFIG_PATH='/opt/dev/Netopeer2/server/configuration'
MOUNT_PATH='/netopeer_tls_cfg'
KEY_PATH='/usr/local/etc/keystored/keys'
@@ -8,9 +8,9 @@ SUBSCRIBE_APP_PATH='/opt/dev/sysrepo/build/examples/application_changes_example'
# This function uploads test_data and model into netopeer2 server
upload_yang_data_model()
{
- sysrepoctl -i -g $MOUNT_PATH/building.yang
- $SUBSCRIBE_APP_PATH building > /dev/null &
- sysrepocfg --datastore=running --format=json building --import=$MOUNT_PATH/building.data
+ sysrepoctl -i -g $MOUNT_PATH/mynetconf.yang
+ $SUBSCRIBE_APP_PATH mynetconf > /dev/null &
+ sysrepocfg --datastore=running --format=json mynetconf --import=$MOUNT_PATH/mynetconf.data
}
# This function configures server/trusted certificates into Netopeer