Hello,
If I use the line from the Wiki below in order to retrieve the file via API
(and convert it back to the text forma), I get a parsing error - presumably
from jq. If I download only the file taking jq out of the equation, it's
not a json file, but rather, a HTML file. I assume that's why there's a
parsing error when jq reads it. Is the info from the Wiki out of date?
Thanks,
Lee K5DAT
curl -s
https://user:key@portal.ampr.org/api/v1/encap | jq -r '.[] |
"route addprivate \(.network)/\(.maskLength) encap \(.gatewayIP)"'