tools: pynl: make flags argument optional for do()
authorJakub Kicinski <kuba@kernel.org>
Sat, 2 Dec 2023 21:10:05 +0000 (13:10 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 6 Dec 2023 04:07:59 +0000 (20:07 -0800)
commite136735f0c263b8bb9572ff8d35d8d5bc9fd9b66
treeb0f9c7a8aa72bc58f3d223952d8eb008359c8bc7
parentbce493439736c606dc72e9824d01c43bd8a258d4
tools: pynl: make flags argument optional for do()

Commit 1768d8a767f8 ("tools/net/ynl: Add support for create flags")
added support for setting legacy netlink CRUD flags on netlink
messages (NLM_F_REPLACE, _EXCL, _CREATE etc.).

Most of genetlink won't need these, don't force callers to pass
in an empty argument to each do() call.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20231202211005.341613-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/lib/ynl.py