I believe I previously asked and never received an answer.
So it is a requirement to join this Groups platform to continue participation on various
items (i.e. the Wiki)?
I've noticed updates on the Wiki - and at times without a comment explaining change.
73,
Lynwood
KB3VWG
On Thursday, February 1, 2024 at 03:03:12 PM EST, John D. Hays via 44net
<44net(a)mailman.ampr.org> wrote:
Please join
https://ardc.groups.io/g/wiki and share thoughts there.
On Thu, Feb 1, 2024 at 11:53 AM Andreas Ott via 44net <44net(a)mailman.ampr.org>
wrote:
Somehow the output of the API call must have changed
over time. It now includes a count value before the encap array data, which will lead to
an error when processing it with jq.
Please update wiki the page with a different jq filter, c.f. how I fixed the script on
our system. I am ignoring the count value.
root@host:~# diff -U1 get-encap.sh-orig get-encap.sh
--- get-encap.sh-orig 2024-02-01 11:24:31.725642496 -0800
+++ get-encap.sh 2024-02-01 11:24:53.421227002 -0800
@@ -24,3 +24,3 @@
curl -s
https://user:key@portal.ampr.org/api/v1/encap > json-data.out
-cat json-data.out | jq -r '.[] | "route addprivate \(.network)/\(.maskLength)
encap \(.gatewayIP)"' >> encap.txt
+cat json-data.out | jq -r '.encap[] | "route addprivate
\(.network)/\(.maskLength) encap \(.gatewayIP)"' >> encap.txt
root@host:~#
Thanks, andreas K6OTT
_______________________________________________
44net mailing list -- 44net(a)mailman.ampr.org
To unsubscribe send an email to 44net-leave(a)mailman.ampr.org
--
John D. HaysKingston, WA
K7VE / WRJT-215
_______________________________________________
44net mailing list -- 44net(a)mailman.ampr.org
To unsubscribe send an email to 44net-leave(a)mailman.ampr.org