Skip to content

Commit

Permalink
fix(sztp): help config the server
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Jun 6, 2024
1 parent 38498ea commit 2028667
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sztp/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ diff template.json config.json || true
echo "Now COPY client files to the remote clients:"
echo scp ./generated-client/opi*.pem [email protected]:/mnt/

# curl --fail -H Accept:application/yang-data+json http://127.0.0.1:$SZTPD_NBI_PORT/.well-known/host-meta || exit 1
# curl --fail -i -X GET --user [email protected]:my-secret -H 'Accept:application/yang-data+json' http://bootstrap:"${SZTPD_INIT_PORT}"/restconf/ds/ietf-datastores:running
# curl --fail -i -X PUT --user [email protected]:my-secret --data @./config.json -H 'Content-Type:application/yang-data+json' http://127.0.0.1:"${SZTPD_INIT_PORT}"/restconf/ds/ietf-datastores:running
# curl --fail -i -X GET --user [email protected]:my-secret -H 'Accept:application/yang-data+json' http://bootstrap:"${SZTPD_INIT_PORT}"/restconf/ds/ietf-datastores:running
echo "Now CONFIG server:"
echo curl --fail -i -X GET --user [email protected]:my-secret -H 'Accept:application/yang-data+json' "http://127.0.0.1:${SZTPD_INIT_PORT}/restconf/ds/ietf-datastores:running"
echo curl --fail -i -X PUT --user [email protected]:my-secret --data @./config.json -H 'Content-Type:application/yang-data+json' "http://127.0.0.1:${SZTPD_INIT_PORT}/restconf/ds/ietf-datastores:running"
echo curl --fail -i -X GET --user [email protected]:my-secret -H 'Accept:application/yang-data+json' "http://127.0.0.1:${SZTPD_NBI_PORT}/restconf/ds/ietf-datastores:running"
echo curl --fail -H Accept:application/yang-data+json "http://127.0.0.1:${SZTPD_NBI_PORT}/.well-known/host-meta"

0 comments on commit 2028667

Please sign in to comment.