X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fyang%2Fsysrepo-configuration-load.sh;h=d9d88df2823260d29fa67426e0f9e9adbaa1b26a;hp=bf8f93b6ee9f94e9822b5efeafa75676e2d86880;hb=d7d89e00295a63a887b58a086937b42100971c73;hpb=5819a22f14fc06d8df36ce4ee31390b73161a27a diff --git a/ntsimulator/yang/sysrepo-configuration-load.sh b/ntsimulator/yang/sysrepo-configuration-load.sh index bf8f93b..d9d88df 100755 --- a/ntsimulator/yang/sysrepo-configuration-load.sh +++ b/ntsimulator/yang/sysrepo-configuration-load.sh @@ -1,25 +1,23 @@ #!/bin/bash -sleep 5 +sleep 20 echo "Loading data into sysrepo..." -SSH_PUB_KEY="$(cat /home/netconf/.ssh/id_dsa.pub| awk '{print $2}')" +#SSH_PUB_KEY="$(cat /home/netconf/.ssh/id_dsa.pub| awk '{print $2}')" -echo 'netconfssh_keyssh-dss' >> load_auth_pubkey.xml -echo ''"$SSH_PUB_KEY"'' >> load_auth_pubkey.xml +#echo 'netconfssh_keyssh-dss' >> load_auth_pubkey.xml +#echo ''"$SSH_PUB_KEY"'' >> load_auth_pubkey.xml -sysrepocfg --merge=load_auth_pubkey.xml --format=xml ietf-system -rm load_auth_pubkey.xml - -ssh-keyscan -p 830 localhost >> ~/.ssh/known_hosts +#sysrepocfg --merge=load_auth_pubkey.xml --format=xml ietf-system +#rm load_auth_pubkey.xml +# +#ssh-keyscan -p 830 localhost >> ~/.ssh/known_hosts pyang -f sample-xml-skeleton --sample-xml-list-entries 3 *.yang result=$(netopeer2-cli <<-END - auth pref publickey 1000 - auth keys add /home/netconf/.ssh/id_dsa.pub /home/netconf/.ssh/id_dsa - connect --login netconf + connect --host 127.0.0.1 --login netconf user-rpc --content=/opt/dev/yang/edit_config_operation.xml disconnect END @@ -30,7 +28,7 @@ do pyang -f sample-xml-skeleton --sample-xml-list-entries 2 *.yang result=$(netopeer2-cli <<-END - connect --login netconf + connect --host 127.0.0.1 --login netconf user-rpc --content=edit_config_operation.xml disconnect END