INT-885: fix netopeer and update yang model
[integration.git] / test / mocks / pnfsimulator / netopeer_tls_cfg / update_tls.sh
index 30be458..4091bea 100755 (executable)
@@ -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