Skip to content

Commit

Permalink
fix(sztp): add print
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Jun 7, 2024
1 parent 2da10b3 commit f49dcf0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sztp/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ envsubst "$(printf '${%s} ' ${names[@]})" < template.json > generated_config.jso
diff template.json generated_config.json || true

# client
echo ==================================
echo "Now COPY client files to the remote clients:"
echo scp ./generated-client/opi*.pem [email protected]:/mnt/
echo ==================================

# server
echo ==================================
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 @./generated_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 -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:operational/wn-sztpd-1:devices/device=my-serial-number/bootstrapping-log"
echo curl --fail -H Accept:application/yang-data+json "http://127.0.0.1:${SZTPD_NBI_PORT}/.well-known/host-meta"
echo ==================================

0 comments on commit f49dcf0

Please sign in to comment.