On 1 Feb 2024, at 20:17, lleachii--- via 44net
<44net(a)mailman.ampr.org> wrote:
I believe I previously asked and never received an answer.
If you want a login in the Wiki just drop me an email.
So it is a requirement to join this Groups platform to
continue participation on various items (i.e. the Wiki)?
No, but it’s is strongly advisable.
I've noticed updates on the Wiki - and at times
without a comment explaining change.
Minor edits tend not to get commented, but larger changes should.
73,
Chris - G1FEF
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
_______________________________________________
44net mailing list -- 44net(a)mailman.ampr.org
To unsubscribe send an email to 44net-leave(a)mailman.ampr.org