X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fdeploy%2Fo-ran-sc%2Fo-ran-ru%2Fsysrepo-configuration-load.sh;fp=ntsimulator%2Fdeploy%2Fo-ran-sc%2Fo-ran-ru%2Fsysrepo-configuration-load.sh;h=0000000000000000000000000000000000000000;hb=f1d5c9198acde7a7ce296490087cad37e008f688;hp=34a1e7990e37e1d93a3ca4007d48e9c499897f69;hpb=f2d8f1002fa93848c80a88e5658db4816cba3020;p=sim%2Fo1-interface.git diff --git a/ntsimulator/deploy/o-ran-sc/o-ran-ru/sysrepo-configuration-load.sh b/ntsimulator/deploy/o-ran-sc/o-ran-ru/sysrepo-configuration-load.sh deleted file mode 100755 index 34a1e79..0000000 --- a/ntsimulator/deploy/o-ran-sc/o-ran-ru/sysrepo-configuration-load.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -sleep 20 - -echo "Loading data into sysrepo..." - -: ${SYSREPOCFG:=sysrepocfg} - -pyang -f sample-xml-skeleton --sample-xml-list-entries 1 *.yang - -mapfile -t modelList < <(ls -S -lr *.xml | awk {'print $9'}) - -if [ ${#modelList[@]} -eq 0 ]; then - echo "No modules present, nothing to do..." - exit 0 -else - for model in ${modelList[@]} - do - modelName=${model%".xml"} - - echo "Importing data for module: $model" - $SYSREPOCFG --import=$model --format=xml $modelName - - done -fi - -echo "Finished loading data into sysrepo..." - -exit 0 \ No newline at end of file