File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
sztp /generated-client /
2
2
sztp /generated-server /
3
+ sztp /generated_config.json
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ export SZTPD_NBI_PORT=$(awk '/SZTPD_NBI_PORT:/{print $2}' ../docker-compose.yml)
32
32
export SZTPD_SBI_PORT=$( awk ' /SZTPD_SBI_PORT:/{print $2}' ../docker-compose.yml)
33
33
34
34
# generate template
35
- envsubst " $( printf ' ${%s} ' ${names[@]} ) " < template.json > config .json
35
+ envsubst " $( printf ' ${%s} ' ${names[@]} ) " < template.json > generated_config .json
36
36
37
37
# check what changed
38
- diff template.json config .json || true
38
+ diff template.json generated_config .json || true
39
39
40
40
# client
41
41
echo " Now COPY client files to the remote clients:"
@@ -44,6 +44,6 @@ echo scp ./generated-client/opi*.pem root@172.22.3.2:/mnt/
44
44
# server
45
45
echo " Now CONFIG server:"
46
46
echo curl --fail -i -X GET --user my-admin@example.com:my-secret -H ' Accept:application/yang-data+json' " http://127.0.0.1:${SZTPD_INIT_PORT} /restconf/ds/ietf-datastores:running"
47
- echo curl --fail -i -X PUT --user my-admin@example.com: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"
47
+ echo curl --fail -i -X PUT --user my-admin@example.com: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"
48
48
echo curl --fail -i -X GET --user my-admin@example.com:my-secret -H ' Accept:application/yang-data+json' " http://127.0.0.1:${SZTPD_NBI_PORT} /restconf/ds/ietf-datastores:running"
49
49
echo curl --fail -H Accept:application/yang-data+json " http://127.0.0.1:${SZTPD_NBI_PORT} /.well-known/host-meta"
You can’t perform that action at this time.
0 commit comments