* [wireguard-devel] : wg output format
@ 2017-02-17 10:25 nicolas prochazka
2017-02-17 13:24 ` Dan Lüdtke
0 siblings, 1 reply; 3+ messages in thread
From: nicolas prochazka @ 2017-02-17 10:25 UTC (permalink / raw)
To: wireguard
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
hello,
wg show, showconf .... output format is not easy to parse.
Can you add a json output , with all information about peers , conf (
endpoint, pubkey,handshake ... ) in a single line
Regards,
Nicolas Prochazka
[-- Attachment #2: Type: text/html, Size: 301 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [wireguard-devel] : wg output format
2017-02-17 10:25 [wireguard-devel] : wg output format nicolas prochazka
@ 2017-02-17 13:24 ` Dan Lüdtke
2017-02-17 13:29 ` Jason A. Donenfeld
0 siblings, 1 reply; 3+ messages in thread
From: Dan Lüdtke @ 2017-02-17 13:24 UTC (permalink / raw)
To: nicolas prochazka; +Cc: wireguard
Hello Nicolas,
been there, asked that. The answer was negative.
I know, it is no fun to parse.
See here how I worked around it:
-> =
https://github.com/danrl/lede-luci/blob/58833aa2df97ba93a9512f3b0c428cf558=
fa2235/applications/luci-app-wireguard/luasrc/view/wireguard.htm
JSON output would have saved me about 100+ lines of LUA code.
Still considering patching the wg util.
Hopefully, this LUA code helps you to get started. Feel free to share =
your solution, I am still interested in getting JSON out of wg for some =
other project.
Cheers,
Dan
> On 17 Feb 2017, at 11:25, nicolas prochazka =
<prochazka.nicolas@gmail.com> wrote:
>=20
> hello,=20
> wg show, showconf .... output format is not easy to parse.
> Can you add a json output , with all information about peers , conf ( =
endpoint, pubkey,handshake ... ) in a single line
>=20
> Regards,=20
> Nicolas Prochazka
> _______________________________________________
> WireGuard mailing list
> WireGuard@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/wireguard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-17 13:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-17 10:25 [wireguard-devel] : wg output format nicolas prochazka
2017-02-17 13:24 ` Dan Lüdtke
2017-02-17 13:29 ` Jason A. Donenfeld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).