You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
< req.json curl -H "Authorization: Bearer $ZEROTIER_API_KEY" -d @- https://my.zerotier.com/api/network/ -o net.json
# get the id from the output using https://stedolan.github.io/jq/
ID=$(jq -r .id < net.json)# verify there's exactly one rule compiled
jq .config.rules < net.json
# update the network< req.json curl -H "Authorization: Bearer $ZEROTIER_API_KEY" https://my.zerotier.com/api/network/$ID# fails# {"type":"internal","message":"Internal error loading network."}
The smallest repro doesn't require changing the "rulesSource" key between create and update, but doing so is no different.
Edit: added -r for raw jq output on id
Edit 2: I made a gist for a test case that changes the rulesSource and checks if the rules have changed. It also cleans up after itself so you can run it 1000x.
Expected behaviour:
The network should compile the new ruleset and respond without error including the new rules and metadata.
The text was updated successfully, but these errors were encountered:
Smallest repro:
req.json
The smallest repro doesn't require changing the "rulesSource" key between create and update, but doing so is no different.
Edit: added
-r
for raw jq output on idEdit 2: I made a gist for a test case that changes the rulesSource and checks if the rules have changed. It also cleans up after itself so you can run it 1000x.
Expected behaviour:
The network should compile the new ruleset and respond without error including the new rules and metadata.
The text was updated successfully, but these errors were encountered: