aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator
diff options
context:
space:
mode:
authorRahul Tyagi <rahul.tyagi@ericsson.com>2019-03-12 05:20:15 +0000
committerRahul Tyagi <rahul.tyagi@ericsson.com>2019-03-12 05:20:30 +0000
commitc23d9ad2383839f2781c533342c2458b1aaee68a (patch)
tree0d026d57312ff7052e9c1aee6b999910fb3fa39d /test/mocks/pnfsimulator
parent6e0db7ba355bf89a8bdeb00bd1087b73e16f557c (diff)
INT:885 Fixed a minor issue in pnf-sim
This commit introdues a dely in pnf-sim netopeer instance so that subscribing yang model and data creation can be done successfully. Issue-ID: INT-885 Change-Id: Id26a2b6e4f201a1cbf5346ee323fcb6858c2886b Signed-off-by: Rahul Tyagi <rahul.tyagi@ericsson.com>
Diffstat (limited to 'test/mocks/pnfsimulator')
-rwxr-xr-xtest/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh b/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
index 4091bea7d..e0e1ac625 100755
--- a/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
+++ b/test/mocks/pnfsimulator/netopeer_tls_cfg/update_tls.sh
@@ -9,7 +9,11 @@ SUBSCRIBE_APP_PATH='/opt/dev/sysrepo/build/examples/application_changes_example'
upload_yang_data_model()
{
sysrepoctl -i -g $MOUNT_PATH/mynetconf.yang
+ sleep 5
+ echo ' subscribing to mynetconf model.'
$SUBSCRIBE_APP_PATH mynetconf > /dev/null &
+ sleep 5
+ echo ' creating data for mynetconf model.'
sysrepocfg --datastore=running --format=json mynetconf --import=$MOUNT_PATH/mynetconf.data
}