[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <410d69e5-d1f8-40e0-84b1-b5d56e0d9366@intel.com>
Date: Fri, 5 Sep 2025 17:27:46 -0700
From: Jacob Keller <jacob.e.keller@...el.com>
To: Donald Hunter <donald.hunter@...il.com>,
Asbjørn Sloth Tønnesen <ast@...erby.net>
CC: "Jason A. Donenfeld" <Jason@...c4.com>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski
<kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Simon Horman
<horms@...nel.org>, Andrew Lunn <andrew+netdev@...n.ch>,
<wireguard@...ts.zx2c4.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH net-next 10/11] tools: ynl: decode hex input
On 9/5/2025 3:51 AM, Donald Hunter wrote:
> Asbjørn Sloth Tønnesen <ast@...erby.net> writes:
>
>> This patch add support for decoding hex input, so
>> that binary attributes can be read through --json.
>>
>> Example (using future wireguard.yaml):
>> $ sudo ./tools/net/ynl/pyynl/cli.py --family wireguard \
>> --do set-device --json '{"ifindex":3,
>> "private-key":"2a ae 6c 35 c9 4f cf <... to 32 bytes>"}'
>>
>> Signed-off-by: Asbjørn Sloth Tønnesen <ast@...erby.net>
>
> Reviewed-by: Donald Hunter <donald.hunter@...il.com>
>
> FWIW, the hex can include spaces or not when using bytes.fromhex(). When
> formatting hex for output, I chose to include spaces, but I don't really
> know if that was a good choice or not.
I also prefer the spaces for readability.
Download attachment "OpenPGP_signature.asc" of type "application/pgp-signature" (237 bytes)
Powered by blists - more mailing lists