tools: ynl: allow user to specify flag attr with bool values
authorJiri Pirko <jiri@nvidia.com>
Thu, 22 Feb 2024 13:43:49 +0000 (14:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Feb 2024 02:16:43 +0000 (18:16 -0800)
commitac95b1fca034d50d42a058a9476e0fe555653d0d
tree759c7e93be2bf27af84648519d489aee08cb9af4
parent5c4e0f3ae45e82fa125c5a9c7c25e7df9a6b98ec
tools: ynl: allow user to specify flag attr with bool values

The flag attr presence in Netlink message indicates value "true",
if it is missing in the message it means "false".

Allow user to specify attrname with value "true"/"false"
in json for flag attrs, treat "false" value properly.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20240222134351.224704-2-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py